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

LeaderElectionContextKeyTest has flawed logic: 50% of the time it checks the wrong shard's elections

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 7.2, 8.0
    • None
    • None

    Description

      LeaderElectionContextKeyTest is very flaky – and on millers beastit reports it shows a suspiciously close to "50%" failure rate.

      Digging into the test i realized that it creates a 2 shard index, then picks "a leader" to kill (arbitrarily) and then asserts that the leader election nodes for shard1 are affected ... so ~50% of the time it kills the shard2 leader and then fails because it doesn't see an election in shard1.

      Attachments

        1. SOLR-11469.patch
          9 kB
          Chris M. Hostetter
        2. SOLR-11469.patch
          4 kB
          Cao Manh Dat
        3. SOLR-11469_incomplete_and_broken.patch
          13 kB
          Chris M. Hostetter

        Issue Links

          Activity

            People

              caomanhdat Cao Manh Dat
              hossman Chris M. Hostetter
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: