[
https://issues.apache.org/jira/browse/SOLR-12399?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16490409#comment-16490409
]
Cao Manh Dat commented on SOLR-12399:
-------------------------------------
Attached patch for this ticket, one thing worth notice here is the call
{{Timer.oneMinuteRate()}} may return 0.0 if we getting the rate too early
(right after send bunch of queries)
> SearchRateTriggerTest.testTrigger fail frequently
> -------------------------------------------------
>
> Key: SOLR-12399
> URL: https://issues.apache.org/jira/browse/SOLR-12399
> Project: Solr
> Issue Type: Improvement
> Security Level: Public(Default Security Level. Issues are Public)
> Reporter: Cao Manh Dat
> Assignee: Cao Manh Dat
> Priority: Minor
> Attachments: SOLR-12399.patch
>
>
> {code}
> [junit4] FAILURE 29.1s J10 | SearchRateTriggerTest.testTrigger <<<
> [junit4] > Throwable #1: java.lang.AssertionError: expected:<1> but
> was:<2>
> [junit4] > at
> __randomizedtesting.SeedInfo.seed([DF81F0CF827ECFEE:BC4AC64D1BB1BCC3]:0)
> [junit4] > at
> org.apache.solr.cloud.autoscaling.SearchRateTriggerTest.testTrigger(SearchRateTriggerTest.java:133)
> [junit4] > at java.lang.Thread.run(Thread.java:748)
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]