Github user justinleet commented on a diff in the pull request:
https://github.com/apache/incubator-metron/pull/424#discussion_r97914854
--- Diff:
metron-platform/metron-indexing/src/test/java/org/apache/metron/indexing/integration/IndexingIntegrationTest.java
---
@@ -139,11 +146,22 @@ public void test() throws Exception {
inputDocs.add(m);
}
+ final AtomicBoolean isLoaded = new AtomicBoolean(false);
ConfigUploadComponent configUploadComponent = new
ConfigUploadComponent()
.withTopologyProperties(topologyProperties)
.withGlobalConfigsPath(TestConstants.SAMPLE_CONFIG_PATH)
.withEnrichmentConfigsPath(TestConstants.SAMPLE_CONFIG_PATH)
.withIndexingConfigsPath(TestConstants.SAMPLE_CONFIG_PATH)
+ .withPostStartCallback(component -> {
+ try {
+
waitForIndex(component.getTopologyProperties().getProperty(ZKServerComponent.ZOOKEEPER_PROPERTY));
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ isLoaded.set(true);
+ return null;
+ }
+ );
;
--- End diff --
Can you kill the extra semicolon?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---