Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-7771

WritebackListener thread can die while handling exceptions

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 2.2.5, 2.3.2
    • 2.3.1
    • Sharding
    • None
    • ALL

    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.

      Attachments

        Activity

          People

            randolph@mongodb.com Randolph Tan
            randolph@mongodb.com Randolph Tan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: