You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ranger.apache.org by ma...@apache.org on 2016/04/05 22:46:29 UTC

incubator-ranger git commit: RANGER-838: Tag-sync should be resilient to Ranger Admin availability

Repository: incubator-ranger
Updated Branches:
  refs/heads/master ece9810f1 -> 93cb024dd


RANGER-838: Tag-sync should be resilient to Ranger Admin availability

Signed-off-by: Madhan Neethiraj <ma...@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/incubator-ranger/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ranger/commit/93cb024d
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ranger/tree/93cb024d
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ranger/diff/93cb024d

Branch: refs/heads/master
Commit: 93cb024dda8e902c511c7a18a86b5d9a08cc722a
Parents: ece9810
Author: Abhay Kulkarni <ak...@hortonworks.com>
Authored: Tue Apr 5 10:16:02 2016 -0700
Committer: Madhan Neethiraj <ma...@apache.org>
Committed: Tue Apr 5 13:45:28 2016 -0700

----------------------------------------------------------------------
 .../org/apache/ranger/tagsync/sink/tagadmin/TagAdminRESTSink.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/93cb024d/tagsync/src/main/java/org/apache/ranger/tagsync/sink/tagadmin/TagAdminRESTSink.java
----------------------------------------------------------------------
diff --git a/tagsync/src/main/java/org/apache/ranger/tagsync/sink/tagadmin/TagAdminRESTSink.java b/tagsync/src/main/java/org/apache/ranger/tagsync/sink/tagadmin/TagAdminRESTSink.java
index a30a399..2fd5ea1 100644
--- a/tagsync/src/main/java/org/apache/ranger/tagsync/sink/tagadmin/TagAdminRESTSink.java
+++ b/tagsync/src/main/java/org/apache/ranger/tagsync/sink/tagadmin/TagAdminRESTSink.java
@@ -132,7 +132,7 @@ public class TagAdminRESTSink implements TagSink, Runnable {
 
 			LOG.error("Upload of service-tags failed with message " + resp.getMessage());
 
-			if (response == null || response.getStatus() != HttpServletResponse.SC_BAD_REQUEST) {
+			if (response == null || resp.getHttpStatusCode() != HttpServletResponse.SC_BAD_REQUEST) {
 				// NOT an application error
 				throw new Exception("Upload of service-tags failed with response: " + response);
 			}