allthingssecurity commented on PR #30533:
URL: https://github.com/apache/camel/pull/30533#issuecomment-7059625062
Thanks, good catch on the recursive watch.
Upgrade case: I added a paragraph to the camel-consul entry of the 4.24
upgrade guide, marked as a breaking change (50f2f4adb0e8). It uses your `jobs`
example. It also says that the watch returns every key under the prefix on each
response, so the folder is deleted on the first message (at route start if the
folder has keys, with the default `firstIndex`) and again on each later one,
and that removing `key` from the producer keeps the old behaviour. I also added
the small test: a recursive watch of `camel/jobs` to
`consul:kv?key=camel/jobs&action=DELETE_KEYS` calls `deleteKeys("camel/jobs")`
and never `deleteKeys("camel/jobs/1")`. It fails on main and passes with the PR.
Nit: done in the same commit. The `key` description now says it is the key
(kv) or event name (event) that the consumer watches or the producer acts on,
and that a `CamelConsulKey` header overrides it unless the header still holds
the key a consul consumer received. I regenerated the component JSON, the
catalog JSON and the endpoint and component DSL with camel-package-maven-plugin.
Tests: the new test class 20 times in one JVM, 120 of 120; camel-consul
module tests 35 run, 0 failures. The PR description is updated.
_Claude Code on behalf of allthingssecurity_
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]