You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by GitBox <gi...@apache.org> on 2019/02/12 23:59:29 UTC

[GitHub] jihoonson commented on a change in pull request #7046: index_parallel: support !appendToExisting with no explicit intervals

jihoonson commented on a change in pull request #7046: index_parallel: support !appendToExisting with no explicit intervals
URL: https://github.com/apache/incubator-druid/pull/7046#discussion_r256197468
 
 

 ##########
 File path: integration-tests/src/main/java/org/apache/druid/testing/clients/CoordinatorResourceTestClient.java
 ##########
 @@ -123,6 +131,25 @@ private String getLoadStatusURL()
     return segments;
   }
 
+  // return a set of the segment versions for the specified datasource
+  public Set<String> getSegmentVersions(final String dataSource)
+  {
+    ArrayList<DataSegment> segments;
+    try {
+      StatusResponseHolder response = makeRequest(HttpMethod.GET, getFullSegmentsURL(dataSource));
+
+      segments = jsonMapper.readValue(
+          response.getContent(), new TypeReference<List<DataSegment>>()
+          {
+          }
+      );
+    }
+    catch (Exception e) {
+      throw Throwables.propagate(e);
 
 Review comment:
   nit: this is deprecated. please use `throw new RuntimeException(e)` instead.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org