eaglewatcherwb commented on a change in pull request #8733:
[FLINK-12835][tests] Fix wrong conversion of ManualClock bug
URL: https://github.com/apache/flink/pull/8733#discussion_r293413590
##########
File path:
flink-runtime/src/test/java/org/apache/flink/runtime/jobmaster/slotpool/SlotPoolTest.java
##########
@@ -587,7 +587,7 @@ public void testCheckIdleSlot() throws Exception {
assertThat(slotPool.offerSlot(taskManagerLocation,
taskManagerGateway, slotToNotExpire),
Matchers.is(true));
- clock.advanceTime(1L, TimeUnit.MILLISECONDS);
+ clock.advanceTime(2L, TimeUnit.MILLISECONDS);
Review comment:
Idle condition is `currentRelativeTimeMillis - slotAndTimestamp.timestamp >
idleSlotTimeout.toMilliseconds()`, thus clock should advance
`timeout.toMilliseconds() + 1` to trigger idle.
----------------------------------------------------------------
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]
With regards,
Apache Git Services