ClearTx also clears ReaderWriterCntl#419
Conversation
|
Warning Rate limit exceeded
⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. 📒 Files selected for processing (1)
WalkthroughThis pull request adds diagnostic and warning logging across multiple transaction and concurrency control components. Changes include logging in conflict detection paths for acquire operations, enhanced diagnostics for writer transaction conflicts, and schema control cleanup during transaction abort. No control flow or behavioral changes are introduced. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 1 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (1 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
tx_service/src/tx_operation.cpp (1)
1910-1912: Use non-error severity and include txn context for this conflict log.Line 1910 logs every acquire-all failure as
ERROR; many of these are expected retry/conflict outcomes and can create noisy error telemetry. PreferWARNING(or sampled warning) and includetx_numberfor correlation.Proposed change
- LOG(ERROR) << "AcquireAll of idx: " << idx - << " err code: " << int(hd_result.ErrorCode()) - << ", err msg: " << hd_result.ErrorMsg(); + LOG(WARNING) << "AcquireAll failed, tx_number: " + << txm->TxNumber() << ", idx: " << idx + << ", err code: " + << static_cast<int>(hd_result.ErrorCode()) + << ", err msg: " << hd_result.ErrorMsg();🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@tx_service/src/tx_operation.cpp` around lines 1910 - 1912, The log at the AcquireAll failure site currently uses LOG(ERROR) and lacks transaction context; change the severity to LOG(WARNING) (or use a sampled warning mechanism) and include the transaction identifier (tx_number) in the message for correlation, preserving the existing details (idx, int(hd_result.ErrorCode()), hd_result.ErrorMsg()); update the log call referencing the same AcquireAll failure location where LOG(ERROR) and hd_result are used so the message becomes a warning with tx_number included.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In `@tx_service/src/tx_operation.cpp`:
- Around line 1910-1912: The log at the AcquireAll failure site currently uses
LOG(ERROR) and lacks transaction context; change the severity to LOG(WARNING)
(or use a sampled warning mechanism) and include the transaction identifier
(tx_number) in the message for correlation, preserving the existing details
(idx, int(hd_result.ErrorCode()), hd_result.ErrorMsg()); update the log call
referencing the same AcquireAll failure location where LOG(ERROR) and hd_result
are used so the message becomes a warning with tx_number included.
ℹ️ Review info
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (5)
tx_service/include/cc/catalog_cc_map.htx_service/include/cc/template_cc_map.htx_service/src/cc/cc_shard.cpptx_service/src/cc/reader_writer_cntl.cpptx_service/src/tx_operation.cpp
Fixes https://github.com/eloqdata/project_tracker/issues/186.
Summary by CodeRabbit
Refactor
Chores