snleee commented on a change in pull request #6094:
URL: https://github.com/apache/incubator-pinot/pull/6094#discussion_r513751927



##########
File path: 
pinot-common/src/main/java/org/apache/pinot/common/utils/FileUploadDownloadClient.java
##########
@@ -287,11 +309,26 @@ private static HttpUriRequest 
getUploadSegmentMetadataFilesRequest(URI uri, Map<
     return requestBuilder.build();
   }
 
+  private static HttpUriRequest getStartReplaceSegmentsRequest(URI uri, String 
jsonRequestBody, int socketTimeoutMs) {
+    RequestBuilder requestBuilder = 
RequestBuilder.post(uri).setVersion(HttpVersion.HTTP_1_1)
+        .setHeader(HttpHeaders.CONTENT_TYPE, JSON_CONTENT_TYPE)
+        .setEntity(new StringEntity(jsonRequestBody, 
ContentType.APPLICATION_JSON));
+    setTimeout(requestBuilder, socketTimeoutMs);
+    return requestBuilder.build();
+  }
+
+  private static HttpUriRequest endStartReplaceSegmentsRequest(URI uri, int 
socketTimeoutMs) {

Review comment:
       oops good catch.. fixed




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org
For additional commands, e-mail: commits-h...@pinot.apache.org

Reply via email to