Skip to content

Commit

Permalink
Increase timeout for kafka client connection for metadata fetch (#14638)
Browse files Browse the repository at this point in the history
  • Loading branch information
tibrewalpratik17 authored Dec 16, 2024
1 parent 4c824aa commit 4b26bf6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1762,7 +1762,7 @@ private void setPartitionParameters(RealtimeSegmentConfig.Builder realtimeSegmen
// a single partition
// Fix this before opening support for partitioning in Kinesis
int numPartitionGroups = _partitionMetadataProvider.computePartitionGroupMetadata(_clientId, _streamConfig,
Collections.emptyList(), /*maxWaitTimeMs=*/5000).size();
Collections.emptyList(), /*maxWaitTimeMs=*/15000).size();

if (numPartitionGroups != numPartitions) {
_segmentLogger.info(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public Boolean call()
try (
StreamMetadataProvider streamMetadataProvider = _streamConsumerFactory.createStreamMetadataProvider(clientId)) {
_newPartitionGroupMetadataList = streamMetadataProvider.computePartitionGroupMetadata(clientId, _streamConfig,
_partitionGroupConsumptionStatusList, /*maxWaitTimeMs=*/5000);
_partitionGroupConsumptionStatusList, /*maxWaitTimeMs=*/15000);
if (_exception != null) {
// We had at least one failure, but succeeded now. Log an info
LOGGER.info("Successfully retrieved PartitionGroupMetadata for topic {}", _topicName);
Expand Down

0 comments on commit 4b26bf6

Please sign in to comment.