Repository navigation
NIFI-16333 - Bypass Secrets Manager cache when a connector starts - #11663
Conversation
exceptionfactory
left a comment
There was a problem hiding this comment.
Thanks for adjusting this behavior @pvillard31, this sounds reasonable for Connector starting. The general approach looks good, I noted a couple minor recommendations
| } | ||
|
|
||
| try (final NarCloseable ignored = NarCloseable.withComponentNarLoader(extensionManager, connectorDetails.getConnector().getClass(), getIdentifier())) { | ||
| activeFlowContext.getConfigurationContext().resolvePropertyValues(false); |
There was a problem hiding this comment.
Does this introduce a potential issue where we would call resolvePropertyValues(false); and then later call resolvePropertyValues(true) such that the latter call would resolve values using a stale cache, whereas this call used newer versions?
If so, would it make sense to just simply call invalidateCache() instead? Then there'd be no need to introduce a new override to resolvePropertyValues...
|
Thanks @markap14 - this is a good idea and I followed your recommendation, this makes it cleaner. Thanks for the review @exceptionfactory. |
markap14
left a comment
There was a problem hiding this comment.
Thanks @pvillard31 this looks simpler and more straight-forward. +1 from me. @exceptionfactory any other concerns or shall we merge (pending successful CI checks)?
b241ff4 to
f24cb79
Compare
|
rebased and fixed merge conflicts |
exceptionfactory
left a comment
There was a problem hiding this comment.
Thanks for pointing in a simpler direction @markap14, and thanks for making the adjustments @pvillard31, the latest version looks good.
Summary
NIFI-16333 - Bypass Secrets Manager cache when a connector starts
Tracking
Please complete the following tracking steps prior to pull request creation.
Issue Tracking
Pull Request Tracking
NIFI-00000NIFI-00000VerifiedstatusPull Request Formatting
mainbranchVerification
Please indicate the verification steps performed prior to pull request creation.
Build
./mvnw clean install -P contrib-checkLicensing
LICENSEandNOTICEfilesDocumentation