-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes related to JetStream errors being prematurely processed by the …
…core request layer (#288) - [FIX] the base client request introspected a message, and if a status code was set, it turned that into an error. The logic for this was not entirely correct one requirement is for the message payload of this type of error to be empty and NATS core currently can only expect an error of 503 (no responders). Any interpretation of the status code unless a 503, should be delegated - in this case to JetStream which can then make a better interpretation of the code (which could simply be a marker for no messages or a request timeout on requests that have an expiration. - [CHANGE] `js.pull(stream,dur)` now also adds an optional `expires` argument - the expires also overrides the request timeout default if the expires is longer. - [CHANGE] [DEPRECATION] 409's take the description sent by the server - added a `ErrorCodeJetStream409` enum, and deprecated `ErrorCode.JetStream409MaxAckPendingExceeded` - [UPDATE] ci nats-server version to 2.8.2 FIX #273
- Loading branch information
Showing
7 changed files
with
136 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters