est08zw commented on pull request #15411:
URL: https://github.com/apache/flink/pull/15411#issuecomment-810570513


   ping @xintongsong 
   
   For scheduling runnable with some delay, I find it is hard to check that the 
delay is exactly the right number.
   for example, we schedule a runnable with 1 second delay, and after exactly 1 
second, the runnable is always not triggered. So I add extra 50ms delay to 
check whether the runnable is triggered. I am not very sure it is bug or just 
because it takes some time for the Executor to execute the runnable.
   
   For scheduling runnable with different TimeUnit, I just checked 
minute/second/millisecond. For microsecond and nanosecond, i am afraid the 
executor can not be that accurate. For hour and day, it just take too much time 
to finish the test.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to