You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by "zymap (via GitHub)" <gi...@apache.org> on 2023/07/17 07:18:47 UTC
[GitHub] [pulsar] zymap commented on a diff in pull request #20804: [improve][offload] Extend the offload policies to allow specifying more conf
zymap commented on code in PR #20804:
URL: https://github.com/apache/pulsar/pull/20804#discussion_r1264965369
##########
pulsar-common/src/main/java/org/apache/pulsar/common/policies/data/OffloadPoliciesImpl.java:
##########
@@ -257,6 +261,14 @@ public static OffloadPoliciesImpl create(Properties properties) {
}
}
});
+ Map<String, String> extraConfigurations = properties.entrySet().stream()
+ .filter(entry -> entry.getKey().toString().startsWith("managedLedgerOffloadExtraConfig"))
Review Comment:
Since the prefix is not exposed for others to use and there have others also using string https://github.com/apache/pulsar/blob/4c69584a888f1365cd1bd78e0dbd74d10a0aa413/pulsar-common/src/main/java/org/apache/pulsar/common/policies/data/OffloadPoliciesImpl.java#L337. I can improve them all in another PR.
The document will be auto-generated with the admin cli, like other policies: https://pulsar.apache.org/reference/#/3.0.x/pulsar-admin/namespaces?id=set-offload-policies.
We don't need to add it to other places. Do you know if any places need to add this as well?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org