Downgrade most info messages in benchmarks 96/56396/1
authorVratko Polak <vrpolak@cisco.com>
Wed, 26 Apr 2017 18:37:43 +0000 (20:37 +0200)
committerRobert Varga <nite@hq.sk>
Tue, 2 May 2017 15:50:48 +0000 (15:50 +0000)
They create spam during CSIT,
making real errors less noticable in log.

Change-Id: Icf00389526919751e88189ffef1be70e16e806e8
Signed-off-by: Vratko Polak <vrpolak@cisco.com>
(cherry picked from commit 3f26179cf9ed4ebd4b680805d2d93f904ea60806)

18 files changed:
benchmark/dsbenchmark/src/main/java/org/opendaylight/dsbenchmark/DatastoreAbstractWriter.java
benchmark/dsbenchmark/src/main/java/org/opendaylight/dsbenchmark/DsbenchmarkProvider.java
benchmark/dsbenchmark/src/main/java/org/opendaylight/dsbenchmark/listener/DsbenchmarkListenerProvider.java
benchmark/dsbenchmark/src/main/java/org/opendaylight/dsbenchmark/simpletx/SimpletxBaDelete.java
benchmark/dsbenchmark/src/main/java/org/opendaylight/dsbenchmark/simpletx/SimpletxBaRead.java
benchmark/dsbenchmark/src/main/java/org/opendaylight/dsbenchmark/simpletx/SimpletxBaWrite.java
benchmark/dsbenchmark/src/main/java/org/opendaylight/dsbenchmark/simpletx/SimpletxDomDelete.java
benchmark/dsbenchmark/src/main/java/org/opendaylight/dsbenchmark/simpletx/SimpletxDomRead.java
benchmark/dsbenchmark/src/main/java/org/opendaylight/dsbenchmark/simpletx/SimpletxDomWrite.java
benchmark/dsbenchmark/src/main/java/org/opendaylight/dsbenchmark/txchain/TxchainBaDelete.java
benchmark/dsbenchmark/src/main/java/org/opendaylight/dsbenchmark/txchain/TxchainBaRead.java
benchmark/dsbenchmark/src/main/java/org/opendaylight/dsbenchmark/txchain/TxchainBaWrite.java
benchmark/dsbenchmark/src/main/java/org/opendaylight/dsbenchmark/txchain/TxchainDomDelete.java
benchmark/dsbenchmark/src/main/java/org/opendaylight/dsbenchmark/txchain/TxchainDomRead.java
benchmark/dsbenchmark/src/main/java/org/opendaylight/dsbenchmark/txchain/TxchainDomWrite.java
benchmark/ntfbenchmark/src/main/java/ntfbenchmark/impl/NtfbenchmarkProvider.java
benchmark/rpcbenchmark/src/main/java/rpcbenchmark/impl/GlobalBindingRTCServer.java
benchmark/rpcbenchmark/src/main/java/rpcbenchmark/impl/RpcbenchmarkProvider.java

index ef4d04d..fafcaad 100644 (file)
@@ -38,7 +38,7 @@ public abstract class DatastoreAbstractWriter {
         this.writesPerTx = writesPerTx;
         this.oper = oper;
         this.dataStore = dataStore;
-        LOG.info("DatastoreAbstractWriter created: {}", this);
+        LOG.debug("DatastoreAbstractWriter created: {}", this);
     }
 
     public abstract void createList();
index 2c25951..e762d6d 100644 (file)
@@ -83,19 +83,19 @@ public class DsbenchmarkProvider implements BindingAwareProvider, DsbenchmarkSer
         listenerProvider.setDataBroker(dataBroker);
         setTestOperData(this.execStatus.get(), testsCompleted);
 
-        LOG.info("DsbenchmarkProvider Session Initiated");
+        LOG.debug("DsbenchmarkProvider Session Initiated");
     }
 
     @Override
     public void close() throws Exception {
         dstReg.close();
-        LOG.info("DsbenchmarkProvider Closed");
+        LOG.debug("DsbenchmarkProvider Closed");
     }
 
     @Override
     public Future<RpcResult<Void>> cleanupStore() {
         cleanupTestStore();
-        LOG.info("Data Store cleaned up");
+        LOG.debug("Data Store cleaned up");
         return Futures.immediateFuture( RpcResultBuilder.<Void>success().build());
     }
 
@@ -180,7 +180,7 @@ public class DsbenchmarkProvider implements BindingAwareProvider, DsbenchmarkSer
             throw new IllegalStateException(e);
         }
 
-        LOG.info("DataStore test oper status populated: {}", status);
+        LOG.debug("DataStore test oper status populated: {}", status);
     }
 
     private void cleanupTestStore() {
@@ -192,7 +192,7 @@ public class DsbenchmarkProvider implements BindingAwareProvider, DsbenchmarkSer
         tx.put(LogicalDatastoreType.CONFIGURATION, TEST_EXEC_IID, data);
         try {
             tx.submit().checkedGet();
-            LOG.info("DataStore config test data cleaned up");
+            LOG.debug("DataStore config test data cleaned up");
         } catch (TransactionCommitFailedException e) {
             LOG.info("Failed to cleanup DataStore configtest data");
             throw new IllegalStateException(e);
@@ -202,7 +202,7 @@ public class DsbenchmarkProvider implements BindingAwareProvider, DsbenchmarkSer
         tx.put(LogicalDatastoreType.OPERATIONAL, TEST_EXEC_IID, data);
         try {
             tx.submit().checkedGet();
-            LOG.info("DataStore operational test data cleaned up");
+            LOG.debug("DataStore operational test data cleaned up");
         } catch (TransactionCommitFailedException e) {
             LOG.info("Failed to cleanup DataStore operational test data");
             throw new IllegalStateException(e);
index e589818..62b48ad 100644 (file)
@@ -30,7 +30,7 @@ public class DsbenchmarkListenerProvider {
 
     public void setDataBroker(DataBroker dataBroker) {
         this.dataBroker = dataBroker;
-        LOG.info("DsbenchmarkListenerProvider created");
+        LOG.debug("DsbenchmarkListenerProvider created");
     }
 
     public void createAndRegisterListeners(int numListeners) {
@@ -42,7 +42,7 @@ public class DsbenchmarkListenerProvider {
                     new DataTreeIdentifier<>(LogicalDatastoreType.OPERATIONAL, TEST_EXEC_IID), listener));
 
         }
-        LOG.info("DsbenchmarkListenerProvider created {} listeneres", numListeners);
+        LOG.debug("DsbenchmarkListenerProvider created {} listeneres", numListeners);
     }
 
     public long getDataChangeCount() {
@@ -51,7 +51,7 @@ public class DsbenchmarkListenerProvider {
         for (ListenerRegistration<DsbenchmarkListener> listenerRegistration : listeners) {
             dataChanges += listenerRegistration.getInstance().getNumDataChanges();
         }
-        LOG.info("DsbenchmarkListenerProvider , total data changes {}", dataChanges);
+        LOG.debug("DsbenchmarkListenerProvider , total data changes {}", dataChanges);
         return dataChanges;
     }
 
@@ -63,7 +63,7 @@ public class DsbenchmarkListenerProvider {
             listenerRegistration.close();
         }
         listeners.clear();
-        LOG.info("DsbenchmarkListenerProvider destroyed listeneres, total events {}", totalEvents);
+        LOG.debug("DsbenchmarkListenerProvider destroyed listeneres, total events {}", totalEvents);
         return totalEvents;
     }
 }
index a96d0d5..cb44e8f 100644 (file)
@@ -31,12 +31,12 @@ public class SimpletxBaDelete extends DatastoreAbstractWriter {
             final long writesPerTx, final DataStore dataStore) {
         super(StartTestInput.Operation.DELETE, outerListElem, innerListElem, writesPerTx, dataStore);
         this.dataBroker = dataBroker;
-        LOG.info("Created SimpletxBaDelete");
+        LOG.debug("Created SimpletxBaDelete");
     }
 
     @Override
     public void createList() {
-        LOG.info("DatastoreDelete: creating data in the data store");
+        LOG.debug("DatastoreDelete: creating data in the data store");
         // Dump the whole list into the data store in a single transaction
         // with <outerListElem> PUTs on the transaction
         SimpletxBaWrite dd = new SimpletxBaWrite(dataBroker,
index 269d2fa..afff73c 100644 (file)
@@ -35,12 +35,12 @@ public class SimpletxBaRead extends DatastoreAbstractWriter {
             final long writesPerTx, final DataStore dataStore) {
         super(StartTestInput.Operation.DELETE, outerListElem, innerListElem, writesPerTx, dataStore);
         this.dataBroker = dataBroker;
-        LOG.info("Created SimpletxBaRead");
+        LOG.debug("Created SimpletxBaRead");
     }
 
     @Override
     public void createList() {
-        LOG.info("DatastoreRead: creating data in the data store");
+        LOG.debug("DatastoreRead: creating data in the data store");
         // Dump the whole list into the data store in a single transaction
         // with <outerListElem> PUTs on the transaction
         SimpletxBaWrite dd = new SimpletxBaWrite(dataBroker,
index 046ac75..ea373d1 100644 (file)
@@ -32,7 +32,7 @@ public class SimpletxBaWrite extends DatastoreAbstractWriter {
             final int outerListElem, final int innerListElem, final long writesPerTx, final DataStore dataStore) {
         super(oper, outerListElem, innerListElem, writesPerTx, dataStore);
         this.dataBroker = dataBroker;
-        LOG.info("Created SimpletxBaWrite");
+        LOG.debug("Created SimpletxBaWrite");
     }
 
     @Override
index 565b2f8..e7c6ffd 100644 (file)
@@ -31,12 +31,12 @@ public class SimpletxDomDelete extends DatastoreAbstractWriter {
             final int innerListElem, final long writesPerTx, final DataStore dataStore) {
         super(StartTestInput.Operation.DELETE, outerListElem, innerListElem, writesPerTx, dataStore);
         this.domDataBroker = domDataBroker;
-        LOG.info("Created simpleTxDomDelete");
+        LOG.debug("Created simpleTxDomDelete");
     }
 
     @Override
     public void createList() {
-        LOG.info("SimpletxDomDelete: creating data in the data store");
+        LOG.debug("SimpletxDomDelete: creating data in the data store");
         // Dump the whole list into the data store in a single transaction
         // with <outerListElem> PUTs on the transaction
         SimpletxDomWrite dd = new SimpletxDomWrite(domDataBroker,
index 0edccbf..f2b2799 100644 (file)
@@ -36,13 +36,13 @@ public class SimpletxDomRead extends DatastoreAbstractWriter {
                            final int innerListElem, final long writesPerTx, final DataStore dataStore) {
         super(StartTestInput.Operation.DELETE, outerListElem, innerListElem, writesPerTx, dataStore);
         this.domDataBroker = domDataBroker;
-        LOG.info("Created simpleTxDomRead");
+        LOG.debug("Created simpleTxDomRead");
 
     }
 
     @Override
     public void createList() {
-        LOG.info("SimpletxDomRead: creating data in the data store");
+        LOG.debug("SimpletxDomRead: creating data in the data store");
         // Dump the whole list into the data store in a single transaction
         // with <outerListElem> PUTs on the transaction
         SimpletxDomWrite dd = new SimpletxDomWrite(domDataBroker,
index b944680..1ea66f2 100644 (file)
@@ -34,7 +34,7 @@ public class SimpletxDomWrite extends DatastoreAbstractWriter {
                                     final int outerListElem, final int innerListElem, final long putsPerTx, final DataStore dataStore ) {
         super(oper, outerListElem, innerListElem, putsPerTx, dataStore);
         this.domDataBroker = domDataBroker;
-        LOG.info("Created SimpletxDomWrite");
+        LOG.debug("Created SimpletxDomWrite");
     }
 
     @Override
index dc45d4c..74ba61c 100644 (file)
@@ -36,12 +36,12 @@ public class TxchainBaDelete extends DatastoreAbstractWriter implements Transact
             final long writesPerTx, final DataStore dataStore) {
         super(StartTestInput.Operation.DELETE, outerListElem, innerListElem, writesPerTx, dataStore);
         this.bindingDataBroker = bindingDataBroker;
-        LOG.info("Created TxchainBaDelete");
+        LOG.debug("Created TxchainBaDelete");
     }
 
     @Override
     public void createList() {
-        LOG.info("TxchainBaDelete: creating data in the data store");
+        LOG.debug("TxchainBaDelete: creating data in the data store");
 
         // Dump the whole list into the data store in a single transaction
         // with <outerListElem> PUTs on the transaction
@@ -105,7 +105,7 @@ public class TxchainBaDelete extends DatastoreAbstractWriter implements Transact
         } catch (IllegalStateException e) {
             LOG.error("Transaction close failed,", e);
         }
-        LOG.info("Transactions: submitted {}, completed {}", txSubmitted, (txOk + txError));
+        LOG.debug("Transactions: submitted {}, completed {}", txSubmitted, (txOk + txError));
     }
 
     @Override
@@ -117,7 +117,7 @@ public class TxchainBaDelete extends DatastoreAbstractWriter implements Transact
 
     @Override
     public void onTransactionChainSuccessful(final TransactionChain<?, ?> chain) {
-        LOG.info("TxchainBaDelete closed successfully, chain {}", chain);
+        LOG.debug("TxchainBaDelete closed successfully, chain {}", chain);
     }
 
 }
index 19a0bfe..9b2ec41 100644 (file)
@@ -36,12 +36,12 @@ public class TxchainBaRead extends DatastoreAbstractWriter implements Transactio
             final long writesPerTx, final DataStore dataStore) {
         super(StartTestInput.Operation.DELETE, outerListElem, innerListElem, writesPerTx, dataStore);
         this.bindingDataBroker = bindingDataBroker;
-        LOG.info("Created TxchainBaRead");
+        LOG.debug("Created TxchainBaRead");
     }
 
     @Override
     public void createList() {
-        LOG.info("TxchainBaRead: reading data in the data store");
+        LOG.debug("TxchainBaRead: reading data in the data store");
 
         // Dump the whole list into the data store in a single transaction
         // with <outerListElem> PUTs on the transaction
@@ -108,7 +108,7 @@ public class TxchainBaRead extends DatastoreAbstractWriter implements Transactio
 
     @Override
     public void onTransactionChainSuccessful(final TransactionChain<?, ?> chain) {
-        LOG.info("TxchainBaDelete closed successfully, chain {}", chain);
+        LOG.debug("TxchainBaDelete closed successfully, chain {}", chain);
     }
 
 }
index bf8c0b8..e17ef98 100644 (file)
@@ -39,7 +39,7 @@ public class TxchainBaWrite extends DatastoreAbstractWriter implements Transacti
                           final int outerListElem, final int innerListElem, final long writesPerTx, final DataStore dataStore) {
         super(oper, outerListElem, innerListElem, writesPerTx, dataStore);
         this.bindingDataBroker = bindingDataBroker;
-        LOG.info("Created TxchainBaWrite");
+        LOG.debug("Created TxchainBaWrite");
     }
 
     @Override
@@ -103,7 +103,7 @@ public class TxchainBaWrite extends DatastoreAbstractWriter implements Transacti
         } catch (IllegalStateException e) {
             LOG.error("Transaction close failed,", e);
         }
-        LOG.info("Transactions: submitted {}, completed {}", txSubmitted, (txOk + txError));
+        LOG.debug("Transactions: submitted {}, completed {}", txSubmitted, (txOk + txError));
     }
 
     @Override
@@ -115,7 +115,7 @@ public class TxchainBaWrite extends DatastoreAbstractWriter implements Transacti
 
     @Override
     public void onTransactionChainSuccessful(final TransactionChain<?, ?> chain) {
-        LOG.info("DatastoreBaAbstractWrite closed successfully, chain {}", chain);
+        LOG.debug("DatastoreBaAbstractWrite closed successfully, chain {}", chain);
     }
 
 }
\ No newline at end of file
index 2465548..132ccbc 100644 (file)
@@ -37,12 +37,12 @@ public class TxchainDomDelete extends DatastoreAbstractWriter implements Transac
             final long writesPerTx, final DataStore dataStore) {
         super(StartTestInput.Operation.DELETE, outerListElem, innerListElem, writesPerTx, dataStore);
         this.domDataBroker = domDataBroker;
-        LOG.info("Created TxchainDomDelete");
+        LOG.debug("Created TxchainDomDelete");
     }
 
     @Override
     public void createList() {
-        LOG.info("TxchainDomDelete: creating data in the data store");
+        LOG.debug("TxchainDomDelete: creating data in the data store");
 
         // Dump the whole list into the data store in a single transaction
         // with <outerListElem> PUTs on the transaction
@@ -109,7 +109,7 @@ public class TxchainDomDelete extends DatastoreAbstractWriter implements Transac
         } catch (IllegalStateException e) {
             LOG.error("Transaction close failed,", e);
         }
-        LOG.info("Transactions: submitted {}, completed {}", txSubmitted, (txOk + txError));
+        LOG.debug("Transactions: submitted {}, completed {}", txSubmitted, (txOk + txError));
     }
 
     @Override
@@ -121,6 +121,6 @@ public class TxchainDomDelete extends DatastoreAbstractWriter implements Transac
 
     @Override
     public void onTransactionChainSuccessful(final TransactionChain<?, ?> chain) {
-        LOG.info("TxchainDomDelete closed successfully, chain {}", chain);
+        LOG.debug("TxchainDomDelete closed successfully, chain {}", chain);
     }
 }
index 793ff7e..359aff3 100644 (file)
@@ -37,12 +37,12 @@ public class TxchainDomRead extends DatastoreAbstractWriter implements Transacti
             final long writesPerTx, final DataStore dataStore) {
         super(StartTestInput.Operation.DELETE, outerListElem, innerListElem, writesPerTx, dataStore);
         this.domDataBroker = domDataBroker;
-        LOG.info("Created TxchainDomDelete");
+        LOG.debug("Created TxchainDomDelete");
     }
 
     @Override
     public void createList() {
-        LOG.info("TxchainDomDelete: creating data in the data store");
+        LOG.debug("TxchainDomDelete: creating data in the data store");
 
         // Dump the whole list into the data store in a single transaction
         // with <outerListElem> PUTs on the transaction
@@ -90,6 +90,6 @@ public class TxchainDomRead extends DatastoreAbstractWriter implements Transacti
 
     @Override
     public void onTransactionChainSuccessful(final TransactionChain<?, ?> chain) {
-        LOG.info("TxchainDomDelete closed successfully, chain {}", chain);
+        LOG.debug("TxchainDomDelete closed successfully, chain {}", chain);
     }
 }
index 4811616..2693fa9 100644 (file)
@@ -40,7 +40,7 @@ public class TxchainDomWrite extends DatastoreAbstractWriter implements Transact
             final int innerListElem, final long writesPerTx, final DataStore dataStore) {
         super(oper, outerListElem, innerListElem, writesPerTx, dataStore);
         this.domDataBroker = domDataBroker;
-        LOG.info("Created TxchainDomWrite");
+        LOG.debug("Created TxchainDomWrite");
     }
 
     @Override
@@ -109,7 +109,7 @@ public class TxchainDomWrite extends DatastoreAbstractWriter implements Transact
             LOG.error("Transaction close failed,", e);
         }
 
-        LOG.info("Transactions: submitted {}, completed {}", txSubmitted, (txOk + txError));
+        LOG.debug("Transactions: submitted {}, completed {}", txSubmitted, (txOk + txError));
     }
 
     @Override
@@ -121,7 +121,7 @@ public class TxchainDomWrite extends DatastoreAbstractWriter implements Transact
 
     @Override
     public void onTransactionChainSuccessful(final TransactionChain<?, ?> chain) {
-        LOG.info("Chain {} closed successfully", chain);
+        LOG.debug("Chain {} closed successfully", chain);
     }
 
 }
index 35bea78..c36267e 100644 (file)
@@ -41,20 +41,20 @@ public class NtfbenchmarkProvider implements BindingAwareProvider, AutoCloseable
 
     public NtfbenchmarkProvider(NotificationService listenServiceDependency,
             NotificationPublishService publishServiceDependency) {
-        LOG.info("NtfbenchmarkProvider Constructor");
+        LOG.debug("NtfbenchmarkProvider Constructor");
         listenService = listenServiceDependency;
         publishService = publishServiceDependency;
     }
 
     @Override
     public void onSessionInitiated(final ProviderContext session) {
-        LOG.info("NtfbenchmarkProvider Session Initiated");
+        LOG.debug("NtfbenchmarkProvider Session Initiated");
         session.addRpcImplementation(NtfbenchmarkService.class, this);
     }
 
     @Override
     public void close() throws Exception {
-        LOG.info("NtfbenchmarkProvider Closed");
+        LOG.debug("NtfbenchmarkProvider Closed");
     }
 
     @Override
index 0eaf10d..cdeeac6 100644 (file)
@@ -30,7 +30,7 @@ public class GlobalBindingRTCServer implements RpcbenchPayloadService {
     private int numRpcs = 0;
 
     public GlobalBindingRTCServer() {
-        LOG.info("GlobalBindingRTCServer created.");
+        LOG.debug("GlobalBindingRTCServer created.");
     }
 
     @Override
index 14358ea..b591c3f 100644 (file)
@@ -51,7 +51,7 @@ public class RpcbenchmarkProvider implements BindingAwareProvider, AutoCloseable
 
     @Override
     public void onSessionInitiated(ProviderContext session) {
-        LOG.info("RpcbenchmarkProvider Session Initiated");
+        LOG.debug("RpcbenchmarkProvider Session Initiated");
         consumerRegistry = session.getSALService(RpcConsumerRegistry.class);
         providerRegistry = session.getSALService(RpcProviderRegistry.class);
 
@@ -63,12 +63,12 @@ public class RpcbenchmarkProvider implements BindingAwareProvider, AutoCloseable
 
     @Override
     public void close() throws Exception {
-        LOG.info("RpcbenchmarkProvider Closed");
+        LOG.debug("RpcbenchmarkProvider Closed");
     }
 
     @Override
     public Future<RpcResult<StartTestOutput>> startTest(final StartTestInput input) {
-        LOG.info("startTest {}", input);
+        LOG.debug("startTest {}", input);
 
         final RTCClient client;
         final List<RoutedRpcRegistration<?>> rpcRegs = new ArrayList<>();

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.