This is an automated email from the ASF dual-hosted git repository.

lzljs3620320 pushed a commit to branch release-0.8
in repository https://gitbox.apache.org/repos/asf/paimon.git

commit 3119130f116c571e84a285bf14fe363ba9c535cf
Author: Askwang <[email protected]>
AuthorDate: Tue Jun 4 15:51:56 2024 +0800

    [core] Fix snapshot EARLIEST first write value (#3398)
---
 .../src/main/java/org/apache/paimon/table/ExpireSnapshotsImpl.java      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/paimon-core/src/main/java/org/apache/paimon/table/ExpireSnapshotsImpl.java 
b/paimon-core/src/main/java/org/apache/paimon/table/ExpireSnapshotsImpl.java
index 50cf39eb8..9023cf93e 100644
--- a/paimon-core/src/main/java/org/apache/paimon/table/ExpireSnapshotsImpl.java
+++ b/paimon-core/src/main/java/org/apache/paimon/table/ExpireSnapshotsImpl.java
@@ -146,7 +146,7 @@ public class ExpireSnapshotsImpl implements ExpireSnapshots 
{
             // write the hint file in order to see the earliest snapshot 
directly next time
             // should avoid duplicate writes when the file exists
             if (snapshotManager.readHint(SnapshotManager.EARLIEST) == null) {
-                writeEarliestHint(endExclusiveId);
+                writeEarliestHint(earliestId);
             }
 
             // fast exit

Reply via email to