Log Gracefully and ignore entity id null error#27459
Log Gracefully and ignore entity id null error#27459mohityadav766 wants to merge 4 commits intomainfrom
Conversation
There was a problem hiding this comment.
Pull request overview
This PR aims to reduce noisy/avoidable errors by (1) logging WebSocket disconnect-related exceptions more gracefully and (2) avoiding failures when recording search-index reader errors that don’t have a usable entity id.
Changes:
- Update Jetty 12 WebSocket error handling to downgrade
ClosedChannelExceptionlogging and add safer logging around error handling. - Update distributed search indexing
PartitionWorkerto deriveentityIdmore intentionally (preferEntityInterface.getId()) and skip recording reader failures whenentityIdis null.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| openmetadata-service/src/main/java/org/openmetadata/service/socket/Jetty12WebSocketHandler.java | Adjusts WebSocket error logging to treat closed-channel errors as non-actionable noise and wraps error handling defensively. |
| openmetadata-service/src/main/java/org/openmetadata/service/apps/bundles/searchIndex/distributed/PartitionWorker.java | Changes how reader failures derive entityId and adds a skip path when an id can’t be determined. |
Code Review ✅ Approved 1 resolved / 1 findingsGraceful logging implemented for null entity IDs, resolving the panic caused by emitting messages on closed channels. No further issues found. ✅ 1 resolved✅ Bug: emit() called on closed channel with null message
OptionsDisplay: compact → Showing less information. Comment with these commands to change:
Was this helpful? React with 👍 / 👎 | Gitar |
|
🔴 Playwright Results — 1 failure(s), 26 flaky✅ 3658 passed · ❌ 1 failed · 🟡 26 flaky · ⏭️ 89 skipped
Genuine Failures (failed on all attempts)❌
|



Describe your changes:
Fixes
I worked on ... because ...
Type of change:
Checklist:
Fixes <issue-number>: <short explanation>