Repository: sqoop
Updated Branches:
  refs/heads/sqoop2 5abd3f91f -> f06fb0a69


SQOOP-2351: Sqoop2: Connector cache should be cleared when role is deleted

(Abraham Elmahrek via Jarek Jarcec Cecho)


Project: http://git-wip-us.apache.org/repos/asf/sqoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/sqoop/commit/f06fb0a6
Tree: http://git-wip-us.apache.org/repos/asf/sqoop/tree/f06fb0a6
Diff: http://git-wip-us.apache.org/repos/asf/sqoop/diff/f06fb0a6

Branch: refs/heads/sqoop2
Commit: f06fb0a69ea9cb33902ca4e2383da513f5a73fa7
Parents: 5abd3f9
Author: Jarek Jarcec Cecho <[email protected]>
Authored: Mon May 11 11:01:04 2015 +0200
Committer: Jarek Jarcec Cecho <[email protected]>
Committed: Mon May 11 11:01:04 2015 +0200

----------------------------------------------------------------------
 shell/src/main/java/org/apache/sqoop/shell/DeleteRoleFunction.java | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/sqoop/blob/f06fb0a6/shell/src/main/java/org/apache/sqoop/shell/DeleteRoleFunction.java
----------------------------------------------------------------------
diff --git a/shell/src/main/java/org/apache/sqoop/shell/DeleteRoleFunction.java 
b/shell/src/main/java/org/apache/sqoop/shell/DeleteRoleFunction.java
index d3c9f4d..7209dca 100644
--- a/shell/src/main/java/org/apache/sqoop/shell/DeleteRoleFunction.java
+++ b/shell/src/main/java/org/apache/sqoop/shell/DeleteRoleFunction.java
@@ -43,6 +43,7 @@ public class DeleteRoleFunction extends SqoopFunction {
   public Object executeFunction(CommandLine line, boolean isInteractive) {
     String role = line.getOptionValue(Constants.OPT_ROLE);
     client.dropRole(new MRole(role));
+    client.clearCache();
     printlnResource(Constants.RES_DELETE_ROLE_SUCCESSFUL, role);
     return Status.OK;
   }

Reply via email to