This is an automated email from the ASF dual-hosted git repository.
adutra pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/polaris.git
The following commit(s) were added to refs/heads/main by this push:
new e8de7e54 Downgrade dnsjava to 3.5.3 (#581)
e8de7e54 is described below
commit e8de7e54418f7775964d60320b739ae25cf10e4d
Author: Dmitri Bourlatchkov <[email protected]>
AuthorDate: Thu Dec 19 08:03:38 2024 -0500
Downgrade dnsjava to 3.5.3 (#581)
This is due to https://github.com/dnsjava/dnsjava/issues/329
That issue is closed as of 18 Dec 2024, but the fix in 3.6.2
does not appear to be effective for java 21.
The DNS lookup error can happen with JDBC persistence like PosgreSQL.
---
dropwizard/service/build.gradle.kts | 3 +++
gradle/libs.versions.toml | 2 ++
2 files changed, 5 insertions(+)
diff --git a/dropwizard/service/build.gradle.kts
b/dropwizard/service/build.gradle.kts
index 79130f04..8f8cc3c4 100644
--- a/dropwizard/service/build.gradle.kts
+++ b/dropwizard/service/build.gradle.kts
@@ -43,6 +43,9 @@ dependencies {
implementation("org.apache.iceberg:iceberg-core")
implementation("org.apache.iceberg:iceberg-aws")
+ // override dnsjava version in dependencies due to
https://github.com/dnsjava/dnsjava/issues/329
+ implementation(platform(libs.dnsjava))
+
implementation(libs.hadoop.common) {
exclude("org.slf4j", "slf4j-reload4j")
exclude("org.slf4j", "slf4j-log4j12")
diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml
index aaa459ae..900cb466 100644
--- a/gradle/libs.versions.toml
+++ b/gradle/libs.versions.toml
@@ -46,6 +46,8 @@ errorprone = { module =
"com.google.errorprone:error_prone_core", version = "2.2
google-cloud-storage-bom = { module =
"com.google.cloud:google-cloud-storage-bom", version = "2.42.0" }
guava = { module = "com.google.guava:guava", version = "33.3.0-jre" }
h2 = { module = "com.h2database:h2", version = "2.3.232" }
+# Strict dnsjava downgrade due to https://github.com/dnsjava/dnsjava/issues/329
+dnsjava = { module = "dnsjava:dnsjava", version = "3.5.3!!" }
hadoop-client-api = { module = "org.apache.hadoop:hadoop-client-api",
version.ref = "hadoop" }
hadoop-common = { module = "org.apache.hadoop:hadoop-common", version.ref =
"hadoop" }
hadoop-hdfs-client = { module = "org.apache.hadoop:hadoop-hdfs-client",
version.ref = "hadoop" }