-
Notifications
You must be signed in to change notification settings - Fork 414
Regression in 3.1.4
: customizations to the CuratorFramework
instance are now silently ignored
#324
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
It was part of spring-cloud/spring-cloud-commons#1228 and spring-cloud/spring-cloud-config#1922 @ryanjbaxter any ideas? |
Can you provide an sample illustrating the problem? I see the problem you are describing, but I would like to have something concrete to work with that I can test a solution against. |
I don't have anything handy that I could share, it's proprietary code that got broken by the change. If necessary, I can of course put some minimal reproduction together, but it's going to take some time and it won't look like it makes sense (I'd just be injecting some meaningless subclasses of |
Yeah it doesnt have to do anything useful, just show that it was used in 3.1.3, but is no longer used in 3.1.4 (it could just print something to the console to show that) |
@ryanjbaxter It wasn't too straightforward, but I managed to build a reproduction project: How to use:
Using
I injected a custom implementation of everything into the bootstrap context that I know were picked up until
|
Thanks @pantherdd for taking the time to make the reproducer! |
Agree it was super helpful! |
And thanks to you both for the quick fix. :) However I'm a bit confused with regards to versions. The changes were merged today, and the target milestone is set as
Can you clarify? Thanks 🙇♂️ |
That was my mistake it should have been 4.0.5 |
Ah, I see. Is there a plan to backport this to |
The 3.1.x branch is no longer under open source support. We did the final release yesterday (even though it was no longer supported) because we had enough fixes in various projects across the 2021.0.x release train to warrant doing a release for a number of projects. At this point it is recommended that you begin to upgrade to 2022.0.x or 2023.0.x. |
Understood, and that is of course in our plans. Given the above, the only alternatives I see right now for projects that are affected by this bug and that still use the |
Correct. And of course we could consider a release if there was a huge demand for a fix, but as of right now there is not |
@ryanjbaxter, I just noticed that when
|
@pantherdd I agree. The problem is we cannot use |
Describe the bug
spring-cloud-zookeeper
release3.1.4
introduced a regression. There were ways to customize theCuratorFramework
instance that got used, e.g. by injecting aCuratorFrameworkCustomizer
via aregistry.registerIfAbsent
call in a customBootstrapRegistryInitializer
that runs beforeZookeeperConfigServerBootstrapper
. Such customizations worked flawlessly until version3.1.3
, but in3.1.4
they are now silently ignored.It doesn't look like there is an easy way to apply such customizations in the new version, other than copying the old
registry.registerIfAbsent(ConfigServerInstanceProvider.Function.class, ...)
code from the PR and overriding the newZookeeperFunction::create
implementation with it.This change should be reverted; even if it makes sense to do this, it most definitely doesn't belong in a patch release.
Thanks.
The text was updated successfully, but these errors were encountered: