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

Disable logging when accept connection fails

    XMLWordPrintable

Details

    • Enhancement
    • Status: Resolved (View Workflow)
    • Minor
    • Resolution: Done
    • 4.2.11
    • 4.2.12, 5.1.6
    • None
    • False
    • False
    • Undefined

    Description

      When configuring Cross-Site on OCP with operator and LoadBalancer on AWS (probably, will occur on Azure and other cloud platforms) there are a large number of stack traces places inside Pod logs
       

      07:51:13,524 WARN (TcpServer.Acceptor[7900]-2,relay-global,_example-infinispan-1-11053:site1) [org.jgroups.protocols.TCP] JGRP000006: failed accepting connection from peer Socket[addr=/10.131.0.1,port=11781,localport=7900]: java.io.EOFException java.io.EOFException    
      at java.base/java.io.DataInputStream.readFully(DataInputStream.java:202)     
      at org.jgroups.blocks.cs.TcpConnection.readPeerAddress(TcpConnection.java:247)     
      at org.jgroups.blocks.cs.TcpConnection.<init>(TcpConnection.java:53)     
      at org.jgroups.blocks.cs.TcpServer$Acceptor.handleAccept(TcpServer.java:126)     
      at org.jgroups.blocks.cs.TcpServer$Acceptor.run(TcpServer.java:111)     
      at java.base/java.lang.Thread.run(Thread.java:834)
      

      The reason for these logs that's AWS/OCP pings LoadBalancer with probe each time with interval.

      It would be nice to have a property (in TCP protocol?) to disable the logging in here: https://github.com/belaban/JGroups/blob/master/src/org/jgroups/blocks/cs/TcpServer.java#L101

      Something like:

      <TCP logAcceptError=false>

      if (logAcceptError)
        log.warn(Util.getMessage("AcceptError"), client_sock, ex);
      

      Attachments

        Issue Links

          Activity

            People

              rhn-engineering-bban Bela Ban
              pruivo@redhat.com Pedro Ruivo
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: