fleetd #513: fix TIMED_OUT_QUEUED javadoc — cancelled, not queued #564
Reference in New Issue
Block a user
Delete Branch "worker/513-timed-out-queued-javadoc-da3628-3"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #513.
Two javadoc blocks in MessageService.java (the queuedDeliveries field, and hasQueuedDelivery) said a timed-out message is still sitting in the injector's per-target queue. CB-640 made send() cancel it via Injector.cancel() 12 lines later, so the message is gone and will never arrive. Rewrote both blocks to say the message was cancelled, is not queued, and will not arrive later.
Also fixed a third occurrence of the same stale claim, split across a line wrap in hasOrphanedDelegation's javadoc, and added a clarifying line to the TIMED_OUT_QUEUED enum constant's own comment (it also said 'still queued for the worker').
Per the ticket's follow-up comment (newer than the original filing):
Build: mvn -f fleetd/pom.xml clean install — exit 0, BUILD SUCCESS, aggregate Tests run: 1744, Failures: 0, Errors: 0, Skipped: 0.
Acceptance checks run:
Reworked per ticket comment #16984 (route table for TIMED_OUT_QUEUED). New commit
cb64bc8rewrites all four comments plus the pre-existing inline comment that seeded the original wording, to say only what holds on every route (message will not arrive later, is not in any queue) and to stop claimingcancel()cancelled the entry or that the target saw nothing, except where that is actually the CANCELLED case. Build re-verified: mvn clean install exit 0, 1744 tests / 0 failures / 0 errors / 0 skipped (summed from fleetd/target/surefire-reports/*.txt, 130 files).