[Review 2026-12-02 follow-up] Java CLI batch mode dials a new channel per line #260

Closed
opened 2026-12-03 11:17:36 -05:00 by dohertj2 · 1 comment
Owner

Split out of #257 (D10). The review notes it alongside CDN-011/CGO-008/CRS-004/CPY-005 (all fixed in 68043411), but the plan had no Java ID. Reuse needs ref-counting now that close() is shutdownNow() (CJV-001).

Split out of #257 (D10). The review notes it alongside CDN-011/CGO-008/CRS-004/CPY-005 (all fixed in `68043411`), but the plan had no Java ID. Reuse needs ref-counting now that `close()` is `shutdownNow()` (CJV-001).
dohertj2 added the area:client-javatype:followuptype:review-findingpriority:p3 labels 2026-12-03 11:17:36 -05:00
Author
Owner

Merged to main at f6b80d02 (pushed 2026-12-03). Gateway suite 1637 passed / 0 failed (macOS); windev worker CI 847 passed / 0 failed on that SHA.

Batch mode wraps the client factory in CachingClientFactory keyed on the connection settings; per-line handles don't close the shared client, the cache closes each real client once when batch ends. Test: 4 lines over 2 endpoints → 2 connects, 2 closes. galaxy-* commands still connect per command (separate factory).

Merged to `main` at `f6b80d02` (pushed 2026-12-03). Gateway suite 1637 passed / 0 failed (macOS); windev worker CI 847 passed / 0 failed on that SHA. Batch mode wraps the client factory in `CachingClientFactory` keyed on the connection settings; per-line handles don't close the shared client, the cache closes each real client once when batch ends. Test: 4 lines over 2 endpoints → 2 connects, 2 closes. `galaxy-*` commands still connect per command (separate factory).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: dohertj2/mxaccessgw#260