atiaomar1978-hub commented on code in PR #25846:
URL: https://github.com/apache/camel/pull/25846#discussion_r3890334948


##########
components/camel-exec/src/main/java/org/apache/camel/component/exec/impl/DefaultExecBinding.java:
##########
@@ -45,12 +47,26 @@ public class DefaultExecBinding implements ExecBinding {
 
     private static final Logger LOG = 
LoggerFactory.getLogger(DefaultExecBinding.class);
 
+    private static final String[] CONTROL_HEADERS = {
+            EXEC_COMMAND_EXECUTABLE,
+            EXEC_COMMAND_ARGS,
+            EXEC_COMMAND_OUT_FILE,
+            EXEC_COMMAND_WORKING_DIR,
+            EXEC_COMMAND_TIMEOUT,
+            EXEC_COMMAND_EXIT_VALUES,
+            EXEC_USE_STDERR_ON_EMPTY_STDOUT,
+            EXEC_COMMAND_LOG_LEVEL
+    };
+
+    private final AtomicBoolean ignoredControlHeadersWarned = new 
AtomicBoolean();

Review Comment:
   Fixed in 7735c3b — `ignoredControlHeadersWarnedEndpoints` now tracks 
endpoint URIs in a `ConcurrentHashMap.newKeySet()`, so each exec endpoint warns 
once even when endpoints share the component's single `DefaultExecBinding`. 
Added `shouldWarnOncePerEndpointWhenControlHeadersIgnored` to verify two 
endpoints sharing the binding each emit one WARN.
   
   _AI-generated on behalf of atiaomar1978-hub_



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to