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

Fencepost error in LeaderInitiatedRecoveryThread

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.10.2, 5.0
    • Component/s: None
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: