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 2021/11/07 05:50:04 UTC

[GitHub] [hudi] mincwang commented on a change in pull request #3887: [HUDI-2648] Retry FileSystem action instead of failed directly.

mincwang commented on a change in pull request #3887:
URL: https://github.com/apache/hudi/pull/3887#discussion_r744206294



##########
File path: hudi-client/hudi-spark-client/src/main/java/org/apache/hudi/table/HoodieSparkTable.java
##########
@@ -63,9 +63,14 @@ protected HoodieSparkTable(HoodieWriteConfig config, HoodieEngineContext context
   public static <T extends HoodieRecordPayload> HoodieSparkTable<T> create(HoodieWriteConfig config, HoodieEngineContext context,
                                                                            boolean refreshTimeline) {
     HoodieTableMetaClient metaClient =
-        HoodieTableMetaClient.builder().setConf(context.getHadoopConf().get()).setBasePath(config.getBasePath())
-            .setLoadActiveTimelineOnLoad(true).setConsistencyGuardConfig(config.getConsistencyGuardConfig())
-            .setLayoutVersion(Option.of(new TimelineLayoutVersion(config.getTimelineLayoutVersion()))).build();
+        HoodieTableMetaClient.builder()
+                .setConf(context.getHadoopConf().get())
+                .setBasePath(config.getBasePath())
+                .setLoadActiveTimelineOnLoad(true)
+                .setConsistencyGuardConfig(config.getConsistencyGuardConfig())
+                .setFileSystemGuardConfig(config.getFileSystemGuardConfig())

Review comment:
       hi @zhangyue19921010 ,i think also require add about setFileSystemGuardConfig in HoodieFlinkTable calss




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