Apache9 commented on code in PR #4353:
URL: https://github.com/apache/hbase/pull/4353#discussion_r854664938


##########
hbase-compression/hbase-compression-zstd/src/main/java/org/apache/hadoop/hbase/io/compress/zstd/ZstdCodec.java:
##########
@@ -121,10 +123,10 @@ static int getLevel(Configuration conf) {
   }
 
   static int getBufferSize(Configuration conf) {
-    int size = conf.getInt(ZSTD_BUFFER_SIZE_KEY,
+    return conf.getInt(ZSTD_BUFFER_SIZE_KEY,
       
conf.getInt(CommonConfigurationKeys.IO_COMPRESSION_CODEC_ZSTD_BUFFER_SIZE_KEY,
-        
CommonConfigurationKeys.IO_COMPRESSION_CODEC_ZSTD_BUFFER_SIZE_DEFAULT));
-    return size > 0 ? size : 256 * 1024; // Don't change this default
+        // IO_COMPRESSION_CODEC_ZSTD_BUFFER_SIZE_DEFAULT is 0! We can't allow 
that.

Review Comment:
   hmmm, why we have an invalid default value?



##########
hbase-resource-bundle/src/main/resources/META-INF/LICENSE.vm:
##########
@@ -1381,7 +1381,7 @@ You can redistribute it and/or modify it under either the 
terms of the
 ## See this FAQ link for justifications: 
https://www.apache.org/legal/resolved.html
 ##
 ## NB: This list is later compared as lower-case. New entries must also be all 
lower-case
-#set($non_aggregate_fine = [ 'public domain', 'new bsd license', 'bsd 
license', 'bsd', 'bsd 2-clause license', 'mozilla public license version 1.1', 
'mozilla public license version 2.0', 'creative commons attribution license, 
version 2.5' ])
+#set($non_aggregate_fine = [ 'public domain', 'new bsd license', 'bsd 
license', 'bsd', 'bsd 2-clause license', 'mozilla public license version 1.1', 
'mozilla public license version 2.0', 'creative commons attribution license, 
version 2.5', 'apache license 2.0' ])

Review Comment:
   Mind posting the errors? In general I do not think we should add apache 
license 2.0 here...



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

Reply via email to