Skip to content

Spark3.x fails to run the test #7413

@xuzhiwen1255

Description

@xuzhiwen1255

Apache Iceberg version

1.2.1 (latest release)

Query engine

Spark

Please describe the bug 🐞

ci: https://github.com/xuzhiwen1255/iceberg/actions/runs/4775773009/jobs/8490338758
local :
image

I guess it has something to do with #4479

In the execution test method testFailReadingCheckpointInvalidSnapshot,a null pointer exception occurred.
The problem code is as follows,
SparkMicroBatchStream#latestOffset().

Snapshot curSnapshot = table.snapshot(startingOffset.snapshotId());

Because the snapshot has been cleaned up, the snapshot cannot be obtained when the snapshot is obtained, which leads to a null pointer problem because it is not judged whether the snapshot is null when it is passed down.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions