Skip to content

Conversation

@chenjian2664
Copy link
Contributor

@chenjian2664 chenjian2664 commented May 23, 2025

Refactor TransactionLogTail#loadNewTail to support loading transaction log to based on param startVersion and endVersion conditional. Previously, the method only supported forward traversal from head to tail, which posed a risk when early transaction logs were missing -- maybe due to cleanup. This refactor enables both forward and backward traversal, increasing robustness and flexibility in tail loading logic.

Additionally, remove BaseTransactionsTable#loadNewTailBackward and use the enhanced loadNewTail method.

Description

Additional context and related issues

Release notes

(x) This is not user-visible or is docs only, and no release notes are required.
( ) Release notes are required. Please propose a release note for me.
( ) Release notes are required, with the following suggested text:

## Section
* Fix some things. ({issue}`issuenumber`)

@cla-bot cla-bot bot added the cla-signed label May 23, 2025
@chenjian2664 chenjian2664 requested review from ebyhr and raunaqmorarka and removed request for ebyhr May 23, 2025 13:32
@github-actions github-actions bot added the delta-lake Delta Lake connector label May 23, 2025
@chenjian2664 chenjian2664 requested a review from findinpath May 23, 2025 13:33
@github-actions
Copy link

This pull request has gone a while without any activity. Ask for help on #core-dev on Trino slack.

@github-actions
Copy link

This pull request has gone a while without any activity. Ask for help on #core-dev on Trino slack.

@github-actions github-actions bot added the stale label Jul 16, 2025
@chenjian2664 chenjian2664 force-pushed the logtail_merge branch 2 times, most recently from 56dc2ec to a4b73ab Compare July 28, 2025 13:52
Refactor TransactionLogTail#loadNewTail to support loading transaction log
to based on param `startVersion` and `endVersion` conditional.
Previously, the method only supported forward traversal from head to tail,
which posed a risk when early transaction logs were missing -- maybe due to cleanup.
This refactor enables both forward and backward traversal, increasing
robustness and flexibility in tail loading logic.

Additionally, remove `BaseTransactionsTable#loadNewTailBackward` and use the enhanced loadNewTail method.
@raunaqmorarka raunaqmorarka merged commit 587323b into trinodb:master Jul 29, 2025
23 checks passed
@github-actions github-actions bot added this to the 477 milestone Jul 29, 2025
@chenjian2664 chenjian2664 deleted the logtail_merge branch July 29, 2025 12:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed delta-lake Delta Lake connector

Development

Successfully merging this pull request may close these issues.

2 participants