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.
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
Run compaction as a supervisor on Overlord #16768
Run compaction as a supervisor on Overlord #16768
Changes from 12 commits
d89802a
bea1078
9455547
26d4bdc
caefb27
bbc2eb6
8be913e
23899b8
9c06504
f972ea2
fdcfdf1
4b81779
4942a08
b2ae560
ad98383
2e676be
e793f44
8ece3f0
2f152e2
382bfdf
e111d71
93284b3
273822b
117b0ab
0a584d4
bfc9ceb
ab711ed
e3012f3
bca9810
6d84927
b439935
517f9ad
eceb767
9d04d9b
3d2e58f
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
When is this case encountered, i.e. the supervisor for the datasource is starting but the compaction for the same datasource needs to be stopped?
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.
This is because of the way the supervisor framework works. This code is triggered when
start()
is called for a suspended supervisor.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.
can you add a comment as to why it is 0?
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.
"Task groups" are a concept relevant only to streaming supervisors.
As you suggested, I can throw an unsupported exception here.
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.
Might be worth moving to a
BatchJobSupervisor
abstract class. Also, shouldn't these thrown an exception so we know these are not used at all since they are not supposed to be used at all.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.
and
MaterializedViewSupervisor
should also extendBatchJobSupervisor
?Check notice
Code scanning / CodeQL
Class has same name as super class Note