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

dlmarion pushed a commit to branch 2.1
in repository https://gitbox.apache.org/repos/asf/accumulo.git


The following commit(s) were added to refs/heads/2.1 by this push:
     new 4a62e8161b Replace status logger property with system property (#5589)
4a62e8161b is described below

commit 4a62e8161b412357422f17b3f373343e4bf1a3c9
Author: Dave Marion <dlmar...@apache.org>
AuthorDate: Thu May 29 12:38:46 2025 -0400

    Replace status logger property with system property (#5589)
    
    The log4j2 status property was deprecated from the
    properties file in log4j2 version 2.24.0 and
    replaced by a System property. This change removes
    property from all log4j2 properties files and adds
    the system property with default value to accumulo-env.sh
    
    Closes #5482
---
 assemble/conf/accumulo-env.sh                                           | 1 +
 assemble/conf/log4j2-service.properties                                 | 1 -
 assemble/conf/log4j2.properties                                         | 1 -
 core/src/test/resources/log4j2-test.properties                          | 1 -
 hadoop-mapreduce/src/test/resources/log4j2-test.properties              | 1 -
 iterator-test-harness/src/test/resources/log4j2-test.properties         | 1 -
 minicluster/src/test/resources/log4j2-test.properties                   | 1 -
 server/base/src/test/resources/log4j2-test.properties                   | 1 -
 server/compaction-coordinator/src/test/resources/log4j2-test.properties | 1 -
 server/compactor/src/test/resources/log4j2-test.properties              | 1 -
 server/gc/src/test/resources/log4j2-test.properties                     | 1 -
 server/manager/src/test/resources/log4j2-test.properties                | 1 -
 server/monitor/src/test/resources/log4j2-test.properties                | 1 -
 server/tserver/src/test/resources/log4j2-test.properties                | 1 -
 shell/src/test/resources/log4j2-test.properties                         | 1 -
 start/src/test/resources/log4j2-test.properties                         | 1 -
 test/src/main/resources/log4j2-test.properties                          | 1 -
 17 files changed, 1 insertion(+), 16 deletions(-)

diff --git a/assemble/conf/accumulo-env.sh b/assemble/conf/accumulo-env.sh
index dc1799c7fc..6a515ab276 100644
--- a/assemble/conf/accumulo-env.sh
+++ b/assemble/conf/accumulo-env.sh
@@ -114,6 +114,7 @@ esac
 JAVA_OPTS=("-Daccumulo.log.dir=${ACCUMULO_LOG_DIR}"
   "-Daccumulo.application=${ACCUMULO_SERVICE_INSTANCE}_$(hostname)"
   "-Daccumulo.metrics.service.instance=${ACCUMULO_SERVICE_INSTANCE}"
+  "-Dlog4j2.statusLoggerLevel=ERROR"
   
"-Dlog4j2.contextSelector=org.apache.logging.log4j.core.async.AsyncLoggerContextSelector"
   "-Dotel.service.name=${ACCUMULO_SERVICE_INSTANCE}"
   "${JAVA_OPTS[@]}"
diff --git a/assemble/conf/log4j2-service.properties 
b/assemble/conf/log4j2-service.properties
index 15dca8872a..a661d84fc1 100644
--- a/assemble/conf/log4j2-service.properties
+++ b/assemble/conf/log4j2-service.properties
@@ -20,7 +20,6 @@
 ## Log4j2 file that configures logging for all Accumulo services
 ## The system properties referenced below are configured by accumulo-env.sh
 
-status = warn
 dest = err
 name = AccumuloServiceLoggingProperties
 monitorInterval = 30
diff --git a/assemble/conf/log4j2.properties b/assemble/conf/log4j2.properties
index d5ea4f7eea..6aafb03645 100644
--- a/assemble/conf/log4j2.properties
+++ b/assemble/conf/log4j2.properties
@@ -19,7 +19,6 @@
 
 ## Log4j2 file that configures logging for processes other than Accumulo 
services
 
-status = warn
 dest = err
 name = AccumuloDefaultLoggingProperties
 monitorInterval = 30
diff --git a/core/src/test/resources/log4j2-test.properties 
b/core/src/test/resources/log4j2-test.properties
index 4c12c1738c..46192dd2a0 100644
--- a/core/src/test/resources/log4j2-test.properties
+++ b/core/src/test/resources/log4j2-test.properties
@@ -17,7 +17,6 @@
 # under the License.
 #
 
-status = warn
 dest = err
 name = AccumuloCoreTestLoggingProperties
 
diff --git a/hadoop-mapreduce/src/test/resources/log4j2-test.properties 
b/hadoop-mapreduce/src/test/resources/log4j2-test.properties
index e37cdcbd06..29deee2124 100644
--- a/hadoop-mapreduce/src/test/resources/log4j2-test.properties
+++ b/hadoop-mapreduce/src/test/resources/log4j2-test.properties
@@ -17,7 +17,6 @@
 # under the License.
 #
 
-status = warn
 dest = err
 name = AccumuloHadoopMapReduceTestLoggingProperties
 
diff --git a/iterator-test-harness/src/test/resources/log4j2-test.properties 
b/iterator-test-harness/src/test/resources/log4j2-test.properties
index 2e0f4e6c05..5bc25f94d4 100644
--- a/iterator-test-harness/src/test/resources/log4j2-test.properties
+++ b/iterator-test-harness/src/test/resources/log4j2-test.properties
@@ -17,7 +17,6 @@
 # under the License.
 #
 
-status = warn
 dest = err
 name = AccumuloIteratorTestHarnessTestLoggingProperties
 
diff --git a/minicluster/src/test/resources/log4j2-test.properties 
b/minicluster/src/test/resources/log4j2-test.properties
index 9479de6cb5..125d2d7c1f 100644
--- a/minicluster/src/test/resources/log4j2-test.properties
+++ b/minicluster/src/test/resources/log4j2-test.properties
@@ -17,7 +17,6 @@
 # under the License.
 #
 
-status = warn
 dest = err
 name = AccumuloMiniclusterTestLoggingProperties
 
diff --git a/server/base/src/test/resources/log4j2-test.properties 
b/server/base/src/test/resources/log4j2-test.properties
index 5b10693eeb..3108652386 100644
--- a/server/base/src/test/resources/log4j2-test.properties
+++ b/server/base/src/test/resources/log4j2-test.properties
@@ -17,7 +17,6 @@
 # under the License.
 #
 
-status = warn
 dest = err
 name = AccumuloServerBaseTestLoggingProperties
 
diff --git 
a/server/compaction-coordinator/src/test/resources/log4j2-test.properties 
b/server/compaction-coordinator/src/test/resources/log4j2-test.properties
index ed4655ddae..b224053223 100644
--- a/server/compaction-coordinator/src/test/resources/log4j2-test.properties
+++ b/server/compaction-coordinator/src/test/resources/log4j2-test.properties
@@ -17,7 +17,6 @@
 # under the License.
 #
 
-status = info
 dest = err
 name = AccumuloCoreTestLoggingProperties
 
diff --git a/server/compactor/src/test/resources/log4j2-test.properties 
b/server/compactor/src/test/resources/log4j2-test.properties
index f3095a1452..fc0ce5ede0 100644
--- a/server/compactor/src/test/resources/log4j2-test.properties
+++ b/server/compactor/src/test/resources/log4j2-test.properties
@@ -17,7 +17,6 @@
 # under the License.
 #
 
-status = info
 dest = err
 name = AccumuloCoreTestLoggingProperties
 
diff --git a/server/gc/src/test/resources/log4j2-test.properties 
b/server/gc/src/test/resources/log4j2-test.properties
index 8e2cd8bc5e..06203a2c96 100644
--- a/server/gc/src/test/resources/log4j2-test.properties
+++ b/server/gc/src/test/resources/log4j2-test.properties
@@ -17,7 +17,6 @@
 # under the License.
 #
 
-status = warn
 dest = err
 name = AccumuloGcTestLoggingProperties
 
diff --git a/server/manager/src/test/resources/log4j2-test.properties 
b/server/manager/src/test/resources/log4j2-test.properties
index a7651859e9..29c6d66a28 100644
--- a/server/manager/src/test/resources/log4j2-test.properties
+++ b/server/manager/src/test/resources/log4j2-test.properties
@@ -17,7 +17,6 @@
 # under the License.
 #
 
-status = warn
 dest = err
 name = AccumuloManagerTestLoggingProperties
 
diff --git a/server/monitor/src/test/resources/log4j2-test.properties 
b/server/monitor/src/test/resources/log4j2-test.properties
index b5eeabac9f..9901a56a0d 100644
--- a/server/monitor/src/test/resources/log4j2-test.properties
+++ b/server/monitor/src/test/resources/log4j2-test.properties
@@ -17,7 +17,6 @@
 # under the License.
 #
 
-status = warn
 dest = err
 name = AccumuloMonitorTestLoggingProperties
 
diff --git a/server/tserver/src/test/resources/log4j2-test.properties 
b/server/tserver/src/test/resources/log4j2-test.properties
index af468d3b15..041d5d6149 100644
--- a/server/tserver/src/test/resources/log4j2-test.properties
+++ b/server/tserver/src/test/resources/log4j2-test.properties
@@ -17,7 +17,6 @@
 # under the License.
 #
 
-status = warn
 dest = err
 name = AccumuloTserverTestLoggingProperties
 
diff --git a/shell/src/test/resources/log4j2-test.properties 
b/shell/src/test/resources/log4j2-test.properties
index f342269082..5fc36ac912 100644
--- a/shell/src/test/resources/log4j2-test.properties
+++ b/shell/src/test/resources/log4j2-test.properties
@@ -17,7 +17,6 @@
 # under the License.
 #
 
-status = warn
 dest = err
 name = AccumuloShellTestLoggingProperties
 
diff --git a/start/src/test/resources/log4j2-test.properties 
b/start/src/test/resources/log4j2-test.properties
index ec3ad68e0c..0ec9c0cd23 100644
--- a/start/src/test/resources/log4j2-test.properties
+++ b/start/src/test/resources/log4j2-test.properties
@@ -17,7 +17,6 @@
 # under the License.
 #
 
-status = warn
 dest = err
 name = AccumuloStartTestLoggingProperties
 
diff --git a/test/src/main/resources/log4j2-test.properties 
b/test/src/main/resources/log4j2-test.properties
index d6343c3154..9f02c8e201 100644
--- a/test/src/main/resources/log4j2-test.properties
+++ b/test/src/main/resources/log4j2-test.properties
@@ -17,7 +17,6 @@
 # under the License.
 #
 
-status = warn
 dest = err
 name = AccumuloITLoggingProperties
 

Reply via email to