Bug #486

if using tpacall() mixing with tpcall() may cause to drop pending async responses

Added by Madars almost 2 years ago. Updated about 1 year ago.

Status:ClosedStart date:12/11/2019
Priority:NormalDue date:
Assignee:-% Done:

100%

Category:-
Target version:-

Description

- if doing several tpacall()
- then doing tpcall()
- then then tpgetreply(... TPGETANY), there could be chance, that async replies get lost:

N:NDRX:5:30d398ea:13137:7f134da81300:001:20191211:180737827:_shm_get_svc:mi/shm.c:0686:Key for [SOMESVC] is 8858, shm is: 0x7f133e307000
N:NDRX:5:30d398ea:13137:7f134da81300:001:20191211:180737827:_shm_get_svc:mi/shm.c:0755:ndrx_shm_get_svc [SOMESVC] - result: 1, iterations: 0, pos: 8858, install: 0
N:NDRX:5:30d398ea:13137:7f134da81300:001:20191211:180737827:_shm_get_svc:mi/shm.c:0329:use_cluster=0 srvs=5 csrvs=0
N:NDRX:5:30d398ea:13137:7f134da81300:001:20191211:180737827:_shm_get_svc:mi/shm.c:0367:use_cluster=0 srvs=5 csrvs=0
N:NDRX:5:30d398ea:13137:7f134da81300:001:20191211:180737827:_shm_get_svc:mi/shm.c:0519:ndrx_shm_get_svc returns 0
N:NDRX:5:30d398ea:13137:7f134da81300:001:20191211:180737827:tor_and_lock:tpcall.c:0311:Got free call descriptor 1, callseq: 7
N:NDRX:5:30d398ea:13137:7f134da81300:001:20191211:180737827:tor_and_lock:tpcall.c:0314:cd 1 locked to 1576080457 timestamp (id: 11576080457) callseq: 7
N:NDRX:5:30d398ea:13137:7f134da81300:001:20191211:180737827:ndrx_tpacall:tpcall.c:0623:Sending request to: [/testrun,svc,SOMESVC] my_id=[clt,somebin,13137,1,1] reply_to=[/testrun,clt,reply,somebin,13137,1] cd=1 callseq=7 (user1=0, user2=0, u
ser3=0, user4=0)
N:NDRX:5:30d398ea:13137:7f134da81300:001:20191211:180737827:ric_q_send_2:iutils.c:0321:ndrx_generic_q_send_2: 604
N:NDRX:5:30d398ea:13137:7f134da81300:001:20191211:180737827:ndrx_tpacall:tpcall.c:0652:ndrx_tpacall return 1
N:NDRX:5:30d398ea:13137:7f134da81300:001:20191211:180737827:rx_tpgetrply:tpcall.c:0685:ndrx_tpgetrply enter, flags 8 pbuf 0x254f5a0 cd_exp 1
N:NDRX:4:30d398ea:13137:7f134da81300:001:20191211:180737827:rx_tpgetrply:tpcall.c:0734:Waiting on OS Q mqd_t=6...
N:NDRX:5:30d398ea:13137:7f134da81300:001:20191211:180737832:ic_q_receive:iutils.c:0464:ndrx_generic_q_receive: 1708
N:NDRX:5:30d398ea:13137:7f134da81300:001:20191211:180737832:rx_tpgetrply:tpcall.c:0803:accept any: no, cd=16383 (name: [], my_id: []) atmi_tls=0x7f134d8b9010 cmd=2 rplybuf=0x254f5a0 rply_len=1708
N:NDRX:3:30d398ea:13137:7f134da81300:001:20191211:180737832:rx_tpgetrply:tpcall.c:0818:Dropping incoming message (not expected): cd: 16383, expected cd: 1 timestamp: 1576080457 callseq: 6, reply from /testrun,clt,reply,testbin,13137,1, cd
 status 1
N:NDRX:5:30d398ea:13137:7f134da81300:001:20191211:180737832:drx_tpcancel:tpcall.c:1110:tpcancel issued for 16383
N:NDRX:4:30d398ea:13137:7f134da81300:001:20191211:180737832:rx_tpgetrply:tpcall.c:0734:Waiting on OS Q mqd_t=6...
N:NDRX:5:30d398ea:13137:7f134da81300:001:20191211:180737837:ic_q_receive:iutils.c:0464:ndrx_generic_q_receive: 736

History

#1 Updated by Madars over 1 year ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

7.5
Added unit test: test078_tpacallmix

#2 Updated by Madars about 1 year ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF