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

TestRandomRequestDistribution.testRequestTracking is terrible and should be removed

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.0, 7.1, master (8.0)
    • Component/s: None
    • Security Level: Public (Default Security Level. Issues are Public)
    • Labels:
      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

          Activity

            People

            • Assignee:
              hossman Hoss Man
              Reporter:
              hossman Hoss Man
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: