-
Notifications
You must be signed in to change notification settings - Fork 2k
[ENH] Wire up garbage collector to do 3-phase GC. #4987
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
Changes from all commits
b027df3
b902089
790de19
1385ee6
e7f10fb
528faba
19793f0
a81a30d
7ff781a
373d5a3
fb61841
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -144,6 +144,16 @@ message ScrubLogResponse { | |
| repeated string errors = 3; | ||
| } | ||
|
|
||
| message GarbageCollectPhase2Request { | ||
| oneof log_to_collect { | ||
| string collection_id = 1; | ||
| string dirty_log = 2; | ||
| }; | ||
| } | ||
|
|
||
| message GarbageCollectPhase2Response { | ||
| } | ||
|
|
||
| service LogService { | ||
| rpc PushLogs(PushLogsRequest) returns (PushLogsResponse) {} | ||
| rpc ScoutLogs(ScoutLogsRequest) returns (ScoutLogsResponse) {} | ||
|
|
@@ -163,4 +173,6 @@ service LogService { | |
| rpc InspectLogState(InspectLogStateRequest) returns (InspectLogStateResponse) {} | ||
| // This endpoint should route to the rust log service. | ||
| rpc ScrubLog(ScrubLogRequest) returns (ScrubLogResponse) {} | ||
| // This endpoint should route to the rust log service. | ||
| rpc GarbageCollectPhase2(GarbageCollectPhase2Request) returns (GarbageCollectPhase2Response) {} | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: can we rename this so that the name explains what this service does in more details?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What would you name it? It's phase2 of the process known as garbage collect.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. from my understanding it's truncating the manifest? so maybe |
||
| } | ||
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.
does this return
nilor an actual response?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.
It's an empty response. I'm copying other empty responses here. Should we set the struct?
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.
I suppose it's implicitly converting nil to empty response in this case. We can set the struct for clarity or leave it as is for consistency, whichever you prefer