Skip to content

Commit

Permalink
[server][da-vinci-client] Return proper error code from getTopicParti…
Browse files Browse the repository at this point in the history
…tionEndOffSet
  • Loading branch information
Sourav Maji committed Feb 25, 2025
1 parent 6085419 commit c720b47
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2409,12 +2409,9 @@ protected long getTopicPartitionEndOffSet(String kafkaUrl, PubSubTopic pubSubTop
Duration.ofMillis(500),
Duration.ofSeconds(5),
Arrays.asList(PubSubTopicDoesNotExistException.class, PubSubOpTimeoutException.class, VeniceException.class));
} catch (PubSubTopicDoesNotExistException | PubSubOpTimeoutException e) {
} catch (Exception e) {
LOGGER.error("Failed to get end offset for topic-partition: {} even after 10 retries", topicPartition, e);
return StatsErrorCode.LAG_MEASUREMENT_FAILURE.code;
} catch (Exception e) {
LOGGER.error("Could not find latest offset for {} even after 10 retries", pubSubTopic.getName());
return -1;
}
}

Expand Down

0 comments on commit c720b47

Please sign in to comment.