You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the KafkaConnectApiImpl we seem to use equals() to compare String with Map<String, String>. That seems suspicious. We should investigate if that is correct and fix it if needed. The issue seems to be in this code segment (right now on lines 408-421):
OrderedPropertiesops = newOrderedProperties();
ops.addStringPairs(desiredLogging);
ops.asMap().entrySet().forEach(entry -> {
// set desired loggers to desired levelsif (entry.getKey().equals("log4j.rootLogger")) {
if (!entry.getValue().equals(fetchedLoggers.get("root"))) {
updateLoggers.put("root", entry.getValue());
}
} elseif (entry.getKey().startsWith("log4j.logger.")) {
if (!entry.getValue().equals(fetchedLoggers.get(entry.getKey().substring("log4j.logger.".length())))) {
updateLoggers.put(entry.getKey().substring("log4j.logger.".length()), entry.getValue());
}
}
});
The text was updated successfully, but these errors were encountered:
In the
KafkaConnectApiImpl
we seem to useequals()
to compareString
withMap<String, String>
. That seems suspicious. We should investigate if that is correct and fix it if needed. The issue seems to be in this code segment (right now on lines 408-421):The text was updated successfully, but these errors were encountered: