jerrypeng commented on a change in pull request #1845: Functions schema 
integration
URL: https://github.com/apache/incubator-pulsar/pull/1845#discussion_r194921578
 
 

 ##########
 File path: 
pulsar-functions/instance/src/main/java/org/apache/pulsar/functions/source/PulsarSource.java
 ##########
 @@ -64,28 +66,32 @@ public void open(Map<String, Object> config) throws 
Exception {
         // Setup Serialization/Deserialization
         setupSerDe();
 
-        // Setup pulsar consumer
-        ConsumerBuilder<byte[]> consumerBuilder = 
this.pulsarClient.newConsumer()
+        inputConsumers = Maps.newHashMap();
+        for (Map.Entry<String, SerDe<T>> entry : topicToSerDeMap.entrySet()) {
+            ConsumerBuilder<T> consumerBuilder = 
this.pulsarClient.newConsumer(entry.getValue())
                 
.subscriptionName(this.pulsarSourceConfig.getSubscriptionName())
-                
.subscriptionType(this.pulsarSourceConfig.getSubscriptionType());
+                
.subscriptionType(this.pulsarSourceConfig.getSubscriptionType())
+                .ackTimeout(1, TimeUnit.MINUTES)
 
 Review comment:
   This shouldn't be here

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to