spring-cloud-consul icon indicating copy to clipboard operation
spring-cloud-consul copied to clipboard

Add consistency mode to KV client queries

Open cr-kobyisrael opened this issue 5 years ago • 1 comments

In this issue https://github.com/spring-cloud/spring-cloud-consul/issues/556 the consistency mode was added to service discovery client, but there are more client which support this, KV for example

It's important to be able to query keys in configured consistent manner (stale in many cases is better than having "Leader not found" error)

cr-kobyisrael avatar May 11 '21 08:05 cr-kobyisrael

I have submitted PR #1039 to address this issue.

The changes add configurable consistency modes (DEFAULT, STALE, and CONSISTENT) for Consul KV queries, including configuration reads and blocking watches. The implementation also preserves blocking-query parameters and includes tests and documentation updates.

The full config reactor tests pass (55 tests, 0 failures), and the query parameter resolver tests pass (4 tests, 0 failures).

yashdotdev13 avatar Oct 29 '26 06:10 yashdotdev13