atlas-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shweth...@apache.org
Subject incubator-atlas git commit: ATLAS-1273 Test testOnChangeRefresh in DefaultMetadataServiceTest is failing (ayubkhan via shwethags)
Date Tue, 08 Nov 2016 09:01:22 GMT
Repository: incubator-atlas
Updated Branches:
  refs/heads/master def9e385c -> c3bf72cd0


ATLAS-1273 Test testOnChangeRefresh in DefaultMetadataServiceTest is failing (ayubkhan via
shwethags)


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

Branch: refs/heads/master
Commit: c3bf72cd0bf40db688b425d6db9f6f58c73e34a9
Parents: def9e38
Author: Shwetha GS <sshivalingamurthy@hortonworks.com>
Authored: Tue Nov 8 14:31:11 2016 +0530
Committer: Shwetha GS <sshivalingamurthy@hortonworks.com>
Committed: Tue Nov 8 14:31:11 2016 +0530

----------------------------------------------------------------------
 release-log.txt                                           |  1 +
 .../apache/atlas/service/DefaultMetadataServiceTest.java  | 10 ++++++++--
 2 files changed, 9 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/c3bf72cd/release-log.txt
----------------------------------------------------------------------
diff --git a/release-log.txt b/release-log.txt
index 44762d4..b8ce359 100644
--- a/release-log.txt
+++ b/release-log.txt
@@ -9,6 +9,7 @@ ATLAS-1060 Add composite indexes for exact match performance improvements
for al
 ATLAS-1127 Modify creation and modification timestamps to Date instead of Long(sumasai)
 
 ALL CHANGES:
+ATLAS-1273 Test testOnChangeRefresh in DefaultMetadataServiceTest is failing (ayubkhan via
shwethags)
 Atlas web server allows user to browse webapp directory (vrathor-hw via shwethags)
 ATLAS-1241 New Instance APIs and POJOs (sumasai)
 ATLAS-1259 Fix Test and compilation failure caused bt ATLAS-1233 changes (apoorvnaik via
sumasai)

http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/c3bf72cd/repository/src/test/java/org/apache/atlas/service/DefaultMetadataServiceTest.java
----------------------------------------------------------------------
diff --git a/repository/src/test/java/org/apache/atlas/service/DefaultMetadataServiceTest.java
b/repository/src/test/java/org/apache/atlas/service/DefaultMetadataServiceTest.java
index 82fe380..37c2374 100644
--- a/repository/src/test/java/org/apache/atlas/service/DefaultMetadataServiceTest.java
+++ b/repository/src/test/java/org/apache/atlas/service/DefaultMetadataServiceTest.java
@@ -77,6 +77,7 @@ import java.util.Collection;
 import java.util.HashMap;
 import java.util.List;
 import java.util.Map;
+import java.util.Collections;
 
 import static org.apache.atlas.TestUtils.COLUMNS_ATTR_NAME;
 import static org.apache.atlas.TestUtils.COLUMN_TYPE;
@@ -1138,11 +1139,16 @@ public class DefaultMetadataServiceTest {
     @Test
     public void testOnChangeRefresh() {
         try {
-            List<String> beforeChangeTypeNames = metadataService.getTypeNames(new HashMap<TypeCache.TYPE_FILTER,
String>());
+            List<String> beforeChangeTypeNames = new ArrayList<>();
+            beforeChangeTypeNames.addAll(metadataService.getTypeNames(new HashMap<TypeCache.TYPE_FILTER,
String>()));
 
             ((DefaultMetadataService)metadataService).onChange(new ChangedTypeDefs());
 
-            List<String> afterChangeTypeNames = metadataService.getTypeNames(new HashMap<TypeCache.TYPE_FILTER,
String>());
+            List<String> afterChangeTypeNames = new ArrayList<>();
+            afterChangeTypeNames.addAll(metadataService.getTypeNames(new HashMap<TypeCache.TYPE_FILTER,
String>()));
+
+            Collections.sort(beforeChangeTypeNames);
+            Collections.sort(afterChangeTypeNames);
             assertEquals(afterChangeTypeNames, beforeChangeTypeNames);
         } catch (AtlasBaseException e) {
             fail("Should've succeeded", e);


Mime
View raw message