Menu

#1285 MDS TCP: zero bytes recvd results in application exit

future
assigned
nobody
None
defect
mds
-
4.5
major
False
2017-08-28
2015-03-26
Girish
No

sometimes application using opensaf exits with below message:

Feb 20 15:24:59 fedvm1 RIB[28549]: MDTM:socket_recv() = 0, conn lost with dh server, exiting library err :Success
Feb 20 15:24:59 fedvm1 osafamfnd[28263]: NO 'safSu=SU1,safSg=app-simplex,safApp=appos' component restart probation timer started (timeout: 4000000000 ns)
Feb 20 15:24:59 fedvm1 osafamfnd[28263]: NO Restarting a component of 'safSu=SU1,safSg=app-simplex,safApp=appos' (comp restart count: 1)
Feb 20 15:24:59 fedvm1 osafamfnd[28263]: NO 'safComp=App,safSu=SU1,safSg=app-simplex,safApp=appos' faulted due to 'avaDown' : Recovery is 'componentRestart'

Exits at location osaf/libs/core/mds/mds_dt_trans.c::mdtm_process_poll_recv_data_tcp

recd_bytes = recv(tcp_cb->DBSRsock, tcp_cb->buffer, local_len_buf, 0);
if (recd_bytes < 0) {
return;
} else if (0 == recd_bytes) {
syslog(LOG_ERR, "MDTM:socket_recv() = %d, conn lost with dh server, exiting library err :%d len:%d", recd_bytes, errno,
local_len_buf);
close(tcp_cb->DBSRsock);
exit(0);
} else if (local_len_buf > recd_bytes) {

local_len_buf turns out be 0

Discussion

  • Girish

    Girish - 2015-03-26
    • summary: MDS TCP: zero bytes recvd results in abort --> MDS TCP: zero bytes recvd results in application exit
     
  • Girish

    Girish - 2015-03-26
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -5,7 +5,7 @@
     Feb 20 15:24:59 fedvm1 osafamfnd[28263]: NO Restarting a component of 'safSu=SU1,safSg=app-simplex,safApp=appos' (comp restart count: 1)
     Feb 20 15:24:59 fedvm1 osafamfnd[28263]: NO 'safComp=App,safSu=SU1,safSg=app-simplex,safApp=appos' faulted due to 'avaDown' : Recovery is 'componentRestart'
    
    -Aborts at location osaf/libs/core/mds/mds_dt_trans.c::mdtm_process_poll_recv_data_tcp
    +Exits at location osaf/libs/core/mds/mds_dt_trans.c::mdtm_process_poll_recv_data_tcp
    
     recd_bytes = recv(tcp_cb->DBSRsock, tcp_cb->buffer, local_len_buf, 0);
                                     if (recd_bytes < 0) {
    
     
  • A V Mahesh (AVM)

    • status: unassigned --> assigned
    • assigned_to: A V Mahesh (AVM)
    • Milestone: 4.6.RC1 --> 4.7-Tentative
     
  • A V Mahesh (AVM)

    This is not newly introduce bug , this is an existing TCP transport bug.

     
  • Anders Bjornerstedt

    Defect can not have milestone set to a future release.
    Either change to enhancement or set the proper milestone.

     
  • Mathi Naickan

    Mathi Naickan - 2015-04-16
    • Milestone: 4.7-Tentative --> 4.5.2
     
  • A V Mahesh (AVM)

    Need to evaluate and targetd for 4.7

     
  • A V Mahesh (AVM)

    • Milestone: 4.5.2 --> 4.7-Tentative
     
  • A V Mahesh (AVM)

    • Milestone: 4.7-Tentative --> 4.5.2
     
  • Anders Widell

    Anders Widell - 2015-11-02
    • Milestone: 4.5.2 --> 4.6.2
     
  • Mathi Naickan

    Mathi Naickan - 2016-05-04
    • Milestone: 4.6.2 --> 4.7.2
     
  • Anders Widell

    Anders Widell - 2016-09-20
    • Milestone: 4.7.2 --> 5.0.2
     
  • Anders Widell

    Anders Widell - 2017-04-03
    • Milestone: 5.0.2 --> future
     
  • A V Mahesh (AVM)

    • assigned_to: A V Mahesh (AVM) --> nobody
    • Blocker: --> False
     

Log in to post a comment.

MongoDB Logo MongoDB