Skip to content

Commit

Permalink
fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Sourav Maji committed Dec 13, 2024
1 parent a4382cb commit 1c43323
Showing 1 changed file with 13 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1453,18 +1453,20 @@ private void processIngestionException() {
partitionException);
// No need to reset again, clearing out the exception.
partitionIngestionExceptionList.set(exceptionPartition, null);
} else if (!partitionConsumptionState.isCompletionReported()) {
reportError(partitionException.getMessage(), exceptionPartition, partitionException);
} else {
LOGGER.error(
"Ignoring exception for replica: {} since it is already online. The replica will continue serving reads, but the data may be stale as it is not actively ingesting data. Please engage the Venice DEV team immediately.",
Utils.getReplicaId(kafkaVersionTopic, exceptionPartition),
partitionException);
}
// Unsubscribe the partition to avoid more damages.
if (partitionConsumptionStateMap.containsKey(exceptionPartition)) {
// This is not an unsubscribe action from Helix
unSubscribePartition(new PubSubTopicPartitionImpl(versionTopic, exceptionPartition), false);
if (!partitionConsumptionState.isCompletionReported()) {
reportError(partitionException.getMessage(), exceptionPartition, partitionException);
} else {
LOGGER.error(
"Ignoring exception for replica: {} since it is already online. The replica will continue serving reads, but the data may be stale as it is not actively ingesting data. Please engage the Venice DEV team immediately.",
Utils.getReplicaId(kafkaVersionTopic, exceptionPartition),
partitionException);
}
// Unsubscribe the partition to avoid more damages.
if (partitionConsumptionStateMap.containsKey(exceptionPartition)) {
// This is not an unsubscribe action from Helix
unSubscribePartition(new PubSubTopicPartitionImpl(versionTopic, exceptionPartition), false);
}
}
}
});
Expand Down

0 comments on commit 1c43323

Please sign in to comment.