You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ranger.apache.org by sn...@apache.org on 2016/04/12 21:36:22 UTC
[1/2] incubator-ranger git commit: RANGER-922: added try-catch-log to
identify unit test specific issues
Repository: incubator-ranger
Updated Branches:
refs/heads/master 53501aab0 -> fe81cd734
RANGER-922: added try-catch-log to identify unit test specific issues
Project: http://git-wip-us.apache.org/repos/asf/incubator-ranger/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ranger/commit/6cbc170a
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ranger/tree/6cbc170a
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ranger/diff/6cbc170a
Branch: refs/heads/master
Commit: 6cbc170ac9d19dbc9e30eb7be12a8b90cbaedc01
Parents: 53501aa
Author: sneethiraj <sn...@apache.org>
Authored: Tue Apr 12 15:13:49 2016 -0400
Committer: sneethiraj <sn...@apache.org>
Committed: Tue Apr 12 15:13:49 2016 -0400
----------------------------------------------------------------------
.../unixusersync/process/UnixUserGroupBuilder.java | 16 +++++++++++++---
1 file changed, 13 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/6cbc170a/ugsync/src/main/java/org/apache/ranger/unixusersync/process/UnixUserGroupBuilder.java
----------------------------------------------------------------------
diff --git a/ugsync/src/main/java/org/apache/ranger/unixusersync/process/UnixUserGroupBuilder.java b/ugsync/src/main/java/org/apache/ranger/unixusersync/process/UnixUserGroupBuilder.java
index a613e27..12e6a93 100644
--- a/ugsync/src/main/java/org/apache/ranger/unixusersync/process/UnixUserGroupBuilder.java
+++ b/ugsync/src/main/java/org/apache/ranger/unixusersync/process/UnixUserGroupBuilder.java
@@ -207,9 +207,19 @@ public class UnixUserGroupBuilder implements UserGroupSource {
continue;
}
- String userName = tokens[0];
- String userId = tokens[2];
- String groupId = tokens[3];
+ String userName = null ;
+ String userId = null ;
+ String groupId = null ;
+
+ try {
+ userName = tokens[0];
+ userId = tokens[2];
+ groupId = tokens[3];
+ }
+ catch(ArrayIndexOutOfBoundsException aiobe) {
+ LOG.warn("Ignoring line - [" + line + "]: Unable to parse line for getting user information", aiobe) ;
+ continue ;
+ }
int numUserId = -1;
[2/2] incubator-ranger git commit: RANGER-725: added .gitignore file
for ignoring target folder
Posted by sn...@apache.org.
RANGER-725: added .gitignore file for ignoring target folder
Project: http://git-wip-us.apache.org/repos/asf/incubator-ranger/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ranger/commit/fe81cd73
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ranger/tree/fe81cd73
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ranger/diff/fe81cd73
Branch: refs/heads/master
Commit: fe81cd7343ebf88d8091c515c76ac2e53955688d
Parents: 6cbc170
Author: sneethiraj <sn...@apache.org>
Authored: Tue Apr 12 15:26:16 2016 -0400
Committer: sneethiraj <sn...@apache.org>
Committed: Tue Apr 12 15:26:16 2016 -0400
----------------------------------------------------------------------
ranger-hive-utils/.gitignore | 1 +
1 file changed, 1 insertion(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/fe81cd73/ranger-hive-utils/.gitignore
----------------------------------------------------------------------
diff --git a/ranger-hive-utils/.gitignore b/ranger-hive-utils/.gitignore
new file mode 100644
index 0000000..b83d222
--- /dev/null
+++ b/ranger-hive-utils/.gitignore
@@ -0,0 +1 @@
+/target/