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

DefaultServerMonitor catches Throwable and discards without logging

    • Type: Icon: Bug Bug
    • Resolution: Works as Designed
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: 3.6.1
    • Component/s: Monitoring
    • None

      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);
      }
      

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

              Created:
              Updated:
              Resolved: