Skip to content

[ISSUE #10462] Standardize log format across tiered storage#10474

Open
lizhimins wants to merge 1 commit into
apache:developfrom
lizhimins:feature/10462-logs
Open

[ISSUE #10462] Standardize log format across tiered storage#10474
lizhimins wants to merge 1 commit into
apache:developfrom
lizhimins:feature/10462-logs

Conversation

@lizhimins

Copy link
Copy Markdown
Member

What is the purpose of the change

Part of #10462

Standardize log format across the tiered storage module for consistent troubleshooting.

Brief changelog

  • Unify to ClassName#methodName, description, key={} format
  • Fix wrong class name IndexStoreService in IndexStoreFile logs
  • Fix SLF4J placeholder count mismatches and missing commas
  • Fix trailing whitespace and dangling colons in format strings
  • Fix runtime string concatenation in IndexStoreService shutdown log
  • Change error to warn for graceful skip scenarios
  • Change info to debug for normal flow logs (file full, boundary search)
  • Fix log order in FileSegment readAsync (log length before reassignment)
  • Deduplicate queryMessageAsync error logs with context parameters
  • Enhance MessageFormatUtil splitMessageBuffer logs with buffer details

Verifying this change

  • mvn compile succeeds
  • mvn test -pl tieredstore passes (112 tests, 0 failures)

🤖 Generated with Claude Code

- Unify to ClassName#methodName, description, key={} format
- Fix wrong class name IndexStoreService in IndexStoreFile logs
- Fix SLF4J placeholder count mismatches and missing commas
- Fix trailing whitespace and dangling colons in format strings
- Fix runtime string concatenation in IndexStoreService shutdown log
- Change error to warn for graceful skip scenarios in IndexStoreService
- Change info to debug for normal flow logs (file full, boundary search)
- Fix log order in FileSegment readAsync (log length before reassignment)
- Deduplicate queryMessageAsync error logs with context parameters
- Enhance MessageFormatUtil splitMessageBuffer logs with buffer details

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 55.55556% with 40 lines in your changes missing coverage. Please review.
✅ Project coverage is 48.02%. Comparing base (a6fb9e2) to head (a004c91).
⚠️ Report is 10 commits behind head on develop.

Files with missing lines Patch % Lines
...che/rocketmq/tieredstore/index/IndexStoreFile.java 26.31% 14 Missing ⚠️
.../rocketmq/tieredstore/index/IndexStoreService.java 38.09% 13 Missing ⚠️
...pache/rocketmq/tieredstore/TieredMessageStore.java 44.44% 5 Missing ⚠️
...q/tieredstore/core/MessageStoreDispatcherImpl.java 0.00% 3 Missing ⚠️
...ocketmq/tieredstore/provider/PosixFileSegment.java 50.00% 3 Missing ⚠️
...ache/rocketmq/tieredstore/file/FlatAppendFile.java 66.66% 1 Missing ⚠️
...pache/rocketmq/tieredstore/file/FlatFileStore.java 80.00% 1 Missing ⚠️
Additional details and impacted files
@@              Coverage Diff              @@
##             develop   #10474      +/-   ##
=============================================
- Coverage      48.03%   48.02%   -0.02%     
- Complexity     13286    13302      +16     
=============================================
  Files           1376     1377       +1     
  Lines         100558   100636      +78     
  Branches       12985    12997      +12     
=============================================
+ Hits           48305    48331      +26     
- Misses         46333    46368      +35     
- Partials        5920     5937      +17     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@oss-sentinel-ai oss-sentinel-ai left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Review: Approved ✅

PR: #10474 — Standardize log format across tiered storage
Type: Code quality (11 files, +94/-92)

Assessment

Unifies log format to ClassName#methodName, description, key={} pattern. Fixes wrong class names and SLF4J placeholder issues.

Verdict

✅ Improves troubleshooting consistency. Part of #10462.


🤖 Automated review by oss-sentinel-ai

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants