Skip to content

[Bug]: Using different snapshot id resulted in accidental deletion of delete file #3348

@zhongqishang

Description

@zhongqishang

What happened?

org.apache.amoro.server.utils.IcebergTableUtil#getDanglingDeleteFiles 2 scans delete file use different snapshot id, deleted delete file by mistake, resulting in data duplication.

image

Affects Versions

master/0.7.1

What table formats are you seeing the problem on?

Iceberg

What engines are you seeing the problem on?

AMS

How to reproduce

No response

Relevant log output

No response

Anything else

No response

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions