[ https://issues.apache.org/jira/browse/GOBBLIN-2181?focusedWorklogId=948333&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-948333 ]
ASF GitHub Bot logged work on GOBBLIN-2181: ------------------------------------------- Author: ASF GitHub Bot Created on: 13/Dec/24 18:23 Start Date: 13/Dec/24 18:23 Worklog Time Spent: 10m Work Description: phet commented on code in PR #4084: URL: https://github.com/apache/gobblin/pull/4084#discussion_r1884322987 ########## gobblin-service/src/test/java/org/apache/gobblin/service/modules/orchestration/DagProcessingEngineTest.java: ########## @@ -190,15 +190,20 @@ public void dagProcessingTest() // (MAX_NUM_OF_TASKS + 1) th call int expectedNumOfInvocations = MockedDagTaskStream.MAX_NUM_OF_TASKS + ServiceConfigKeys.DEFAULT_NUM_DAG_PROC_THREADS; int expectedExceptions = MockedDagTaskStream.MAX_NUM_OF_TASKS / MockedDagTaskStream.FAILING_DAGS_FREQUENCY; - int expectedNonRetryableExceptions = MockedDagTaskStream.MAX_NUM_OF_TASKS / MockedDagTaskStream.FAILING_DAGS_WITH_NON_RETRYABLE_EXCEPTIONS_FREQUENCY; AssertWithBackoff.assertTrue(input -> Mockito.mockingDetails(this.dagTaskStream).getInvocations().size() == expectedNumOfInvocations, 10000L, "dagTaskStream was not called " + expectedNumOfInvocations + " number of times. " + "Actual number of invocations " + Mockito.mockingDetails(this.dagTaskStream).getInvocations().size(), log, 1, 1000L); - + // Currently we are treating all exceptions as non retryable and totalExceptionCount will be equal to count of non retryable exceptions Assert.assertEquals(dagManagementStateStore.getDagManagerMetrics().dagProcessingExceptionMeter.getCount(), expectedExceptions); - Assert.assertEquals(dagManagementStateStore.getDagManagerMetrics().dagProcessingNonRetryableExceptionMeter.getCount(), expectedNonRetryableExceptions); + Assert.assertEquals(dagManagementStateStore.getDagManagerMetrics().dagProcessingNonRetryableExceptionMeter.getCount(), expectedExceptions); + } + + @Test + public void isNonTransientExceptionTest(){ + Assert.assertTrue(!DagProcessingEngine.isTransientException(new RuntimeException("Simulating a non retryable exception!"))); + Assert.assertTrue(!DagProcessingEngine.isTransientException(new AzkabanClientException("Simulating a retryable exception!"))); Review Comment: ...and make `isTransientException` non-`static` to accept config Issue Time Tracking ------------------- Worklog Id: (was: 948333) Time Spent: 3h 20m (was: 3h 10m) > Non transient exception handling by flowspec removal > ---------------------------------------------------- > > Key: GOBBLIN-2181 > URL: https://issues.apache.org/jira/browse/GOBBLIN-2181 > Project: Apache Gobblin > Issue Type: Bug > Reporter: Vaibhav Singhal > Priority: Major > Time Spent: 3h 20m > Remaining Estimate: 0h > > - Many times we experience failures in flow initialization or processing due > to which flow could not be concluded properly > - Azkaban client exceptions and SQLIntegrityViolation exceptions are > examples which have caused failures in recent history > - Currently most of these failures are by default considered transient > exceptions and are retried infinitely > - As a side effect, it causes flows not to conclude and causes failures in > future flow submissions which have caused incidents recently > > - As a first step we want to consider all exceptions as non transient and > not retry and remove conclude the flow by removing flowspec and dag action > - This issue tracks the changes to conclude the flow for non transient > exceptions and also mark them as failure to reflect the correct status of the > flow -- This message was sent by Atlassian Jira (v8.20.10#820010)