-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use the MongoDB Java driver's DNS SPI to enable mongo+srv:// connecti…
…on strings in native mode fixes #26387
- Loading branch information
1 parent
b2574a8
commit c4d6bdc
Showing
22 changed files
with
386 additions
and
230 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
...client/runtime/src/main/java/io/quarkus/mongodb/runtime/MongoConfigSourceInterceptor.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package io.quarkus.mongodb.runtime; | ||
|
||
import static io.quarkus.mongodb.runtime.dns.MongoDnsClient.DNS_LOG_ACTIVITY; | ||
import static io.quarkus.mongodb.runtime.dns.MongoDnsClient.DNS_LOOKUP_TIMEOUT; | ||
import static io.quarkus.mongodb.runtime.dns.MongoDnsClient.DNS_SERVER; | ||
import static io.quarkus.mongodb.runtime.dns.MongoDnsClient.DNS_SERVER_PORT; | ||
import static io.quarkus.mongodb.runtime.dns.MongoDnsClient.NATIVE_DNS_LOG_ACTIVITY; | ||
import static io.quarkus.mongodb.runtime.dns.MongoDnsClient.NATIVE_DNS_LOOKUP_TIMEOUT; | ||
import static io.quarkus.mongodb.runtime.dns.MongoDnsClient.NATIVE_DNS_SERVER; | ||
import static io.quarkus.mongodb.runtime.dns.MongoDnsClient.NATIVE_DNS_SERVER_PORT; | ||
|
||
import java.util.Map; | ||
|
||
import io.smallrye.config.RelocateConfigSourceInterceptor; | ||
|
||
public class MongoConfigSourceInterceptor extends RelocateConfigSourceInterceptor { | ||
public MongoConfigSourceInterceptor() { | ||
super(Map.of( | ||
DNS_LOG_ACTIVITY, NATIVE_DNS_LOG_ACTIVITY, | ||
DNS_LOOKUP_TIMEOUT, NATIVE_DNS_LOOKUP_TIMEOUT, | ||
DNS_SERVER, NATIVE_DNS_SERVER, | ||
DNS_SERVER_PORT, NATIVE_DNS_SERVER_PORT)); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
92 changes: 0 additions & 92 deletions
92
...ongodb-client/runtime/src/main/java/io/quarkus/mongodb/runtime/dns/DnsClientProducer.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.