You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by GitBox <gi...@apache.org> on 2022/04/13 06:53:43 UTC

[GitHub] [hudi] yihua commented on a diff in pull request #5308: HUDI-3862 Some default configurations in HoodieHBaseIndexConfig do not work

yihua commented on code in PR #5308:
URL: https://github.com/apache/hudi/pull/5308#discussion_r849137873


##########
hudi-client/hudi-client-common/src/main/java/org/apache/hudi/config/HoodieWriteConfig.java:
##########
@@ -1453,43 +1453,43 @@ public String getHbaseTableName() {
   }
 
   public int getHbaseIndexGetBatchSize() {
-    return getInt(HoodieHBaseIndexConfig.GET_BATCH_SIZE);
+    return getIntOrDefault(HoodieHBaseIndexConfig.GET_BATCH_SIZE);

Review Comment:
   Thanks for reporting the issue.  Actually, all of these changes are not needed if the `HoodieHBaseIndexConfig` defaults are set properly.  It looks like that the root cause is that the builder of `HoodieWriteConfig` does not set defaults for `HoodieHBaseIndexConfig` in `setDefaults()`, like other Hudi config class.  Could you fix that and revert all getter changes instead?



-- 
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-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org