You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@gobblin.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2022/04/29 22:56:00 UTC

[jira] [Work logged] (GOBBLIN-1618) add some logs in AsynchronousFork to improve debuggability

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

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

                Author: ASF GitHub Bot
            Created on: 29/Apr/22 22:55
            Start Date: 29/Apr/22 22:55
    Worklog Time Spent: 10m 
      Work Description: Will-Lo commented on code in PR #3476:
URL: https://github.com/apache/gobblin/pull/3476#discussion_r862247943


##########
gobblin-runtime/src/main/java/org/apache/gobblin/runtime/fork/AsynchronousFork.java:
##########
@@ -88,18 +90,25 @@ protected void processRecords() throws IOException, DataConversionException {
 
   @Override
   protected boolean putRecordImpl(Object record) throws InterruptedException {
+    if (record != Fork.SHUTDOWN_RECORD) {
+      this.recordsToProcess++;
+    }
     return this.recordQueue.put(record);
   }
 
   boolean processRecord() throws IOException, DataConversionException {
     try {
       Object record = this.recordQueue.get();
       if (record == null || record == Fork.SHUTDOWN_RECORD) {
+        if (record == null) {
+          log.info("Fork received a null record. isParentTaskDone=" + this.isParentTaskDone());

Review Comment:
   Maybe doesn't have to be done in this PR, but we should explore emitting metrics on null records





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

            Worklog Id:     (was: 764546)
    Remaining Estimate: 0h
            Time Spent: 10m

> add some logs in AsynchronousFork to improve debuggability 
> -----------------------------------------------------------
>
>                 Key: GOBBLIN-1618
>                 URL: https://issues.apache.org/jira/browse/GOBBLIN-1618
>             Project: Apache Gobblin
>          Issue Type: Improvement
>            Reporter: Arjun Singh Bora
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>




--
This message was sent by Atlassian Jira
(v8.20.7#820007)