From 8a34185fbea67626196395324e79dc58c8472ea7 Mon Sep 17 00:00:00 2001 From: Matthew B <106352182+artntek@users.noreply.github.com> Date: Mon, 16 Dec 2024 11:11:25 -0800 Subject: [PATCH 1/4] add same log4j dependencies as metacta-index --- pom.xml | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/pom.xml b/pom.xml index e635f78f..b4f83124 100644 --- a/pom.xml +++ b/pom.xml @@ -217,7 +217,7 @@ org.slf4j slf4j-api - 2.0.16 + 1.6.1 org.slf4j @@ -230,6 +230,11 @@ + + org.slf4j + slf4j-log4j12 + 1.6.1 + net.minidev json-smart @@ -278,17 +283,27 @@ org.apache.logging.log4j log4j-1.2-api - 2.24.0 + 2.17.1 org.apache.logging.log4j log4j-core - 2.24.0 + 2.17.1 org.apache.logging.log4j log4j-jcl - 2.24.0 + 2.17.1 + + + org.apache.logging.log4j + log4j-api + 2.17.1 + + + org.apache.logging.log4j + log4j-layout-template-json + 2.17.2 org.apache.solr From c8ba2a076fc7aedca56aa03afa866cdcc3c45970 Mon Sep 17 00:00:00 2001 From: Matthew B <106352182+artntek@users.noreply.github.com> Date: Mon, 16 Dec 2024 13:18:58 -0800 Subject: [PATCH 2/4] use property for log4j version --- pom.xml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pom.xml b/pom.xml index b4f83124..3a65468c 100644 --- a/pom.xml +++ b/pom.xml @@ -16,6 +16,7 @@ 2.3.1 8.11.2 solr8home + 2.17.1 @@ -283,22 +284,22 @@ org.apache.logging.log4j log4j-1.2-api - 2.17.1 + ${log4j.version} org.apache.logging.log4j log4j-core - 2.17.1 + ${log4j.version} org.apache.logging.log4j log4j-jcl - 2.17.1 + ${log4j.version} org.apache.logging.log4j log4j-api - 2.17.1 + ${log4j.version} org.apache.logging.log4j From 3ec210fa33e125229ffa4a0461d759f6efd76839 Mon Sep 17 00:00:00 2001 From: Matthew B <106352182+artntek@users.noreply.github.com> Date: Mon, 16 Dec 2024 14:04:35 -0800 Subject: [PATCH 3/4] remove slf4j-log4j12 dependency --- pom.xml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/pom.xml b/pom.xml index 3a65468c..8ec6a852 100644 --- a/pom.xml +++ b/pom.xml @@ -231,11 +231,6 @@ - - org.slf4j - slf4j-log4j12 - 1.6.1 - net.minidev json-smart From 5b58ad640bb0044eb68c5c3a4b05dfe7246a7eec Mon Sep 17 00:00:00 2001 From: Matthew B <106352182+artntek@users.noreply.github.com> Date: Mon, 16 Dec 2024 14:41:21 -0800 Subject: [PATCH 4/4] rename log4j props mount point --- helm/templates/deployment.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helm/templates/deployment.yaml b/helm/templates/deployment.yaml index 08bf600a..587ad80c 100644 --- a/helm/templates/deployment.yaml +++ b/helm/templates/deployment.yaml @@ -65,7 +65,7 @@ spec: - mountPath: /etc/dataone/dataone-indexer.properties subPath: dataone-indexer.properties name: {{ .Release.Name }}-config-volume - - mountPath: /etc/dataone/log4j.properties + - mountPath: /etc/dataone/log4j2.properties subPath: log4j2.properties name: {{ .Release.Name }}-config-volume - mountPath: {{ .Values.persistence.mountPath }}