Conversation
📝 WalkthroughSummary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings. WalkthroughEnhanced warning messages in worker lock handlers to include lock identifiers. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Pre-merge checks and finishing touches❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (1 passed)
✨ 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.
Actionable comments posted: 0
🧹 Nitpick comments (1)
synapse/handlers/worker_lock.py (1)
358-366: Consider stabilizinglock_namesordering in MultiLock timeout logThe added
lock_namescontext is useful. Iflock_namesis ever a set, its string representation (and thus the log line) may change order between runs, which can make log diffing/grepping harder. If that matters in your ops workflows, you could normalize:sorted_lock_names = sorted(self.lock_names) logger.warning( "MultiLock timeout is getting excessive: %s: %ss. There may be a deadlock.", sorted_lock_names, self._retry_interval, )Otherwise, the change is fine as-is.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
Disabled knowledge base sources:
- Linear integration is disabled by default for public repositories
You can enable these sources in your CodeRabbit configuration.
📒 Files selected for processing (1)
synapse/handlers/worker_lock.py(2 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (8)
- GitHub Check: test-sytest
- GitHub Check: test-complement
- GitHub Check: test-trial
- GitHub Check: build-python
- GitHub Check: lint-types
- GitHub Check: test-sytest
- GitHub Check: test-complement
- GitHub Check: test-trial
🔇 Additional comments (1)
synapse/handlers/worker_lock.py (1)
276-285: Lock timeout logging now includes lock identifiers — looks goodIncluding
lock_nameandlock_keyin the warning significantly improves debuggability around long waits / deadlocks, and the format string correctly matches the three arguments.
No description provided.