Uploaded image for project: 'JGroups'
  1. JGroups
  2. JGRP-475

Logging IOExceptions in BasicConnectionTable

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Minor Minor
    • 2.4.1 SP2, 2.5
    • 2.4.1 SP1
    • None
    • Low

      BasicConnectionTable contains this code:

      private void _send(byte[] data, int offset, int length) {
      synchronized(send_mutex) {
      try

      { doSend(data, offset, length); updateLastAccessed(); }

      catch(IOException io_ex) {
      if(log.isWarnEnabled())
      log.warn("peer closed connection, trying to re-send msg");
      try

      { doSend(data, offset, length); updateLastAccessed(); }

      catch(IOException io_ex2)

      { if(log.isErrorEnabled()) log.error("2nd attempt to send data failed too"); }

      catch(Exception ex2)

      { if(log.isErrorEnabled()) log.error("exception is " + ex2); }

      }
      catch(InterruptedException iex) {}
      catch(Throwable ex)

      { if(log.isErrorEnabled()) log.error("exception is " + ex); }

      }
      }

      io_ex and io_ex2 should be logged, otherwise you get these messages without any reason why it failed:

      2007-04-15 01:04:43,425 WARN [org.jgroups.blocks.ConnectionTable] sender thread was interrupted, but is still alive: Thread[ConnectionTable.Connection.Sender [143.61.17.44:55413 - 209.82.241.31:7100],5,ConnectionTableGroup]
      2007-04-15 01:04:43,425 WARN [org.jgroups.blocks.ConnectionTable] peer closed connection, trying to re-send msg
      2007-04-15 01:04:43,426 ERROR [org.jgroups.blocks.ConnectionTable] 2nd attempt to send data failed too

              rhn-engineering-bban Bela Ban
              rh-ee-galder Galder ZamarreƱo
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: