ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From oleew...@apache.org
Subject ambari git commit: AMBARI-17004. Unit tests failing because of the order of hash sets/maps (Miklos Gergely via oleewere)
Date Wed, 08 Jun 2016 16:23:51 GMT
Repository: ambari
Updated Branches:
  refs/heads/branch-2.4 a3f72bf28 -> ff8eaec59


AMBARI-17004. Unit tests failing because of the order of hash sets/maps (Miklos Gergely via
oleewere)


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

Branch: refs/heads/branch-2.4
Commit: ff8eaec59838b952fdf1fdb9a41a7278d59873b5
Parents: a3f72bf
Author: Miklos Gergely <mgergely@hortonworks.com>
Authored: Wed Jun 8 18:20:21 2016 +0200
Committer: oleewere <oleewere@gmail.com>
Committed: Wed Jun 8 18:23:10 2016 +0200

----------------------------------------------------------------------
 .../event/request/ViewPrivilegeChangeRequestAuditEvent.java      | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/ff8eaec5/ambari-server/src/main/java/org/apache/ambari/server/audit/event/request/ViewPrivilegeChangeRequestAuditEvent.java
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/java/org/apache/ambari/server/audit/event/request/ViewPrivilegeChangeRequestAuditEvent.java
b/ambari-server/src/main/java/org/apache/ambari/server/audit/event/request/ViewPrivilegeChangeRequestAuditEvent.java
index c06eb7e..11c558c 100644
--- a/ambari-server/src/main/java/org/apache/ambari/server/audit/event/request/ViewPrivilegeChangeRequestAuditEvent.java
+++ b/ambari-server/src/main/java/org/apache/ambari/server/audit/event/request/ViewPrivilegeChangeRequestAuditEvent.java
@@ -23,6 +23,8 @@ import java.util.LinkedList;
 import java.util.List;
 import java.util.Map;
 import java.util.Set;
+import java.util.SortedSet;
+import java.util.TreeSet;
 
 import javax.annotation.concurrent.Immutable;
 
@@ -89,7 +91,7 @@ public class ViewPrivilegeChangeRequestAuditEvent extends RequestAuditEvent
{
         .append(name)
         .append(")");
 
-      Set<String> roleSet = new HashSet<String>();
+      SortedSet<String> roleSet = new TreeSet<String>();
       roleSet.addAll(users.keySet());
       roleSet.addAll(groups.keySet());
 


Mime
View raw message