[GOBBLIN-2037] Start DagActionMonitor functionality after its dependencies#3916
Merged
Will-Lo merged 2 commits intoapache:masterfrom Apr 5, 2024
Merged
Conversation
Contributor
Author
|
checks on my branch umustafi#24 |
arjun4084346
approved these changes
Apr 5, 2024
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #3916 +/- ##
=========================================
Coverage 46.63% 46.64%
- Complexity 11247 11250 +3
=========================================
Files 2248 2248
Lines 88512 88520 +8
Branches 9700 9701 +1
=========================================
+ Hits 41281 41288 +7
- Misses 43500 43503 +3
+ Partials 3731 3729 -2 ☔ View full report in Codecov by Sentry. |
arjun4084346
reviewed
Apr 5, 2024
.../src/main/java/org/apache/gobblin/service/monitoring/DagActionStoreChangeMonitorFactory.java
Show resolved
Hide resolved
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
The
DagActionStoreChangeMonitorcannot be started before theFlowgraph, DagManager, and SpecCompilerare up and running. When the monitor is initialized by Guice, it was previously also starting to load dagActions from the store immediately to compile and process. There is a race condition created where the actions can be loaded too quickly from the store and passed to thespecCompilerbefore it's ready. TheSpecCompilerhangs waiting for theflowGraphto load, causing startup to fail. A similar dependency exists between theSpecStoreChangeMonitorandSpecCompiler+Scheduler.The solution is the bind the monitor in Guice but only enable processing of actions and specs after the
GobblinServiceManagerensures other classes are ready to be called by theDagActionStoreChangeMonitor&SpecStoreChangeMonitor.Tests
Test a local deployment
Commits