EMsnap commented on code in PR #10442:
URL: https://github.com/apache/inlong/pull/10442#discussion_r1644390502


##########
inlong-dataproxy/dataproxy-source/src/main/java/org/apache/inlong/dataproxy/config/CommonConfigHolder.java:
##########
@@ -668,6 +680,15 @@ private void preReadAuditSetting() {
                 this.auditProxys.add(tmpIPPort.trim());
             }
         }
+        // check auditProxys configure
+        if (this.enableAudit) {
+            if (!this.enableAuditProxysDiscoveryFromManager && 
this.auditProxys.isEmpty()) {
+                LOG.error("{}'s {} must be configured when {} is true and {} 
is false, exist!",
+                        COMMON_CONFIG_FILE_NAME, KEY_AUDIT_PROXYS, 
KEY_ENABLE_AUDIT,
+                        KEY_AUDIT_PROXYS_DISCOVERY_MANAGER_ENABLE);
+                System.exit(2);

Review Comment:
   why use System.exit not throw a runtime exception ? 



-- 
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