Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

traffic_ctl: apply --error-level to config reload results

Đang mở
#13,832 0 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 2 ngày

@brbzull0 đang làm issue này rồi.

Từ ngày 13/10/2026.

  • #13842 của @brbzull0 — đang mở

Đánh giá

Issue này chưa được đánh giá.

Mô tả

#13032 adds traffic_ctl --error-level, which sets the exit status of a JSONRPC handler failure from the most severe data entry. A config reload outcome is not a JSONRPC error. It comes back inside a successful result, as a task state plus task logs, so the level does not apply to it.

Today:

  • config reload --monitor exits 2 when the task ends fail or timeout and 0 on success, whatever its log entries say. --error-level=warn cannot make a reload with warnings fail, and --error-level=fatal cannot relax a fail.
  • config status exits 0 for every task it prints, whatever its state.

Each log entry already carries its DiagsLevel (ConfigReloadResponse::LogEntry::level), so both commands could grade a finished reload by its most severe entry.

To decide:

  • the grade of a fail task that has no entry at or above the level, or no entries at all;
  • timeout, which has no severity of its own;
  • whether sub-task entries count, and the state-change entries (DL_Undefined);
  • config status --count N: one grade over every printed task, or the latest one only;
  • how config status --min-level (a display filter) and --error-level relate.

Raised in https://github.com/apache/trafficserver/pull/13032#pullrequestreview-5420904089.

Ngôn ngữ chính
C++
Star
2k
Fork
878
Merge trung bình
3 ngày 9 giờ
Pull request đã merge (30 ngày)
91

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của apache/trafficserver

Tất cả issue của apache/trafficserver

Issue tương tự

Thêm issue về C++

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.