Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-6511

Fencepost error in LeaderInitiatedRecoveryThread

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.10.2, 5.0
    • None
    • None

    Description

      At line 106:

          while (continueTrying && ++tries < maxTries) {
      

      should be

          while (continueTrying && ++tries <= maxTries) {
      

      This is only a problem when called from DistributedUpdateProcessor, as it can have maxTries set to 1, which means the loop is never actually run.

      Attachments

        1. SOLR-6511.patch
          11 kB
          Timothy Potter
        2. SOLR-6511.patch
          29 kB
          Timothy Potter

        Activity

          People

            thelabdude Timothy Potter
            romseygeek Alan Woodward
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: