Fix index_build.js to wait for node to be usable after restart

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.2.0-rc0
    • Affects Version/s: 8.2.0-rc0
    • Component/s: Catalog, Index Builds
    • None
    • Catalog and Routing
    • Fully Compatible
    • ALL
    • CAR Team 2025-07-21
    • 200
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Due to the changes to the reconnection logic of index_build.js from SERVER-106439 we may end up sending a command to a node too quickly while it still is in the RECOVERING state, so it will fail commands with the NotPrimaryOrSecondary error.

      We should make sure the node is usable (PRIMARY/SECONDARY) after the restart before sending commands.

            Assignee:
            Joan Bruguera Micó
            Reporter:
            Joan Bruguera Micó
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: