curator icon indicating copy to clipboard operation
curator copied to clipboard

CURATOR-727: Allow watches to be executed asynchronously

Open HoustonPutman opened this issue 1 year ago • 3 comments

https://issues.apache.org/jira/browse/CURATOR-727

This gives users the ability to run all watches asynchronously, via a provided executorService.

HoustonPutman avatar Dec 16 '24 17:12 HoustonPutman

cc @eolivelli @kezhuw @Randgalt @cammckenzie

Not quite sure if such a change would break sequential assumption.

tisonkun avatar Jan 25 '25 03:01 tisonkun

Hi @HoustonPutman!

We just released Curator 5.8.0 and it causes several code conflict. To move this PR forward, I'd suggest you rebase this patch or open a new one, referring to https://github.com/apache/curator/issues/1242.

And the key blocker here is to analyze and describe how running watches in a dedicated executor service won't break current sequential implementation. That is, do we depend on the sequential assumption? Or describing the current execution order to ensure that we won't break any assumption.

tisonkun avatar Mar 07 '25 03:03 tisonkun

Thanks for the update @tisonkun. Yeah, there is a lot to think about there, and probably will require a more intelligent feature.

This isn't a blocker for us, so we can move forward as-is with this release in Solr. But as we transfer leader election and other big features to recipes, we can come back and rethink how to approach the watch executor.

HoustonPutman avatar Mar 13 '25 18:03 HoustonPutman