Skip to content

Clear flow event after cancel#3271

Merged
autumnust merged 4 commits intoapache:masterfrom
umustafi:clearFlowEventAfterCancel
Apr 26, 2021
Merged

Clear flow event after cancel#3271
autumnust merged 4 commits intoapache:masterfrom
umustafi:clearFlowEventAfterCancel

Conversation

@umustafi
Copy link
Contributor

@umustafi umustafi commented Apr 23, 2021

Dear Gobblin maintainers,

Please accept this PR. I understand that it will not be reviewed until I have checked off all the steps below!

JIRA

Description

  • Here are some details about my PR, including screenshots (if applicable):
    After the job emits cancel event it needs to have the Flow Event field cleared, so it can have its job status marked as Resumed later.

Tests

  • My PR adds the following unit tests OR does not need testing for this extremely good reason:

Commits

  • My commits all reference JIRA issues in their subject lines, and I have squashed multiple commits if they address the same issue. In addition, my commits follow the guidelines from "How to write a good git commit message":
    1. Subject is separated from body by a blank line
    2. Subject is limited to 50 characters
    3. Subject does not end with a period
    4. Subject uses the imperative mood ("add", not "adding")
    5. Body wraps at 72 characters
    6. Body explains "what" and "why", not "how"

@codecov-commenter
Copy link

codecov-commenter commented Apr 23, 2021

Codecov Report

Merging #3271 (ed8f74a) into master (a77250b) will decrease coverage by 37.47%.
The diff coverage is 0.00%.

❗ Current head ed8f74a differs from pull request most recent head 4dafa68. Consider uploading reports for the commit 4dafa68 to get more accurate results
Impacted file tree graph

@@             Coverage Diff              @@
##             master   #3271       +/-   ##
============================================
- Coverage     46.47%   8.99%   -37.48%     
+ Complexity     9996    1739     -8257     
============================================
  Files          2036    2036               
  Lines         79200   79201        +1     
  Branches       8834    8834               
============================================
- Hits          36809    7127    -29682     
- Misses        38971   71372    +32401     
+ Partials       3420     702     -2718     
Impacted Files Coverage Δ Complexity Δ
...blin/service/modules/orchestration/DagManager.java 0.00% <0.00%> (-70.99%) 0.00 <0.00> (-13.00)
...c/main/java/org/apache/gobblin/util/FileUtils.java 0.00% <0.00%> (-100.00%) 0.00% <0.00%> (-4.00%)
...n/java/org/apache/gobblin/fork/CopyableSchema.java 0.00% <0.00%> (-100.00%) 0.00% <0.00%> (-2.00%)
...java/org/apache/gobblin/stream/ControlMessage.java 0.00% <0.00%> (-100.00%) 0.00% <0.00%> (-1.00%)
...va/org/apache/gobblin/dataset/DatasetResolver.java 0.00% <0.00%> (-100.00%) 0.00% <0.00%> (-3.00%)
...va/org/apache/gobblin/converter/EmptyIterable.java 0.00% <0.00%> (-100.00%) 0.00% <0.00%> (-1.00%)
...org/apache/gobblin/ack/BasicAckableForTesting.java 0.00% <0.00%> (-100.00%) 0.00% <0.00%> (-3.00%)
...n/java/org/apache/gobblin/salesforce/SfConfig.java 0.00% <0.00%> (-100.00%) 0.00% <0.00%> (-1.00%)
.../org/apache/gobblin/yarn/HelixMessageSubTypes.java 0.00% <0.00%> (-100.00%) 0.00% <0.00%> (-1.00%)
...va/org/apache/gobblin/cluster/SingleHelixTask.java 0.00% <0.00%> (-100.00%) 0.00% <0.00%> (-5.00%)
... and 1077 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a77250b...4dafa68. Read the comment docs.

@Will-Lo
Copy link
Contributor

Will-Lo commented Apr 23, 2021

@jack-moseley could you take a look?

Copy link
Contributor

@autumnust autumnust left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@umustafi umustafi force-pushed the clearFlowEventAfterCancel branch from d888aca to 4dafa68 Compare April 26, 2021 17:06
@umustafi umustafi closed this Apr 26, 2021
@umustafi umustafi reopened this Apr 26, 2021
@autumnust autumnust merged commit e64b831 into apache:master Apr 26, 2021
@umustafi umustafi deleted the clearFlowEventAfterCancel branch April 27, 2021 20:18
jhsenjaliya pushed a commit to jhsenjaliya/incubator-gobblin that referenced this pull request Jun 7, 2021
* cleared flow event after cancelled job to allow resume event status to work

* moved clearing of FlowEvent to occur before dags are cleaned up to avoid regression

* added comment to clarify nullification of FlowEvent field

Co-authored-by: Urmi Mustafi <umustafi@umustafi-mn1.linkedin.biz>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants