[fix](load) Respect Kafka isolation level when fetching offsets - #67089
Open
sollhui wants to merge 1 commit into
Open
[fix](load) Respect Kafka isolation level when fetching offsets#67089sollhui wants to merge 1 commit into
sollhui wants to merge 1 commit into
Conversation
Contributor
|
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
### What problem does this PR solve? Issue Number: None Related PR: None Problem Summary: Routine load queried Kafka watermark offsets for latest offsets and OFFSET_END. Watermark queries always expose the log end offset, so jobs configured with isolation.level=read_committed still counted records from open transactions. Use the Kafka ListOffsets Admin API with the job isolation level so read_committed returns the last stable offset while read_uncommitted keeps using the log end offset. Add a transactional Kafka regression case covering initial OFFSET_END resolution and lag refresh. ### Release note Kafka routine load offset queries now respect property.isolation.level. ### Check List (For Author) - Test: Not run (skipped at requester direction) - Behavior changed: Yes (read_committed offset and lag exclude open transactions) - Does this need documentation: No
sollhui
force-pushed
the
agent/routine-load-isolation-aware-offsets
branch
from
August 25, 2026 03:38
b8d1b8d to
ac58348
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What problem does this PR solve?
Issue Number: None
Related PR: None
Problem Summary:
Routine load used
query_watermark_offsets()when resolvingOFFSET_ENDand refreshing latest offsets. The high watermark is the log end offset and includes records from open Kafka transactions, soisolation.level=read_committeddid not affect routine load progress, lag, or scheduling decisions.This change uses Kafka’s
ListOffsetsAdmin API and passes the job isolation level explicitly.read_committednow returns the last stable offset, whileread_uncommittedcontinues to return the log end offset. Both periodic latest-offset refresh andOFFSET_ENDresolution share the same implementation.A transactional Kafka regression case covers the different initial offsets and lag values for
read_committedandread_uncommittedjobs.Release note
Kafka routine load offset queries now respect
property.isolation.level.Check List (For Author)
read_committedoffset and lag exclude records in open transactions.