chukwa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Luangsay Sourygna <>
Subject agent: doubt about sleeping condition in
Date Fri, 14 Dec 2012 20:16:30 GMT

In the run() method we have:
        if (timeToReadFiles < SAMPLE_PERIOD_MS || shouldISleep) {

If there is no more data to tail, we shall sleep 2 seconds. Fine.

if we manage to tail files in less than 2 seconds, then we must wait 2 seconds.
Even if there is more data to tail???

Seems like it is a bug and the real condition should be:
(timeToReadFiles < SAMPLE_PERIOD_MS && shouldISleep).

Makes sense?


View raw message