This is an automated email from the ASF dual-hosted git repository.

gosonzhang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/inlong.git


The following commit(s) were added to refs/heads/master by this push:
     new e3486d3351 [INLONG-8741][DataProxy] Wrong constant reference in 
CommonConfigHolder class (#8742)
e3486d3351 is described below

commit e3486d3351b99ed68504a9b6669c40b6db11eeae
Author: Goson Zhang <[email protected]>
AuthorDate: Wed Aug 16 18:43:14 2023 +0800

    [INLONG-8741][DataProxy] Wrong constant reference in CommonConfigHolder 
class (#8742)
---
 .../java/org/apache/inlong/dataproxy/config/CommonConfigHolder.java   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/inlong-dataproxy/dataproxy-source/src/main/java/org/apache/inlong/dataproxy/config/CommonConfigHolder.java
 
b/inlong-dataproxy/dataproxy-source/src/main/java/org/apache/inlong/dataproxy/config/CommonConfigHolder.java
index be8abdc80b..d17bb70a08 100644
--- 
a/inlong-dataproxy/dataproxy-source/src/main/java/org/apache/inlong/dataproxy/config/CommonConfigHolder.java
+++ 
b/inlong-dataproxy/dataproxy-source/src/main/java/org/apache/inlong/dataproxy/config/CommonConfigHolder.java
@@ -463,7 +463,7 @@ public class CommonConfigHolder {
         tmpValue = this.props.get(KEY_FILE_METRIC_STAT_INTERVAL_SEC);
         if (StringUtils.isNotEmpty(tmpValue)) {
             int statInvl = NumberUtils.toInt(tmpValue.trim(), 
VAL_DEF_FILE_METRIC_STAT_INVL_SEC);
-            if (statInvl >= VAL_MIN_FILE_METRIC_MAX_CACHE_CNT) {
+            if (statInvl >= VAL_MIN_FILE_METRIC_STAT_INVL_SEC) {
                 this.fileMetricStatInvlSec = statInvl;
             }
         }
@@ -471,7 +471,7 @@ public class CommonConfigHolder {
         tmpValue = this.props.get(KEY_FILE_METRIC_MAX_CACHE_CNT);
         if (StringUtils.isNotEmpty(tmpValue)) {
             int maxCacheCnt = NumberUtils.toInt(tmpValue.trim(), 
VAL_DEF_FILE_METRIC_MAX_CACHE_CNT);
-            if (maxCacheCnt >= VAL_MIN_FILE_METRIC_STAT_INVL_SEC) {
+            if (maxCacheCnt >= VAL_MIN_FILE_METRIC_MAX_CACHE_CNT) {
                 this.fileMetricStatCacheCnt = maxCacheCnt;
             }
         }

Reply via email to