Skip to content

chore(utilities): add SQS backlog / in-flight visibility to S3 events source - #19333

Merged
voonhous merged 2 commits into
apache:masterfrom
Davis-Zhang-Onehouse:eng-45481-s3-sqs-backlog-logging
Jul 22, 2026
Merged

chore(utilities): add SQS backlog / in-flight visibility to S3 events source#19333
voonhous merged 2 commits into
apache:masterfrom
Davis-Zhang-Onehouse:eng-45481-s3-sqs-backlog-logging

Conversation

@Davis-Zhang-Onehouse

@Davis-Zhang-Onehouse Davis-Zhang-Onehouse commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Describe the issue this Pull Request addresses

The SQS-backed S3 events ingestion path gives no signal about message cleanup. When S3EventsSource.onCommit runs, it deletes the processed messages from the queue and clears its tracker, but nothing is logged, so there is no way to tell from the logs how many messages were reclaimed at a given checkpoint or whether cleanup ran at all.

Summary and Changelog

Operators get a per-commit log line showing how many SQS messages were deleted and at which checkpoint, making the ingestion path's queue cleanup observable. This is the first increment of a broader observability change (receive-loop plan/summary and in-flight queue counters) that will follow.

  • S3EventsSource: added an SLF4J logger.
  • S3EventsSource.onCommit: log the processed-message count and the checkpoint before deleting the messages from the queue.

No existing code paths were modified and no code was copied.

Impact

Logging only. No public API, config, or behavior change. One additional INFO line per commit on the S3 events source path.

Risk Level

none

Documentation Update

none

Contributor's checklist

  • Read through contributor's guide
  • Enough context is provided in the sections above
  • Adequate tests were added if applicable

Adds a lifecycle log line to S3EventsSource.onCommit recording how many SQS
messages are being deleted at commit and the checkpoint, improving operational
visibility into the SQS-backed S3 events ingestion path.

Placeholder / first increment of a broader observability change tracked for an
Onehouse internal hotfix; the full receive-loop / in-flight logging will be
upstreamed here subsequently.

@hudi-agent hudi-agent left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ 🤖 This review was generated by an AI agent and may contain mistakes. Please verify any suggestions before applying.

Thanks for working on this! This PR adds a single informational log line to S3EventsSource.onCommit recording the number of processed SQS messages being deleted and the checkpoint. It's a logging-only change with no behavioral impact. No correctness issues found. A few style/readability suggestions in the inline comments. Please take a look, and this should be ready for a Hudi committer or PMC member to take it from here. One small nit on the log message; otherwise the change is clean.

cc @yihua

@voonhous voonhous changed the title logging: add SQS backlog / in-flight visibility to S3 events source chore(utilities): add SQS backlog / in-flight visibility to S3 events source Jul 22, 2026
SLF4J emits the logger name already (every log4j2 pattern in the repo uses
%c), so the "S3EventsSource.onCommit:" prefix duplicated it. Also names the
queue as SQS in the message.
@voonhous
voonhous enabled auto-merge (squash) July 22, 2026 08:15

@voonhous voonhous left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@github-actions github-actions Bot added the size:XS PR with lines of changes in <= 10 label Jul 22, 2026
@hudi-bot

Copy link
Copy Markdown
Collaborator

CI report:

Bot commands @hudi-bot supports the following commands:
  • @hudi-bot run azure re-run the last Azure build

@voonhous
voonhous merged commit e4071ce into apache:master Jul 22, 2026
74 of 76 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS PR with lines of changes in <= 10

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants