arunkumarucet commented on code in PR #17512:
URL: https://github.com/apache/pinot/pull/17512#discussion_r2739928571


##########
pinot-controller/src/main/java/org/apache/pinot/controller/api/resources/PinotSegmentUploadDownloadRestletResource.java:
##########
@@ -664,9 +670,13 @@ private SuccessResponse uploadSegments(String tableName, 
TableType tableType, Fo
               allowRefresh, headers, segmentUploadMetadataList);
         }
       }
+    } catch (WebApplicationException e) {
+      throw e;

Review Comment:
   Done. Moved metrics increment to the start of the catch (Exception e) block 
so it applies to all exceptions including WebApplicationException (quota 
failures). Then added instanceof check to handle rethrowing appropriately.



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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to