-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Allow subclass to customize what happens pre/post segment uploading #8203
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow subclass to customize what happens pre/post segment uploading #8203
Conversation
87f33a0 to
1bfdb6c
Compare
Codecov Report
@@ Coverage Diff @@
## master #8203 +/- ##
============================================
+ Coverage 71.01% 71.03% +0.01%
Complexity 4314 4314
============================================
Files 1624 1624
Lines 84873 84891 +18
Branches 12791 12791
============================================
+ Hits 60273 60299 +26
+ Misses 20453 20439 -14
- Partials 4147 4153 +6
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
| String tableNameWithType = configs.get(MinionConstants.TABLE_NAME_KEY); | ||
| String inputSegmentNames = configs.get(MinionConstants.SEGMENT_NAME_KEY); | ||
| String uploadURL = configs.get(MinionConstants.UPLOAD_URL_KEY); | ||
| String authToken = configs.get(MinionConstants.AUTH_TOKEN); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These info are extracted multiple times. Shall we consider adding a context class to wrap them and pass them into this method? We can also have a custom map within the context class so that other custom fields can be added.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sgtm
…pache#8203) Added pre/postUploadSegments() methods for BaseMultipleSegmentsConversionExecutor, so that subclass can customize what happens before/after segment uploading, e.g. RT2OFF task should use segment lineage against the dest offline table instead of the src realtime table, but MergeRollup uses segment lineage against a single table that is both src/dest table.
Description
Added pre/postUploadSegments() methods for BaseMultipleSegmentsConversionExecutor, so that subclass can customize what happens before/after segment uploading, e.g. RT2OFF task should use segment lineage against the dest offline table instead of the src realtime table, but MergeRollup uses segment lineage against a single table that is both src/dest table.
Upgrade Notes
Does this PR prevent a zero down-time upgrade? (Assume upgrade order: Controller, Broker, Server, Minion)
backward-incompat, and complete the section below on Release Notes)Does this PR fix a zero-downtime upgrade introduced earlier?
backward-incompat, and complete the section below on Release Notes)Does this PR otherwise need attention when creating release notes? Things to consider:
release-notesand complete the section on Release Notes)Release Notes
Documentation