You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2021/12/16 07:44:35 UTC
[GitHub] [pulsar] Jason918 commented on a change in pull request #13297: Add schema compatibility strategy on topic level
Jason918 commented on a change in pull request #13297:
URL: https://github.com/apache/pulsar/pull/13297#discussion_r770284194
##########
File path: pulsar-client-admin-api/src/main/java/org/apache/pulsar/client/admin/Topics.java
##########
@@ -3693,4 +3694,47 @@ void setSubscriptionTypesEnabled(String topic,
* @return a map of replicated subscription status on a topic
*/
CompletableFuture<Map<String, Boolean>> getReplicatedSubscriptionStatusAsync(String topic, String subName);
+
+ /**
+ * Get the strategy used to check the a new schema provided by a producer is compatible with the current schema
+ * before it is installed.
+ *
+ * @param topic The topic in whose policy we are interested
+ * @return the strategy used to check compatibility
+ * @throws PulsarAdminException
+ * Unexpected error
+ */
+ SchemaCompatibilityStrategy getSchemaCompatibilityStrategy(String topic) throws PulsarAdminException;
Review comment:
We don't need add topic policies commands to `admin.topics()` any more, they are deprecated.
--
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