Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
CHUKWA-675. Bad sleeping condition in FileTailer.java. Contributed by…
… Sourygna Luangsay.

git-svn-id: https://svn.apache.org/repos/asf/incubator/chukwa/trunk@1423254 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
Ariel Shemaiah Rabkin committed Dec 18, 2012
1 parent 0d1e5c8 commit e5086afb977c4950252653e9a5449b4e5784a616
Showing 2 changed files with 3 additions and 1 deletion.
@@ -26,6 +26,8 @@ Trunk (unreleased changes)

BUGS

CHUKWA-675. Bad sleeping condition in FileTailer.java (Sourygna Luangsay via asrabkin)

CHUKWA-668. Fix infinite loop in FileTailingAdaptor. (Sourygna Luangsay via Eric Yang)

CHUKWA-653. Added pre-compile JSP code profile for build process. (Jie Huang via Eric Yang)
@@ -84,7 +84,7 @@ public void run() {
long timeToReadFiles = System.currentTimeMillis() - startTime;
if(timeToReadFiles > MAX_SAMPLE_PERIOD)
log.warn("took " + timeToReadFiles + " ms to check all files being tailed");
if (timeToReadFiles < SAMPLE_PERIOD_MS || shouldISleep) {
if (timeToReadFiles < SAMPLE_PERIOD_MS && shouldISleep) {
Thread.sleep(SAMPLE_PERIOD_MS);
}
} catch (Throwable e) {

0 comments on commit e5086af

Please sign in to comment.