Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-3140

Mongo4 appender stays in TimeOut

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.14.1
    • None
    • Appenders
    • OpenJDK 11 and 13, Windows 10, IntelliJ, MongoDB 4.4.8, mongo-driver-sync 4.3.1.

    Description

      I have configured a Mongo4 Appender for logging into my MongoDB Atlas Cluster.

      I have the mongo-driver-sync 4.3.1 in my pom.xml, and I use a connection string of type:

      mongodb+srv://<username>:<password>@myproject.ne6as.mongodb.net/myFirstDatabase?retryWrites=true&w=majority

      When my app tries to log, the mongodb connection keeps stalling in the 30000ms timeout waiting for the cluster description.

      The strange thing is that my app does other things with this very same MongoDB, so I have coded a MongoDBService class that handles the connection etc...and my code works perfectly using the same driver and the same connection string: no "waiting for cluster description"...

      Attachments

        Activity

          People

            Unassigned Unassigned
            gnumarco Marc Segond
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: