diff --git a/clients/da-vinci-client/src/main/java/com/linkedin/davinci/kafka/consumer/KafkaConsumerService.java b/clients/da-vinci-client/src/main/java/com/linkedin/davinci/kafka/consumer/KafkaConsumerService.java index 3b577442a3..7996b27107 100644 --- a/clients/da-vinci-client/src/main/java/com/linkedin/davinci/kafka/consumer/KafkaConsumerService.java +++ b/clients/da-vinci-client/src/main/java/com/linkedin/davinci/kafka/consumer/KafkaConsumerService.java @@ -262,7 +262,7 @@ public void unSubscribe(PubSubTopic versionTopic, PubSubTopicPartition pubSubTop * setting data receiver and unsubscribing concurrently for the same topic partition on a shared consumer. */ try (AutoCloseableLock ignored = AutoCloseableLock.of(consumerToLocks.get(consumer))) { - consumer.unSubscribe(pubSubTopicPartition); + consumer.unSubscribe(pubSubTopicPartition, timeoutMs); removeTopicPartitionFromConsumptionTask(consumer, pubSubTopicPartition); } versionTopicToTopicPartitionToConsumer.compute(versionTopic, (k, topicPartitionToConsumerMap) -> {