Apache logging services logo Apache log4j logo

CPD Results

The following document contains the results of PMD's CPD 5.2.3.

Duplications

File Line
org/apache/logging/log4j/flume/appender/FlumeAvroManager.java 146
org/apache/logging/log4j/flume/appender/FlumeAvroManager.java 171
                rpcClient.appendBatch(events.getEvents());
            } catch (final Exception ex) {
                rpcClient.close();
                rpcClient = null;
                final String msg = "Unable to write to " + getName() + " at " + agents[current].getHost() + ':' +
                    agents[current].getPort();
                LOGGER.warn(msg, ex);
                throw new AppenderLoggingException("No Flume agents are available");
            }
        }  else {
            final String msg = "Unable to write to " + getName() + " at " + agents[current].getHost() + ':' +
                agents[current].getPort();
            LOGGER.warn(msg);
            throw new AppenderLoggingException("No Flume agents are available");
        }
    }