daml/ledger-service
Raphael Speyer bb3af2bcf2
JSON API: add new PrunedOffset error for websocket queries that attempt to use an offset that has been pruned (#17905)
This means that if a websocket query is initiated with an explicit offset, and the ledger returns an error reporting that the offset has been pruned, the websocket query will be terminated with an error containing a status of `410` (Gone) and a message indicating that the offset has been pruned.

The client will need to react to this by clearing any state that had been incrementally built based on updates, and refresh with current version of ledger state.

This is related to https://github.com/digital-asset/daml/issues/13788 and https://github.com/digital-asset/daml/issues/13680

As discussed there, the existing akka APIs do not support setting the websocket close code and reason. The approach taken here is to return a single message with a custom error and close the websocket.
2023-11-28 13:34:31 +11:00
..
cli-opts bump copyright (#16002) 2023-01-04 18:21:15 +01:00
db-backend JSON API: add PruningTest and make it pass (#17167) 2023-07-27 09:12:22 +10:00
fetch-contracts disentangle ledger api (#17831) 2023-11-14 22:44:10 +01:00
http-json JSON API: add new PrunedOffset error for websocket queries that attempt to use an offset that has been pruned (#17905) 2023-11-28 13:34:31 +11:00
http-json-cli Add config parameter for custom scopes in http-json (#17727) 2023-11-21 14:07:11 +01:00
http-json-ledger-client disentangle ledger api (#17831) 2023-11-14 22:44:10 +01:00
http-json-oracle disentangle ledger api (#17831) 2023-11-14 22:44:10 +01:00
http-json-perf Mark gatling dependencies as deprecated (#17820) 2023-11-15 18:22:54 +00:00
http-json-testing Add config parameter for custom scopes in http-json (#17727) 2023-11-21 14:07:11 +01:00
lf-value-json Scala upgrade to 2.13.11 (#17803) 2023-11-13 09:05:39 +01:00
metrics Switch from Akka to Pekko (#17814) 2023-11-13 23:22:22 +00:00
pureconfig-utils Switch from Akka to Pekko (#17814) 2023-11-13 23:22:22 +00:00
utils Switch from Akka to Pekko (#17814) 2023-11-13 23:22:22 +00:00