[ 
https://issues.apache.org/jira/browse/GOBBLIN-1994?focusedWorklogId=902442&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-902442
 ]

ASF GitHub Bot logged work on GOBBLIN-1994:
-------------------------------------------

                Author: ASF GitHub Bot
            Created on: 30/Jan/24 00:03
            Start Date: 30/Jan/24 00:03
    Worklog Time Spent: 10m 
      Work Description: arjun4084346 commented on code in PR #3870:
URL: https://github.com/apache/gobblin/pull/3870#discussion_r1470390976


##########
gobblin-data-management/src/main/java/org/apache/gobblin/data/management/copy/iceberg/IcebergDataset.java:
##########
@@ -188,11 +215,19 @@ protected Map<Path, FileStatus> 
getFilePathsToFileStatus(FileSystem targetFs, Co
           this.getFileSetId(), currentSnapshotOverview.getSnapshotId(),
           currentSnapshotOverview.getManifestListPath(),
           currentSnapshotOverview.getMetadataPath().orElse("<<ERROR: 
MISSING!>>"));
-      return Maps.newHashMap();
+      TableMetadata readTimeTableMetadata = 
currentSnapshotOverview.getTableMetadata().orElseThrow(() -> new 
RuntimeException(
+          String.format("~%s~ no table metadata for current snapshot '%s' at 
'%s' with metadata path '%s'",
+              this.getFileSetId(), currentSnapshotOverview.getSnapshotId(),
+              currentSnapshotOverview.getManifestListPath(),
+              currentSnapshotOverview.getMetadataPath().orElse("<<ERROR: 
MISSING!>>"))));
+      return new GetFilePathsToFileStatusResult(Maps.newHashMap(), 
readTimeTableMetadata);
     }
+
+    List<TableMetadata> readTimeTableMetadataHolder = Lists.newArrayList(); // 
expecting exactly one elem

Review Comment:
   Why not just `TableMetadata readTimeTableMetadataHolder = null` if there 
will be only one element?





Issue Time Tracking
-------------------

    Worklog Id:     (was: 902442)
    Time Spent: 20m  (was: 10m)

> Ensure iceberg-distcp replication consistency
> ---------------------------------------------
>
>                 Key: GOBBLIN-1994
>                 URL: https://issues.apache.org/jira/browse/GOBBLIN-1994
>             Project: Apache Gobblin
>          Issue Type: Bug
>          Components: gobblin-core
>            Reporter: Kip Kohn
>            Assignee: Abhishek Tiwari
>            Priority: Major
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> Ensure iceberg-distcp consistency by using same `TableMetadata` for both WU 
> planning and final commit



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to