Arvind Kandpal created FLINK-41480:
--------------------------------------

             Summary: FailureEnricherUtils logs "[%s]" instead of the duplicate 
output key
                 Key: FLINK-41480
                 URL: https://issues.apache.org/jira/browse/FLINK-41480
             Project: Flink
          Issue Type: Bug
          Components: Runtime / Coordination
            Reporter: Arvind Kandpal


{{FailureEnricherUtils#filterInvalidEnrichers}} logs a warning when several 
enrichers register the same output key:

{code:java}
LOG.warn("Following enrichers have registered duplicate output key [%s] and 
will be ignored: {}.", <enricher class names>);
{code}

SLF4J only replaces {{{}}} placeholders, and the key is not passed as an 
argument. The log prints {{[%s]}} literally, so users cannot see which output 
key is duplicated.

*Fix:* use {{{}}} and pass {{entry.getKey()}} as the first argument.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to