[ https://issues.apache.org/jira/browse/GOBBLIN-1068?focusedWorklogId=417580&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-417580 ]
ASF GitHub Bot logged work on GOBBLIN-1068: ------------------------------------------- Author: ASF GitHub Bot Created on: 07/Apr/20 09:25 Start Date: 07/Apr/20 09:25 Worklog Time Spent: 10m Work Description: arjun4084346 commented on pull request #2907: [GOBBLIN-1068]Clean up cyclic logic in task cancellation URL: https://github.com/apache/incubator-gobblin/pull/2907#discussion_r404662868 ########## File path: gobblin-cluster/src/test/java/org/apache/gobblin/cluster/ClusterIntegrationTest.java ########## @@ -167,9 +171,20 @@ public void testJobRestartViaSpec() throws Exception { return recordNew == null || targetStateNew.equals(TargetState.STOP.name()); }, "Waiting for Workflow TargetState to be STOP"); - //Ensure that the SleepingTask did not terminate normally i.e. it was interrupted. We check this by ensuring - // that the line "Hello World!" is not present in the logged output. - suite.waitForAndVerifyOutputFiles(); + // Ensure that the SleepingTask did not terminate normally i.e. it was interrupted. We check this by ensuring + // that the line "Hello World!" is not present in the logged output but only "Sleeping interrupted" + // It is important to have back-off here since ZNode STOP state doesn't mean the actual sleeping task has been terminated + // since shutdown of task is async. + AssertWithBackoff.create().maxSleepMs(1000).timeoutMs(120000).backoffFactor(1).assertTrue(input -> { Review comment: should be `maxSleepMs(1000L).timeoutMs(120000L)` ---------------------------------------------------------------- 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: us...@infra.apache.org Issue Time Tracking ------------------- Worklog Id: (was: 417580) Time Spent: 3h (was: 2h 50m) > Clean cyclic logic in task cancellation in Gobblin Task > ------------------------------------------------------- > > Key: GOBBLIN-1068 > URL: https://issues.apache.org/jira/browse/GOBBLIN-1068 > Project: Apache Gobblin > Issue Type: Bug > Reporter: Lei Sun > Priority: Major > Time Spent: 3h > Remaining Estimate: 0h > -- This message was sent by Atlassian Jira (v8.3.4#803005)