lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LUCENE-5948) Improve RateLimiters Initialization semantics
Date Mon, 01 Dec 2014 03:41:13 GMT

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

ASF subversion and git services commented on LUCENE-5948:
---------------------------------------------------------

Commit 1642627 from [~rcmuir] in branch 'dev/branches/lucene_solr_4_10'
[ https://svn.apache.org/r1642627 ]

LUCENE-5948: RateLimiter now fully inits itself on init

> Improve RateLimiters Initialization semantics  
> -----------------------------------------------
>
>                 Key: LUCENE-5948
>                 URL: https://issues.apache.org/jira/browse/LUCENE-5948
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Varun Thacker
>            Assignee: Robert Muir
>             Fix For: 4.10.3, 5.0, Trunk
>
>         Attachments: LUCENE-5948.patch
>
>
> I was working on SOLR-6485 when I realized that the first time pause is called even if
we write a lot of bytes pause doesn't work correctly because in SimpleRateLimiter.pause()
lastNS is 0 and startNS is always more than targetNS.
> If we remove the following line from TestRateLimiter.testPause() then the test fails
- 
> {code}
> limiter.pause(2);//init
> {code}
> Should we do one of the following ? 
> 1. Initialize lastNS in the ctor {code}lastNS = System.nanoTime();{code}
> 2. Add a method saying start() which does the same 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message