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

Jan Høydahl commented on SOLR-16595:
------------------------------------

I cannot see that test failing at 
[http://fucit.org/solr-jenkins-reports/failure-report.html] so looks suspicious.

I checked out the PR branch (v2) and ran the test multiple times without issue, 
also beasted. What does the test failure say?

> Standardize Builder handling of times
> -------------------------------------
>
>                 Key: SOLR-16595
>                 URL: https://issues.apache.org/jira/browse/SOLR-16595
>             Project: Solr
>          Issue Type: Sub-task
>          Components: clients - java
>    Affects Versions: 9.0
>            Reporter: Eric Pugh
>            Assignee: Eric Pugh
>            Priority: Major
>          Time Spent: 50m
>  Remaining Estimate: 0h
>
> COming out of another ticket:
> TimeUnit class was introduced in part to add clarity to call-sites of a 
> method so the unit is clear. blah.setTime(TimeUnit.SECOND, 1) is fine as well 
> as blah.setTime(TimeUnit.MINUTE,2) -- the caller picks the unit convenient to 
> them. With that design, the method is designed unit-free -- definitely NOT 
> with variables named "second" as you proposed since the unit could be 
> anything. Internally (implementation of the setter), we need to pick a unit 
> to standardize to on some internal field to store the result, and name the 
> field to be clear as to what the internal unit chosen is. (e.g. 
> retryExpirySecs). Again, that's internal, the caller choses a unit convenient 
> to them.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to