snleee commented on a change in pull request #8162:
URL: https://github.com/apache/pinot/pull/8162#discussion_r801222685



##########
File path: 
pinot-controller/src/main/java/org/apache/pinot/controller/api/resources/PinotSegmentUploadDownloadRestletResource.java
##########
@@ -380,6 +380,11 @@ private void downloadSegmentFileFromURI(String 
currentSegmentLocationURI, File d
     }
     LOGGER.info("Downloading segment from {} to {} for table {}", 
currentSegmentLocationURI, destFile.getAbsolutePath(),
         tableName);
+    URI uri = new URI(currentSegmentLocationURI);
+    if (uri.getScheme().equalsIgnoreCase("file")) {
+      throw new ControllerApplicationException(LOGGER, "Unsupported URI" + 
currentSegmentLocationURI,

Review comment:
       `Unsupported URI` -> `Unsupported URI: `?




-- 
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: commits-unsubscr...@pinot.apache.org

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