This is an automated email from the ASF dual-hosted git repository.

snlee pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pinot.git


The following commit(s) were added to refs/heads/master by this push:
     new 3a631dd05e Bug fix to get the toSegments list correctly (#10659)
3a631dd05e is described below

commit 3a631dd05e4eab29d3bbd420e4d7d9b6f0d0f6ea
Author: swaminathanmanish <[email protected]>
AuthorDate: Thu Apr 20 17:31:43 2023 -0700

    Bug fix to get the toSegments list correctly (#10659)
---
 .../java/org/apache/pinot/common/utils/FileUploadDownloadClient.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/pinot-common/src/main/java/org/apache/pinot/common/utils/FileUploadDownloadClient.java
 
b/pinot-common/src/main/java/org/apache/pinot/common/utils/FileUploadDownloadClient.java
index d70649d3db..e5456410b1 100644
--- 
a/pinot-common/src/main/java/org/apache/pinot/common/utils/FileUploadDownloadClient.java
+++ 
b/pinot-common/src/main/java/org/apache/pinot/common/utils/FileUploadDownloadClient.java
@@ -1075,7 +1075,7 @@ public class FileUploadDownloadClient implements 
AutoCloseable {
   EndReplaceSegmentsRequest endReplaceSegmentsRequest, @Nullable AuthProvider 
authProvider)
       throws IOException, HttpErrorStatusException {
     String jsonBody = (endReplaceSegmentsRequest == null) ? null
-        : JsonUtils.objectToString(endReplaceSegmentsRequest.getSegmentsTo());
+        : JsonUtils.objectToString(endReplaceSegmentsRequest);
     return HttpClient.wrapAndThrowHttpException(
         _httpClient.sendRequest(getEndReplaceSegmentsRequest(uri, jsonBody, 
socketTimeoutMs, authProvider)));
   }


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to