Skip to content
Merged
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 @@ -529,18 +529,20 @@ private static void mergeCounters(String parentCounterName, List<RuntimeProfile>
for (String childCounterName : childCounterSet) {
Counter counter = templateProfile.counterMap.get(childCounterName);
if (counter == null) {
throw new RuntimeException("Child counter " + childCounterName + " of " + parentCounterName
+ " not found in profile");
if (LOG.isDebugEnabled()) {
LOG.debug("Child counter {} of {} not found in profile {}", childCounterName, parentCounterName,
templateProfile.toString());
}
continue;
}
if (counter.getLevel() == 1) {
Counter oldCounter = templateCounterMap.get(childCounterName);
AggCounter aggCounter = new AggCounter(oldCounter.getType());
for (RuntimeProfile profile : profiles) {
// orgCounter could be null if counter structure is changed
// change of counter structure happens when NonZeroCounter is involved.
// So here we have to ignore the counter if it is not found in the profile.
Counter orgCounter = profile.counterMap.get(childCounterName);
if (orgCounter == null) {
throw new RuntimeException("Child counter " + childCounterName
+ " of " + parentCounterName + " not found in profile");
}
aggCounter.addCounter(orgCounter);
}
if (nereidsId != null && childCounterName.equals("RowsProduced")) {
Expand Down