[
https://issues.apache.org/jira/browse/GOBBLIN-2169?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17895179#comment-17895179
]
Vivek Rai commented on GOBBLIN-2169:
------------------------------------
Similar issue can occur inĀ
{code:java}
public List<DataFile> getPartitionSpecificDataFiles(Predicate<StructLike>
icebergPartitionFilterPredicate)
throws IOException {
TableMetadata tableMetadata = accessTableMetadata();
Snapshot currentSnapshot = tableMetadata.currentSnapshot();
long currentSnapshotId = currentSnapshot.snapshotId();
{code}
[https://github.com/apache/gobblin/pull/4071#discussion_r1825270928]
> Fix NPE in overwritePartition and getPartitionSpecificDataFiles
> ---------------------------------------------------------------
>
> Key: GOBBLIN-2169
> URL: https://issues.apache.org/jira/browse/GOBBLIN-2169
> Project: Apache Gobblin
> Issue Type: Bug
> Reporter: Vivek Rai
> Priority: Major
> Time Spent: 40m
> Remaining Estimate: 0h
>
> While overwrite we log the snapshot id of last snapshot present before
> commit, incase table has no previous snapshot it will give NPE
> Line giving NPE -
> {code:java}
> log.info("~{}~ SnapshotId before overwrite: {}", tableId,
> accessTableMetadata().currentSnapshot().snapshotId());{code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)