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 2019/03/28 06:47:17 UTC

[GitHub] [pulsar] congbobo184 commented on a change in pull request #3876: Add the multi version schema support

congbobo184 commented on a change in pull request #3876: Add the multi version schema support
URL: https://github.com/apache/pulsar/pull/3876#discussion_r269873516
 
 

 ##########
 File path: pulsar-client/src/main/java/org/apache/pulsar/client/impl/PulsarClientImpl.java
 ##########
 @@ -83,6 +83,7 @@
     private final ConnectionPool cnxPool;
     private final Timer timer;
     private final ExecutorProvider externalExecutorProvider;
+    private Map<String, Schema> supportSchemaVersioningSchemaCache = new HashMap<>();
 
 Review comment:
   I think the topic is the first key, the true avro schema is second key. like this 
   
   private Map<String, ConcurrentHashMap<org.apache.avro.Schema,Schema>> supportSchemaVersioningSchemaCache = new HashMap<>();
   Because schema by version will create a lot of same reader and writer

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services