Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-1126

Exception hidden on Hot Rod client

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • 4.2.1.FINAL
    • Remote Protocols
    • None

      RetryOnFailureOperation is not logging exceptions that lead to a retry correctlty and this is hiding a crucial exception to clarify JBPAPP-6113. So, here's the log:

      211988 TRACE [org.infinispan.client.hotrod.impl.operations.RetryOnFailureOperation] (Runner - 0:) Exception encountered. Retry 4 out of 40

      So, what exception was encountered? No idea. Why? Log code is:

      log.trace(message, i, transportFactory.getTransportCount(), te);

      Which translates to talking to "void trace(Object message, Object... params);" which won't print the stacktrace as cause.

      Instead, the log code should be:

      log.trace(message, te, i, transportFactory.getTransportCount());

      So that it uses "void trace(Object message, Throwable t, Object... params);"

      Verify master as well.

            rh-ee-galder Galder ZamarreƱo
            rh-ee-galder Galder ZamarreƱo
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: