[ 
https://issues.apache.org/jira/browse/SOLR-10898?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16081259#comment-16081259
 ] 

ASF subversion and git services commented on SOLR-10898:
--------------------------------------------------------

Commit fd0e520d4e7bc9871ffaf6aa7dc86e3d621c97b5 in lucene-solr's branch 
refs/heads/branch_7_0 from Chris Hostetter
[ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=fd0e520 ]

SOLR-10898: Fix SOLR-10898 to not deterministicly fail 1/512 runs

(cherry picked from commit 20153595a4248c34784b0892d83e58ae259c94f0)


> TestRandomRequestDistribution.testRequestTracking is terrible and should be 
> removed
> -----------------------------------------------------------------------------------
>
>                 Key: SOLR-10898
>                 URL: https://issues.apache.org/jira/browse/SOLR-10898
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>            Reporter: Hoss Man
>             Fix For: 7.0, master (8.0), 7.1
>
>         Attachments: SOLR-10898.patch
>
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to