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

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


The following commit(s) were added to refs/heads/master by this push:
     new dd19b2601 [core] Fix snapshot EARLIEST first write value (#3398)
dd19b2601 is described below

commit dd19b260111a23ceb9f9bde237f087736bbbafa1
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 f4361481c..48a2a1259 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
@@ -130,7 +130,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