sajjad-moradi commented on a change in pull request #5617:
URL: https://github.com/apache/incubator-pinot/pull/5617#discussion_r448007026



##########
File path: 
pinot-controller/src/main/java/org/apache/pinot/controller/api/resources/PinotSegmentUploadDownloadRestletResource.java
##########
@@ -290,6 +297,34 @@ private String extractHttpHeader(HttpHeaders headers, 
String name) {
     return value;
   }
 
+  private Boolean encryptSegmentIfNeeded(String offlineTableName, File 
tempDecryptedFile, File tempEncryptedFile,
+      boolean uploadedSegmentIsEncrypted, String crypterUsedInUploadedSegment, 
String crypterClassNameInTableConfig) {
+
+    boolean segmentNeedsEncryption = 
!Strings.isNullOrEmpty(crypterClassNameInTableConfig);
+    if (!segmentNeedsEncryption) {
+      // do nothing
+      return false;
+    }
+
+    if (uploadedSegmentIsEncrypted) {
+      if 
(!crypterClassNameInTableConfig.equalsIgnoreCase(crypterUsedInUploadedSegment)) 
{

Review comment:
       Done.




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