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

ElectionWinnerDeclarer::Algorithm::processResponse can call getValue() on non-OK StatusWith

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.1.4
    • Affects Version/s: None
    • Component/s: Replication
    • Fully Compatible
    • ALL
    • Hide

      apply patch from http://codereview.10gen.com/4650420190314496/ and run election_winner_declarer_test

      Show
      apply patch from http://codereview.10gen.com/4650420190314496/ and run election_winner_declarer_test

      Status cmdResponseStatus = getStatusFromCommandResult(response.getValue().data);                                                                                                                           
      if (!response.isOK()) { // failed response                                                                                                                                                                 
          log() << "ElectionWinnerDeclarer: Got failed response from " << request.target                                                                                                                         
                  << ": " << response.getStatus();                                                                                                                                                                 
      }                                            
      

      as part of SERVER-18007, this code will now invariant().

            Assignee:
            matt.dannenberg Matt Dannenberg
            Reporter:
            adam.midvidy Adam Midvidy
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: