Abyss-lord commented on code in PR #5907:
URL: https://github.com/apache/gravitino/pull/5907#discussion_r1891105382
##########
clients/cli/src/main/java/org/apache/gravitino/cli/commands/DeleteMetalake.java:
##########
@@ -57,6 +58,14 @@ public void handle() {
} catch (NoSuchMetalakeException err) {
System.err.println(ErrorMessages.UNKNOWN_METALAKE);
return;
+ } catch (MetalakeInUseException inUseException) {
+ System.err.println(
+ metalake
+ + " in use, please disable it first. for example: use shell\n"
+ + "curl -X PATCH -H \"Accept:
application/vnd.gravitino.v1+json\" \\\n"
+ + "-H \"Content-Type: application/json\" -d '{\"inUse\": false}'
\\\n"
+ + "http://localhost:8090/api/metalakes/"
+ + metalake);
Review Comment:
> Rather than telling the user to use using the rest interface, we should
add a command to disable/enable a metalake.
Thank you, @justinmclean, The Disable and enable commands development can
left on me.
--
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]