[ 
https://issues.apache.org/jira/browse/GOBBLIN-1910?focusedWorklogId=909027&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-909027
 ]

ASF GitHub Bot logged work on GOBBLIN-1910:
-------------------------------------------

                Author: ASF GitHub Bot
            Created on: 08/Mar/24 23:57
            Start Date: 08/Mar/24 23:57
    Worklog Time Spent: 10m 
      Work Description: phet commented on code in PR #3858:
URL: https://github.com/apache/gobblin/pull/3858#discussion_r1518418022


##########
gobblin-service/src/test/java/org/apache/gobblin/service/modules/orchestration/DagProcessingEngineTest.java:
##########
@@ -150,12 +162,19 @@ protected void commit(DagManagementStateStore 
dagManagementStateStore, Void resu
     }
   }
 
-  // This tests verifies that
+  // This tests verifies that all the dag tasks entered to the dag task stream 
are retrieved by dag proc engine threads
   @Test
   public void dagProcessingTest() throws InterruptedException, 
TimeoutException {
+    // there are MAX_NUM_OF_TASKS dag tasks returned and then each thread 
additionally call (infinitely) once to wait
+    // in this unit tests, it does not infinitely wait though, because the 
mocked task stream throws an exception on
+    // (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;

Review Comment:
   this will change back to `MAX_TASKS + numDPEThreads` when the exception is 
thrown by `DagProc::act`.
   
   but why however is it not 2x that many invocations, given we've both 
`hasNext()` and `next()`?



##########
gobblin-service/src/test/java/org/apache/gobblin/service/modules/orchestration/DagProcessingEngineTest.java:
##########
@@ -150,12 +162,19 @@ protected void commit(DagManagementStateStore 
dagManagementStateStore, Void resu
     }
   }
 
-  // This tests verifies that
+  // This tests verifies that all the dag tasks entered to the dag task stream 
are retrieved by dag proc engine threads
   @Test
   public void dagProcessingTest() throws InterruptedException, 
TimeoutException {
+    // there are MAX_NUM_OF_TASKS dag tasks returned and then each thread 
additionally call (infinitely) once to wait
+    // in this unit tests, it does not infinitely wait though, because the 
mocked task stream throws an exception on
+    // (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;

Review Comment:
   this will change back to `MAX_TASKS + numDPEThreads` when the exception is 
thrown by `DagProc::act`.
   
   ...but why however is it not 2x that many invocations, given we've both 
`hasNext()` and `next()`?





Issue Time Tracking
-------------------

    Worklog Id:     (was: 909027)
    Time Spent: 31h 20m  (was: 31h 10m)

> Refactor code to move current in-memory references to new design for REST 
> calls: Launch, Resume and Kill
> --------------------------------------------------------------------------------------------------------
>
>                 Key: GOBBLIN-1910
>                 URL: https://issues.apache.org/jira/browse/GOBBLIN-1910
>             Project: Apache Gobblin
>          Issue Type: New Feature
>            Reporter: Meeth Gala
>            Priority: Major
>          Time Spent: 31h 20m
>  Remaining Estimate: 0h
>




--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to