Skip to content

Commit

Permalink
Downgrade dnsjava to 3.5.3 (#581)
Browse files Browse the repository at this point in the history
This is due to dnsjava/dnsjava#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.
  • Loading branch information
dimas-b authored Dec 19, 2024
1 parent 261c4fa commit e8de7e5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dropwizard/service/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
2 changes: 2 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
Expand Down

0 comments on commit e8de7e5

Please sign in to comment.