[
https://issues.apache.org/jira/browse/GOBBLIN-1782?focusedWorklogId=844463&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-844463
]
ASF GitHub Bot logged work on GOBBLIN-1782:
-------------------------------------------
Author: ASF GitHub Bot
Created on: 08/Feb/23 21:18
Start Date: 08/Feb/23 21:18
Worklog Time Spent: 10m
Work Description: meethngala commented on code in PR #3639:
URL: https://github.com/apache/gobblin/pull/3639#discussion_r1100689394
##########
gobblin-service/src/main/java/org/apache/gobblin/service/monitoring/KafkaJobStatusMonitor.java:
##########
@@ -251,10 +251,17 @@ static void
addJobStatusToStateStore(org.apache.gobblin.configuration.State jobS
int currentGeneration =
jobStatus.getPropAsInt(TimingEvent.FlowEventConstants.CURRENT_GENERATION_FIELD,
previousGeneration);
int previousAttempts =
previousJobStatus.getPropAsInt(TimingEvent.FlowEventConstants.CURRENT_ATTEMPTS_FIELD,
1);
int currentAttempts =
jobStatus.getPropAsInt(TimingEvent.FlowEventConstants.CURRENT_ATTEMPTS_FIELD,
previousAttempts);
+ // Verify if the current job status is flow status. If yes, we check
for its current execution status to be PENDING_RESUME (limiting to just resume
flow statuses)
+ // When the above two conditions satisfy, we NEED NOT check for the
out-of-order events since GaaS would manage the lifecycle of these events
+ // Hence, we update the merge state so that the flow can proceed with
its execution
+ if (jobName != null && jobGroup != null
+ && jobName.equals(JobStatusRetriever.NA_KEY) &&
jobGroup.equals(JobStatusRetriever.NA_KEY) &&
currentStatus.equals(ExecutionStatus.PENDING_RESUME.name())) {
Review Comment:
yeah for sure! I have abstracted the logic to check for flow statuses and in
pending resume in my latest commit. Regarding the second comment, I have added
the logic for currentStatus != pending resume in the abstracted method
itself... so that in case we want to extend it to other status types in the
future we can just do it in the method and not change the if condition often...
wdyt?
Issue Time Tracking
-------------------
Worklog Id: (was: 844463)
Time Spent: 40m (was: 0.5h)
> Fix Merge State for Flow Pending Resume statuses
> ------------------------------------------------
>
> Key: GOBBLIN-1782
> URL: https://issues.apache.org/jira/browse/GOBBLIN-1782
> Project: Apache Gobblin
> Issue Type: Improvement
> Reporter: Meeth Gala
> Priority: Major
> Time Spent: 40m
> Remaining Estimate: 0h
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)