Alert Dispatched event is not written while the server name is blank
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 78/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- java
- Lĩnh vực
- backend, observability
Hướng nghiên cứu
Đọc Alert.java ở dòng 59 và AlertWorker.java khoảng dòng 212, nơi issue cho biết giá trị ngữ cảnh null khiến việc tạo sự kiện thất bại. Theo dõi cách ActionTask tạo sự kiện “Alert Dispatched” và kiểm tra các bài kiểm thử liên quan có bao quát các cảnh báo chưa đặt tên máy chủ hay không. Tái hiện trường hợp cài đặt mới, sau đó xác nhận sự kiện được ghi mà không phát sinh ngoại lệ khi tên máy chủ để trống và vẫn bao gồm serverName khi tên này được đặt.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
While the server name is blank (Settings, Server, Server Name, empty on a fresh install), alerts are sent but no "Alert Dispatched" event is written, and nothing is logged.
On 4.7.0, a fresh engine on Derby with nothing added:
- A channel whose JavaScript Writer destination throws (
throw new Error('boom');), and a second channel to receive an alert's Channel action. - An alert on any error of any channel, with a Channel action to the second channel.
- Send one message to the first channel. The destination errors and the alert's action delivers to the second channel. No "Alert Dispatched" event is written, and the log shows only the destination's own error.
- Set a Server Name and send another message. The action delivers again, and this time the event is written, with
serverNameamong its attributes.
Alert.createContext puts serverName into the alert's context (Alert.java:59), and it is null until a name is set. AlertWorker.ActionTask.call() sends the actions, then builds the event by calling entry.getValue().toString() on every context value (AlertWorker.java:212), which throws on the null. The task runs through actionExecutor.submit(...) and nothing reads the returned Future, so the exception is not logged. Skipping null values when building the event, or using String.valueOf, looks like the fix; not tested.
Co-authored with Claude Code.
- Ngôn ngữ chính
- Java
- Star
- 227
- Fork
- 81
- Merge trung bình
- 6 ngày 5 giờ
- Pull request đã merge (30 ngày)
- 26
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của OpenIntegrationEngine/engine
-
oieserver.sh doesn't work when JAVA_TOOL_OPTIONS is setCó thể đã có người làm @iacsha đã nhận 6 ngày trước. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
OpenIntegrationEngine/engine#523 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
OpenIntegrationEngine/engine#478 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
OpenIntegrationEngine/engine#355 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
OpenIntegrationEngine/engine#347 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Fix call-home in test runĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
OpenIntegrationEngine/engine#313 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của OpenIntegrationEngine/engine
Issue tương tự
-
account bug communication lecture
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
line/centraldogma#1397 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
cryptomator/hub#515 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
vert-x3/vertx-mail-client#268 ·
-
Startup can freeze while MigLayout's component wrapper runs its static initializer on the EDTĐang mởdesktop edt not responding
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 86/100