mirror of
https://github.com/apache/sqoop.git
synced 2025-05-10 04:50:29 +08:00
SQOOP-2351: Sqoop2: Connector cache should be cleared when role is deleted
(Abraham Elmahrek via Jarek Jarcec Cecho)
This commit is contained in:
parent
5abd3f91f0
commit
f06fb0a69e
@ -43,6 +43,7 @@ public DeleteRoleFunction() {
|
|||||||
public Object executeFunction(CommandLine line, boolean isInteractive) {
|
public Object executeFunction(CommandLine line, boolean isInteractive) {
|
||||||
String role = line.getOptionValue(Constants.OPT_ROLE);
|
String role = line.getOptionValue(Constants.OPT_ROLE);
|
||||||
client.dropRole(new MRole(role));
|
client.dropRole(new MRole(role));
|
||||||
|
client.clearCache();
|
||||||
printlnResource(Constants.RES_DELETE_ROLE_SUCCESSFUL, role);
|
printlnResource(Constants.RES_DELETE_ROLE_SUCCESSFUL, role);
|
||||||
return Status.OK;
|
return Status.OK;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user