You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
revalidation of OpenFeign config clients does not work all the time #1804
I have a class without @Configuration, but with a @Bean method
validation shows that there is @Configuration missing (correct)
quick fix show two options (add config in file or project) (correct)
Now I add @LoadBalancerClient annotation to another class without referencing the config class above.
the class without the @Configuration is not re-validated - since there is no relationship between those two classes yet
When I manually trigger a re-validation, the additional quick fix appears (to add the class to the @LoadBalanderClient annotation)
Fixing this specific case would be quite difficult at the moment, since we don't know which other classes to mark for re-validation just because of the (new) existence of the @LoadBalancerClient annotation. In the end, we don't even know that this annotation is the piece that got added or changed in that class.
the dependencies in the DependencyTracker is updated right at the end of the scanAST method
this happens before scanAffectedFiles happens
This means that when I change the code of a file with a dependency and I change the code in a way that removes the dependency, the dependency tracker is immediately updated for this file to have no dependencies anymore. Then, scanAffectedFiles doesn't find those dependencies anymore.
Another aspect to this is:
Calls to calculate documentSymbols also calls scanAST, which then also updates the dependency tracker, even though there is no reconciling happening and no cache update going on. We need to evaluate whether the dependency tracker update should only happen in conjunction with a reconcile. But this connection between reconcile and the dependency update also sounds a bit strange to me. Looks like we need to look deeper into the dependency tracking, indexing, and document symbol creation to arrive at a cleaner design here.
Activity
martinlippert commentedon Feb 27, 2026
One thing that I observed and can be reproduced:
@Configuration, but with a@Beanmethod@Configurationmissing (correct)Now I add
@LoadBalancerClientannotation to another class without referencing the config class above.@Configurationis not re-validated - since there is no relationship between those two classes yetWhen I manually trigger a re-validation, the additional quick fix appears (to add the class to the
@LoadBalanderClientannotation)martinlippert commentedon Feb 27, 2026
Fixing this specific case would be quite difficult at the moment, since we don't know which other classes to mark for re-validation just because of the (new) existence of the
@LoadBalancerClientannotation. In the end, we don't even know that this annotation is the piece that got added or changed in that class.martinlippert commentedon Mar 4, 2026
One thing I found is:
scanASTmethodscanAffectedFileshappensThis means that when I change the code of a file with a dependency and I change the code in a way that removes the dependency, the dependency tracker is immediately updated for this file to have no dependencies anymore. Then,
scanAffectedFilesdoesn't find those dependencies anymore.Another aspect to this is:
Calls to calculate
documentSymbolsalso callsscanAST, which then also updates the dependency tracker, even though there is no reconciling happening and no cache update going on. We need to evaluate whether the dependency tracker update should only happen in conjunction with a reconcile. But this connection between reconcile and the dependency update also sounds a bit strange to me. Looks like we need to look deeper into the dependency tracking, indexing, and document symbol creation to arrive at a cleaner design here.GH-1804: add cleanup to dependency tracker
GH-1804: do not override dependency tracking when computing symbols a…
GH-1804: restore dependency tracker state from all sources (index + d…
GH-1804: polish the API of the dependency tracker to avoid outside mo…
GH-1804: refactor the dependency map to use specific abstractions ins…