prashantwason commented on a change in pull request #3427:
URL: https://github.com/apache/hudi/pull/3427#discussion_r687252668



##########
File path: 
hudi-common/src/main/java/org/apache/hudi/common/config/HoodieMetadataConfig.java
##########
@@ -44,6 +44,13 @@
       .sinceVersion("0.7.0")
       .withDocumentation("Enable the internal metadata table which serves 
table metadata like level file listings");
 
+  // Enable syncing the Metadata Table
+  public static final ConfigProperty<Boolean> METADATA_SYNC_ENABLE_PROP = 
ConfigProperty

Review comment:
       @leesf the current problem is that metadata table is not safe when 
written from multiple pipelines together. So we need to keep it enabled in all 
pipelines but only have one pipeline write to it. 
   
   Two alternate suggestion:
   1. Change the name of this config :
   The writing-to-metadata-table is being called the "sync" here. We can change 
it to read-only mode?
   hoodie.metadata.readonly=true?
   
   2. Introduce metadata table mode instead of enable disable:
   hoodie.metadata.mode=[disabled,readwrite,readonly].    readwrite and 
readonly imply enabled=true and users only provide the single config mode.
   
   I also do not want another config to confuse users. The other option is to 
enable multi-writer mode for metadata table. I have that implemented as part of 
another PR (metadata table next version): 
https://github.com/apache/hudi/pull/3426/commits/f417390aed56c05dbaedeac6ecf47294996bb591
   
   




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