metron-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From justinleet <...@git.apache.org>
Subject [GitHub] incubator-metron pull request #424: METRON-672: SolrIndexingIntegrationTest ...
Date Thu, 26 Jan 2017 01:02:04 GMT
Github user justinleet commented on a diff in the pull request:

    https://github.com/apache/incubator-metron/pull/424#discussion_r97914890
  
    --- Diff: metron-platform/metron-indexing/src/test/java/org/apache/metron/indexing/integration/IndexingIntegrationTest.java
---
    @@ -184,6 +203,26 @@ public void test() throws Exception {
         }
       }
     
    +  private void waitForIndex(String zookeeperQuorum) throws Exception {
    +    try(CuratorFramework client = getClient(zookeeperQuorum)) {
    +      client.start();
    +      byte[] bytes = null;
    +      do {
    +        try {
    +          bytes = ConfigurationsUtils.readSensorIndexingConfigBytesFromZookeeper(testSensorType,
client);
    +          Thread.sleep(1000);
    +        }
    +        catch(KeeperException.NoNodeException nne) {
    +          //kindly ignore because the path might not exist just yet.
    +        }
    +      }
    +      while(bytes == null || bytes.length == 0);
    +      return;
    --- End diff --
    
    Drop the return, since it's a void method.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message