Closed wdbaruni closed 1 day ago
The changes in this pull request involve enhancements to the GetDebugInfo
method in the ServerManager
struct within pkg/nats/server.go
, which now retrieves additional debugging information about subscriptions and JetStream configurations. Modifications to the NATSTransport
configuration in pkg/nats/transport/nats.go
include setting NoSigs
to true
, which alters the server's behavior regarding termination signals. Additionally, new entries were added to a custom dictionary file to recognize various relevant terms.
File Path | Change Summary |
---|---|
pkg/nats/server.go | Updated GetDebugInfo method to return additional JetStream information, modifying the return structure to include "JetStreamz" . |
pkg/nats/transport/nats.go | Modified NewNATSTransport to set NoSigs to true , disabling server termination on SIGINT/SIGTERM signals. |
.cspell/custom-dictionary.txt | Added new entries: Streamz , Nacked , Routez , Connz , Subsz to the custom dictionary. |
sequenceDiagram
participant Client
participant ServerManager
Client->>ServerManager: Request Debug Info
ServerManager->>ServerManager: Call Subsz with options
ServerManager->>ServerManager: Call Jsz with options
ServerManager->>Client: Return Debug Info (including JetStreamz)
🐰 "In the server's heart, new data flows,
With JetStream details, the knowledge grows.
No more SIGs to end the fun,
The NATS transport keeps on the run!
Debugging now is a joyful quest,
With insights deep, we’ll do our best!" 🐇
Fix panics when shutting down the orchestrator due to NATS server being shutdown twice, one by our application and another by sign handler that NATS server installs on its own. The fix here is by disabling NATS server sig handlers using
NoSigs: true
The PR also added additional NATS debug info to
/api/v1/agent/debug
APISummary by CodeRabbit
New Features
Bug Fixes
Documentation