From ab2e1d841bcc427fe84d5f4b61e20611781b6639 Mon Sep 17 00:00:00 2001 From: Tomas Cere Date: Tue, 6 Jun 2017 18:28:10 +0200 Subject: [PATCH 1/1] BUG 8602: Skip initial fill of idints Change-Id: If197c9b2318a52b3608f6065bea44af860a09849 Signed-off-by: Tomas Cere (cherry picked from commit 09630b9ae171a976301a795e745044ae58812df7) --- .../it/provider/impl/ProduceTransactionsHandler.java | 5 ----- .../it/provider/impl/WriteTransactionsHandler.java | 4 ---- 2 files changed, 9 deletions(-) diff --git a/opendaylight/md-sal/samples/clustering-test-app/provider/src/main/java/org/opendaylight/controller/clustering/it/provider/impl/ProduceTransactionsHandler.java b/opendaylight/md-sal/samples/clustering-test-app/provider/src/main/java/org/opendaylight/controller/clustering/it/provider/impl/ProduceTransactionsHandler.java index 875f1794d7..278a963ce7 100644 --- a/opendaylight/md-sal/samples/clustering-test-app/provider/src/main/java/org/opendaylight/controller/clustering/it/provider/impl/ProduceTransactionsHandler.java +++ b/opendaylight/md-sal/samples/clustering-test-app/provider/src/main/java/org/opendaylight/controller/clustering/it/provider/impl/ProduceTransactionsHandler.java @@ -124,11 +124,6 @@ public class ProduceTransactionsHandler implements Runnable { LOG.debug("Filling the item list with initial values."); final CollectionNodeBuilder mapBuilder = ImmutableNodes.mapNodeBuilder(ITEM); - for (int i = 0; i < MAX_ITEM / 2; i++) { - usedValues.add(i); - mapBuilder.withChild(ImmutableNodes.mapEntry(ITEM, NUMBER, i)); - } - idListWithKey = ID_INT_YID.node(new NodeIdentifierWithPredicates(ID_INT, ID, id)); itemProducer = domDataTreeService.createProducer( diff --git a/opendaylight/md-sal/samples/clustering-test-app/provider/src/main/java/org/opendaylight/controller/clustering/it/provider/impl/WriteTransactionsHandler.java b/opendaylight/md-sal/samples/clustering-test-app/provider/src/main/java/org/opendaylight/controller/clustering/it/provider/impl/WriteTransactionsHandler.java index 6c8750e695..e9c5ffb6ee 100644 --- a/opendaylight/md-sal/samples/clustering-test-app/provider/src/main/java/org/opendaylight/controller/clustering/it/provider/impl/WriteTransactionsHandler.java +++ b/opendaylight/md-sal/samples/clustering-test-app/provider/src/main/java/org/opendaylight/controller/clustering/it/provider/impl/WriteTransactionsHandler.java @@ -179,10 +179,6 @@ public class WriteTransactionsHandler implements Runnable { LOG.debug("Filling the item list with initial values."); final CollectionNodeBuilder mapBuilder = ImmutableNodes.mapNodeBuilder(ITEM); - for (int i = 0; i < MAX_ITEM / 2; i++) { - usedValues.add(i); - mapBuilder.withChild(ImmutableNodes.mapEntry(ITEM, NUMBER, i)); - } final YangInstanceIdentifier itemListId = idListWithKey.node(ITEM); final DOMDataWriteTransaction tx = txProvider.createTransaction(); -- 2.36.6