activemq-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dmitrii Tikhomirov (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (ARTEMIS-1311) Log messages without prefixed id code in artemis-core-client
Date Mon, 31 Jul 2017 11:04:00 GMT

     [ https://issues.apache.org/jira/browse/ARTEMIS-1311?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Dmitrii Tikhomirov updated ARTEMIS-1311:
----------------------------------------
    Description: 
Run following command in artemis-core-client directory
{code}
[treblereel@dhcp-10-40-4-236 artemis-core-client]$ find -name "*.java" | grep -i -E -v "test|example|junit"
| xargs grep -i -E "LOG(GER)*\.error\(|LOG(GER)*\.warn\(|LOG(GER)*\.info\("
./src/main/java/org/apache/activemq/artemis/core/cluster/DiscoveryGroup.java:            
           ActiveMQClientLogger.LOGGER.warn("Unexpected null data received from DiscoveryEndpoint");
./src/main/java/org/apache/activemq/artemis/core/protocol/core/impl/RemotingConnectionImpl.java:
        ActiveMQClientLogger.LOGGER.warn(e.getMessage(), e);
./src/main/java/org/apache/activemq/artemis/core/client/impl/ClientConsumerImpl.java:    
    ActiveMQClientLogger.LOGGER.warn("problem cleaning up: " + this);
./src/main/java/org/apache/activemq/artemis/core/client/impl/ClientConsumerImpl.java:    
                ActiveMQClientLogger.LOGGER.warn(e.getMessage(), e);
./src/main/java/org/apache/activemq/artemis/core/client/impl/ClientSessionFactoryImpl.java:
        ActiveMQClientLogger.LOGGER.warn(e.getMessage(), e);
./src/main/java/org/apache/activemq/artemis/core/client/impl/ClientSessionFactoryImpl.java:
        logger.warn(t.getMessage(), t);
./src/main/java/org/apache/activemq/artemis/core/remoting/impl/netty/NettyConnection.java:
              ActiveMQClientLogger.LOGGER.warn(logOnly.getMessage(), logOnly);
./src/main/java/org/apache/activemq/artemis/core/remoting/impl/netty/NettyConnection.java:
           ActiveMQClientLogger.LOGGER.warn(e.getMessage(), e);
./src/main/java/org/apache/activemq/artemis/core/remoting/impl/netty/NettyConnection.java:
        logger.warn("Trying to allocate " + size + " bytes, System is throwing OutOfMemoryError
on NettyConnection " + this + ", there are currently " + "pendingWrites: [NETTY] -> " +
totalPendingWriteBytes + "[EVENT LOOP] -> " + pendingWritesOnEventLoopView.get() + " causes:
" + oom.getMessage(), oom);
./src/main/java/org/apache/activemq/artemis/core/remoting/impl/netty/NettyConnection.java:
           logger.warn("FAILURE! The code is using blockUntilWritable inside a Netty worker,
which would block. " +
./src/main/java/org/apache/activemq/artemis/core/remoting/impl/netty/NettyConnector.java:
        ActiveMQClientLogger.LOGGER.error("Cannot resolve host", e);
./src/main/java/org/apache/activemq/artemis/core/remoting/impl/netty/Epoll.java:         logger.warn(e.getMessage(),
e);
./src/main/java/org/apache/activemq/artemis/utils/VersionLoader.java:            ActiveMQClientLogger.LOGGER.warn(e.getMessage(),
e);
./src/main/java/org/apache/activemq/artemis/utils/VersionLoader.java:         ActiveMQClientLogger.LOGGER.error(e.getMessage(),
e);
./src/main/java/org/apache/activemq/artemis/api/core/client/ActiveMQClient.java:         
     ActiveMQClientLogger.LOGGER.warn("Couldn't finish the client globalThreadPool in less
than 10 seconds, interrupting it now");
./src/main/java/org/apache/activemq/artemis/api/core/client/ActiveMQClient.java:         
     ActiveMQClientLogger.LOGGER.warn("Couldn't finish the client scheduled in less than 10
seconds, interrupting it now");
./src/main/java/org/apache/activemq/artemis/api/core/UDPBroadcastEndpointFactory.java:   
              ActiveMQClientLogger.LOGGER.warn(this + " getting exception when receiving broadcasting.",
e);
./src/main/java/org/apache/activemq/artemis/api/core/UDPBroadcastEndpointFactory.java:   
     ActiveMQClientLogger.LOGGER.warn(t);
./src/main/java/org/apache/activemq/artemis/api/core/UDPBroadcastEndpointFactory.java:   
     ActiveMQClientLogger.LOGGER.warn(t.getMessage(), t);



{code}



  was:
Run following command in artemis-commons directory
{code}

[treblereel@dhcp-10-40-4-236 artemis-commons]$ find -name "*.java" | grep -i -E -v "test|example|junit"
| xargs grep -i -E "LOG(GER)*\.error\(|LOG(GER)*\.warn\(|LOG(GER)*\.info\("
./src/main/java/org/apache/activemq/artemis/core/server/NetworkHealthCheck.java:         logger.warn(e.getMessage(),
e);
./src/main/java/org/apache/activemq/artemis/core/server/NetworkHealthCheck.java:         
        logger.warn(e.getMessage(), e);
./src/main/java/org/apache/activemq/artemis/core/server/NetworkHealthCheck.java:         
        logger.warn(e.getMessage(), e);
./src/main/java/org/apache/activemq/artemis/core/server/NetworkHealthCheck.java:         logger.warn("Ping
Address " + address + " wasn't reacheable");
./src/main/java/org/apache/activemq/artemis/core/server/NetworkHealthCheck.java:         logger.warn("Ping
url " + url + " wasn't reacheable");
./src/main/java/org/apache/activemq/artemis/core/server/NetworkHealthCheck.java:         
        logger.info("Network is healthy, starting service " + component);
./src/main/java/org/apache/activemq/artemis/core/server/NetworkHealthCheck.java:         
        logger.warn("Error starting component " + component, e);
./src/main/java/org/apache/activemq/artemis/core/server/NetworkHealthCheck.java:         
        logger.info("Network is unhealthy, stopping service " + component);
./src/main/java/org/apache/activemq/artemis/core/server/NetworkHealthCheck.java:         
        logger.warn("Error stopping component " + component, e);
./src/main/java/org/apache/activemq/artemis/core/server/NetworkHealthCheck.java:         logger.warn(e.getMessage(),
e);
./src/main/java/org/apache/activemq/artemis/core/server/NetworkHealthCheck.java:         
  logger.warn(inputLine);
./src/main/java/org/apache/activemq/artemis/core/server/NetworkHealthCheck.java:         logger.warn(e.getMessage(),
e);
./src/main/java/org/apache/activemq/artemis/utils/ByteUtil.java:            logger.warn(e.getMessage(),
e);
./src/main/java/org/apache/activemq/artemis/utils/FileUtil.java:            logger.warn("Could
not list files to clean up in: " + directory.getAbsolutePath());
./src/main/java/org/apache/activemq/artemis/utils/FileUtil.java:                  logger.warn("Failed
to clean up file: " + f.getAbsolutePath());
./src/main/java/org/apache/activemq/artemis/utils/Base64.java:         logger.warn("Object
cannot be serialized", e.getMessage(), e);
./src/main/java/org/apache/activemq/artemis/utils/Base64.java:            logger.warn("Unable
to encode byte array into Base64 notation", e.getMessage(), e);
./src/main/java/org/apache/activemq/artemis/utils/Base64.java:         logger.warn("Unable
to deserialize object", e.getMessage(), e);
./src/main/java/org/apache/activemq/artemis/utils/actors/OrderedExecutor.java:         logger.warn(t.getMessage(),
t);




{code}




> Log messages without prefixed id code in artemis-core-client
> ------------------------------------------------------------
>
>                 Key: ARTEMIS-1311
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-1311
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>    Affects Versions: 2.1.0
>            Reporter: Dmitrii Tikhomirov
>            Priority: Minor
>             Fix For: 2.2.0
>
>
> Run following command in artemis-core-client directory
> {code}
> [treblereel@dhcp-10-40-4-236 artemis-core-client]$ find -name "*.java" | grep -i -E -v
"test|example|junit" | xargs grep -i -E "LOG(GER)*\.error\(|LOG(GER)*\.warn\(|LOG(GER)*\.info\("
> ./src/main/java/org/apache/activemq/artemis/core/cluster/DiscoveryGroup.java:       
                ActiveMQClientLogger.LOGGER.warn("Unexpected null data received from DiscoveryEndpoint");
> ./src/main/java/org/apache/activemq/artemis/core/protocol/core/impl/RemotingConnectionImpl.java:
        ActiveMQClientLogger.LOGGER.warn(e.getMessage(), e);
> ./src/main/java/org/apache/activemq/artemis/core/client/impl/ClientConsumerImpl.java:
        ActiveMQClientLogger.LOGGER.warn("problem cleaning up: " + this);
> ./src/main/java/org/apache/activemq/artemis/core/client/impl/ClientConsumerImpl.java:
                    ActiveMQClientLogger.LOGGER.warn(e.getMessage(), e);
> ./src/main/java/org/apache/activemq/artemis/core/client/impl/ClientSessionFactoryImpl.java:
        ActiveMQClientLogger.LOGGER.warn(e.getMessage(), e);
> ./src/main/java/org/apache/activemq/artemis/core/client/impl/ClientSessionFactoryImpl.java:
        logger.warn(t.getMessage(), t);
> ./src/main/java/org/apache/activemq/artemis/core/remoting/impl/netty/NettyConnection.java:
              ActiveMQClientLogger.LOGGER.warn(logOnly.getMessage(), logOnly);
> ./src/main/java/org/apache/activemq/artemis/core/remoting/impl/netty/NettyConnection.java:
           ActiveMQClientLogger.LOGGER.warn(e.getMessage(), e);
> ./src/main/java/org/apache/activemq/artemis/core/remoting/impl/netty/NettyConnection.java:
        logger.warn("Trying to allocate " + size + " bytes, System is throwing OutOfMemoryError
on NettyConnection " + this + ", there are currently " + "pendingWrites: [NETTY] -> " +
totalPendingWriteBytes + "[EVENT LOOP] -> " + pendingWritesOnEventLoopView.get() + " causes:
" + oom.getMessage(), oom);
> ./src/main/java/org/apache/activemq/artemis/core/remoting/impl/netty/NettyConnection.java:
           logger.warn("FAILURE! The code is using blockUntilWritable inside a Netty worker,
which would block. " +
> ./src/main/java/org/apache/activemq/artemis/core/remoting/impl/netty/NettyConnector.java:
        ActiveMQClientLogger.LOGGER.error("Cannot resolve host", e);
> ./src/main/java/org/apache/activemq/artemis/core/remoting/impl/netty/Epoll.java:    
    logger.warn(e.getMessage(), e);
> ./src/main/java/org/apache/activemq/artemis/utils/VersionLoader.java:            ActiveMQClientLogger.LOGGER.warn(e.getMessage(),
e);
> ./src/main/java/org/apache/activemq/artemis/utils/VersionLoader.java:         ActiveMQClientLogger.LOGGER.error(e.getMessage(),
e);
> ./src/main/java/org/apache/activemq/artemis/api/core/client/ActiveMQClient.java:    
          ActiveMQClientLogger.LOGGER.warn("Couldn't finish the client globalThreadPool in
less than 10 seconds, interrupting it now");
> ./src/main/java/org/apache/activemq/artemis/api/core/client/ActiveMQClient.java:    
          ActiveMQClientLogger.LOGGER.warn("Couldn't finish the client scheduled in less than
10 seconds, interrupting it now");
> ./src/main/java/org/apache/activemq/artemis/api/core/UDPBroadcastEndpointFactory.java:
                 ActiveMQClientLogger.LOGGER.warn(this + " getting exception when receiving
broadcasting.", e);
> ./src/main/java/org/apache/activemq/artemis/api/core/UDPBroadcastEndpointFactory.java:
        ActiveMQClientLogger.LOGGER.warn(t);
> ./src/main/java/org/apache/activemq/artemis/api/core/UDPBroadcastEndpointFactory.java:
        ActiveMQClientLogger.LOGGER.warn(t.getMessage(), t);
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message