[SERVER-7771] WritebackListener thread can die while handling exceptions Created: 27/Nov/12  Updated: 11/Jul/16  Resolved: 13/Dec/12

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: 2.3.1
Fix Version/s: 2.2.5, 2.3.2

Type: Bug Priority: Major - P3
Reporter: Randolph Tan Assignee: Randolph Tan
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-9323 client session locks up when mongos s... Closed
Operating System: ALL
Participants:

 Description   

Problem code:

            catch ( std::exception& e ) {
 
                if ( inShutdown() ) {
                    // we're shutting down, so just clean up
                    return;
                }
 
                log() << "WriteBackListener exception : " << e.what() << endl;
 
                // It's possible this shard was removed
                Shard::reloadShardInfo();
            }

Note that reloadShardInfo can also throw exceptions and since it is not handled in the run method, the writeback listener thread would just terminate. Sample scenarios that reloadShardInfo can throw is when config servers are unreachable.



 Comments   
Comment by auto [ 19/May/13 ]

Author:

{u'date': u'2012-12-13T17:01:22Z', u'name': u'Randolph Tan', u'email': u'randolph@10gen.com'}

Message: SERVER-7771 WritebackListener thread can die while handling exceptions
Branch: v2.2
https://github.com/mongodb/mongo/commit/aa141a8f086230a25161299f685f9bd3c710936d

Comment by auto [ 13/Dec/12 ]

Author:

{u'date': u'2012-12-13T17:01:22Z', u'email': u'randolph@10gen.com', u'name': u'Randolph Tan'}

Message: SERVER-7771 WritebackListener thread can die while handling exceptions
Branch: master
https://github.com/mongodb/mongo/commit/5271c025f4dcb16801ab56b3ae4a017858687aa7

Generated at Thu Feb 08 03:15:33 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.