xichen01 commented on code in PR #9426:
URL: https://github.com/apache/ozone/pull/9426#discussion_r2642578313
##########
hadoop-ozone/interface-client/src/main/proto/OmClientProtocol.proto:
##########
@@ -2432,3 +2440,18 @@ service OzoneManagerService {
rpc submitRequest(OMRequest)
returns(OMResponse);
}
+
+message GetLifecycleServiceStatusRequest {
+}
+
+message GetLifecycleServiceStatusResponse {
+ required bool isEnabled = 1;
Review Comment:
Added the suspened flag
##########
hadoop-ozone/interface-client/src/main/proto/OmClientProtocol.proto:
##########
@@ -2432,3 +2440,18 @@ service OzoneManagerService {
rpc submitRequest(OMRequest)
returns(OMResponse);
}
+
+message GetLifecycleServiceStatusRequest {
+}
+
+message GetLifecycleServiceStatusResponse {
+ required bool isEnabled = 1;
+ repeated string runningBuckets = 2;
+}
+
+message SuspendLifecycleServiceRequest {
Review Comment:
Add a resume command. new we can suspend and resume the lifecycle service
##########
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/service/KeyLifecycleService.java:
##########
@@ -219,12 +221,33 @@ public void resume() {
suspended.set(false);
}
+ /**
+ * Set isServiceEnabled.
+ * @param enabled whether enable the lifecycle Service
+ */
+ public void setServiceEnabled(boolean enabled) {
Review Comment:
I reused the `suspended` variable and the the `isServiceEnabled` only based
on the Configuration, cannot modify by user
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]