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

mcvsubbu 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 3aa4f5d  Fixed segment upload error return (#7957)
3aa4f5d is described below

commit 3aa4f5dab085f1d2f55ea37a6790477e97ddb27e
Author: Subbu Subramaniam <mcvsu...@users.noreply.github.com>
AuthorDate: Fri Dec 24 13:50:16 2021 -0800

    Fixed segment upload error return (#7957)
    
    * Fixed segment upload error return
    
    * Addressed review comment
---
 .../api/resources/PinotSegmentUploadDownloadRestletResource.java        | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/pinot-controller/src/main/java/org/apache/pinot/controller/api/resources/PinotSegmentUploadDownloadRestletResource.java
 
b/pinot-controller/src/main/java/org/apache/pinot/controller/api/resources/PinotSegmentUploadDownloadRestletResource.java
index d6d3889..33a1d55 100644
--- 
a/pinot-controller/src/main/java/org/apache/pinot/controller/api/resources/PinotSegmentUploadDownloadRestletResource.java
+++ 
b/pinot-controller/src/main/java/org/apache/pinot/controller/api/resources/PinotSegmentUploadDownloadRestletResource.java
@@ -308,7 +308,7 @@ public class PinotSegmentUploadDownloadRestletResource {
       throw e;
     } catch (Exception e) {
       
_controllerMetrics.addMeteredGlobalValue(ControllerMeter.CONTROLLER_SEGMENT_UPLOAD_ERROR,
 1L);
-      throw new ControllerApplicationException(LOGGER, "Caught internal server 
exception while uploading segment",
+      throw new ControllerApplicationException(LOGGER, "Exception while 
uploading segment: " + e.getMessage(),
           Response.Status.INTERNAL_SERVER_ERROR, e);
     } finally {
       FileUtils.deleteQuietly(tempEncryptedFile);

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

Reply via email to