Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,17 @@ public String getTopic() {
return _topic;
}

/**
* Gets the topic name without any decorations or modifications.
* This base implementation simply returns the topic name as is.
* Subclasses may override this method to provide custom topic name undecorating logic.
* @return The undecorated topic name
*/
public String getUndecoratedTopic() {
// It is kept for backward compatibility.
return _topic;
}

/**
* An index identifying the exact {@link com.linkedin.datastream.common.BrooklinEnvelope} event produced,
* from those obtainable through {@link com.linkedin.datastream.server.DatastreamProducerRecord#getEvents()}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ private void performSlaRelatedLogging(DatastreamRecordMetadata metadata, long ev
if (_numEventsOutsideAltSlaLogEnabled) {
try {
if (sourceToDestinationLatencyMs > _availabilityThresholdAlternateSlaMs) {
TopicPartition topicPartition = new TopicPartition(metadata.getTopic(), metadata.getSourcePartition());
TopicPartition topicPartition = new TopicPartition(metadata.getUndecoratedTopic(), metadata.getSourcePartition());
int numEvents = _trackEventsOutsideAltSlaMap.getOrDefault(topicPartition, 0);
_trackEventsOutsideAltSlaMap.put(topicPartition, numEvents + 1);
}
Expand Down Expand Up @@ -506,7 +506,8 @@ private void onSendCallback(DatastreamRecordMetadata metadata, Exception excepti
// Report metrics
checkpoint(metadata.getPartition(), metadata.getCheckpoint());
// Reporting separate metrics for throughput violating topics.
if (_throughputViolatingTopicsProvider.apply(_datastreamTask).contains(metadata.getTopic())) {

if (_throughputViolatingTopicsProvider.apply(_datastreamTask).contains(metadata.getUndecoratedTopic())) {
reportMetricsForThroughputViolatingTopics(metadata, eventSourceTimestamp, eventSendTimestamp);
} else {
reportMetrics(metadata, eventSourceTimestamp, eventSendTimestamp);
Expand Down
2 changes: 1 addition & 1 deletion gradle/maven.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
allprojects {
version = "5.5.5"
version = "5.5.6"
}

subprojects {
Expand Down