thomasmueller commented on code in PR #1180:
URL: https://github.com/apache/jackrabbit-oak/pull/1180#discussion_r1372788035


##########
oak-lucene/src/test/java/org/apache/jackrabbit/oak/composite/blueGreen/CustomizedIndexTest.java:
##########
@@ -211,4 +233,25 @@ private void createFolders() throws IOException {
         indexDir = tempDir.newFolder("index");
     }
 
+    private static String getActiveLuceneIndexes(Persistence p) {
+        return getActiveLuceneIndexes(p.getCompositeNodestore(), 
p.getMountInfoProvider());
+    }
+
+    private static String getActiveLuceneIndexes(NodeStore ns, 
MountInfoProvider m) {
+        ArrayList<String> list = new ArrayList<>();
+        IndexInfoServiceImpl indexService = new IndexInfoServiceImpl(ns,
+                new IndexPathServiceImpl(ns, m));
+        for (IndexInfo info : indexService.getAllIndexInfo()) {
+            if (!LuceneIndexConstants.TYPE_LUCENE.equals(info.getType())) {
+                continue;
+            }
+            if (!info.isActive()) {
+                continue;
+            }
+            list.add(info.getIndexPath());
+        }
+        Collections.sort(list);
+        return list.toString();
+    }

Review Comment:
   With a single String, my IDE allows to copy & paste... I'll try if that 
works with sets as well.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to