Support dlog bookie client configuration via pass through config #15763
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation
Enable pass through configuration support for the bookkeeper clients created by
DistributedLogandBookKeeperPackagesStorage. This support is already present for the managed ledger bookkeeper client, which takes allbookkeeper_prefixed configs. In order to simplify configuration, I reused thebookkeeper_prefix since it's reasonable to assume that these configs will be the same.Modifications
PulsarConfigurationUtilsclass to reduce code duplication for mapping prefixed config classes into other config classes. This class is not available in thepulsar-package-managementmodule, so the code is copied. I don't think we should expose this code in the client jars.BookKeeperPackagesStorageConfigurationto expose the underlyingpropertiesobject.broker.confand thefunctions_worker.ymlfiles.Verifying this change
I added tests to ensure that the new methods work as expected.
Does this pull request potentially affect one of the following parts:
This is a backwards compatible change. The only nuance is that the package management dlog bookie client will inherit the same configs that the broker already uses for the bookie client. I think this is preferable.