lifepuzzlefun commented on code in PR #20415:
URL: https://github.com/apache/pulsar/pull/20415#discussion_r1208118062


##########
pulsar-broker/src/main/java/org/apache/pulsar/broker/service/AbstractTopic.java:
##########
@@ -697,6 +697,31 @@ public CompletableFuture<Void> 
checkSchemaCompatibleForConsumer(SchemaData schem
                 .checkConsumerCompatibility(id, schema, 
getSchemaCompatibilityStrategy());
     }
 
+    protected CompletableFuture<Void> tryCompleteTheLostSchema(SchemaVersion 
schemaVersion, SchemaData schema) {
+        String id = getSchemaId();
+        return brokerService.pulsar()
+                .getSchemaRegistryService()
+                .tryCompleteTheLostSchema(id, schemaVersion, schema);
+    }
+
+    @Override
+    public CompletableFuture<Long> findSchemaVersion(SchemaData schema) {
+        String id = getSchemaId();
+        return brokerService.pulsar()
+                .getSchemaRegistryService()
+                .findSchemaVersion(id, schema);
+    }
+
+    protected CompletableFuture<SchemaVersion> getLatestSchemaVersion() {
+        return brokerService.pulsar()
+                .getSchemaRegistryService()
+                .getLatestSchemaVersion(getSchemaId())
+                .thenApply(schemaVersion -> {
+                    log.warn("~~~~~~~~~~~~~~~~~~~~~~" + schemaVersion);

Review Comment:
   need remove this debug log



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to