-
Notifications
You must be signed in to change notification settings - Fork 18
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
feat: Compaction endpoint, guarded (DEV-3703) #3265
Conversation
no, that was only to make things easiert in the context of the old PR
yes, that was only relevant in the context of the old PR Same goes for the changed time-out, that can be reverted too |
11a5b5f
to
6531413
Compare
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.
LGTM
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.
sorry for the double review... please check my comment
@@ -85,6 +86,11 @@ final case class ManagementEndpoints(baseEndpoints: BaseEndpoints) { | |||
.out(jsonBody[HealthResponse]) | |||
.out(statusCode) | |||
|
|||
private[infrastructure] val postStartCompaction = baseEndpoints.publicEndpoint.post |
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.
question (blocking): I overlooked this at first... but if you use publicEndpoint
does that mean that this can be triggered without authentication?
This should only be possible for system admins, I suppose.
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.
ClassTooLarge problem encountered.
I have solved by removing the top layer all the dependencies from the dep. graph that, the ones that were "top" dependencies (all the actor stuff is final, for example) are now extracted. This method should be reappliable, but though it's not quite trivial.
Anyhow, the PR is tested, hoping for a green build now.
6531413
to
96999d6
Compare
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.
Build not quite green... but from the code point of view, I'd say it's good to merge once it builds and the tests pass.
Hah, what the hell! I'll check in a bit! |
d71c8a4
to
11b5693
Compare
Pull Request Checklist
@BalduinLandolt are the warn/debug info/warn changes required?Isif (knoraBaseOntologyVersion != KnoraBaseVersion)
commented out for any particular purpose? Should I revert it?The flag is disabled by default and I assume should be enabled for test envs in ops-deploy. It was tested both with false and true and was double checked to be false by default.
Task Description/Number
Issue Number: DEV-3703
PR Type
Basic requirements for bug fixes and features
Does this PR introduce a breaking change?