Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-2766

DefaultServerMonitor catches Throwable and discards without logging

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Works as Designed
    • Icon: Minor - P4 Minor - P4
    • None
    • 3.6.1
    • Monitoring
    • None

    Description

      This code ought to at least log subclasses of Error (OOMEs in particular). Without doing so, there is no way to know that the JVM "got sick" when executing this thread. Even though the thread itself likely (I didn't evaluate the control paths) continues to behave correctly, I like to know if my JVMs are having issues.

      } catch (Throwable t) {
         averageRoundTripTime.reset();
         currentServerDescription = getConnectingServerDescription(t);
      }
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            sshabino Steve Shabino
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: