Details
-
Type:
Bug
-
Status: Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.21.0
-
Component/s: camel-consul
-
Labels:None
-
Estimated Complexity:Novice
Description
Camel-Consul library expects EventClient to block requests and passes number of seconds to block request to EventClient.
However Event HTTP Endpoint does not support Blocking Queries and EventClient ignores passed queryOptions.
This results in high CPU usage because ConsulEventConsumer constantly makes requests to Consul without any delay or blocking.
Maybe some Thread.sleep could be added to EventWatcher.watch(EventClient client) before client.listEvents call or any other fix to introduce delay between listEvents requests.