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

TestRandomRequestDistribution.testRequestTracking is terrible and should be removed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 7.0, 7.1, 8.0
    • None
    • None

    Description

      TestRandomRequestDistribution.testRequestTracking() is a badly written test that tries to assert that if 10 requests are sent to a shard has 2 replicas, at least 1 of those requests must be routed to each replica.

      This is essentially a test that says "flip a coin 10 times, fail if all 10 are heads OR if all 10 are tails"

      Statistically speaking 2 out of every 1024 runs of this test (1/512) should fail.

      Attachments

        1. SOLR-10898.patch
          5 kB
          Chris M. Hostetter

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: