Stop logging complete data tree on prepare/commit failure 13/36513/2
authorMoiz Raja <moraja@cisco.com>
Fri, 18 Mar 2016 19:29:50 +0000 (12:29 -0700)
committerGerrit Code Review <gerrit@opendaylight.org>
Thu, 24 Mar 2016 19:23:05 +0000 (19:23 +0000)
commit29f8ac5fe0cc867e9656772b3ddc4d54c8641729
treebc3ad8af6616021c61cc681e385de1ef4c4186b2
parent1c0319104ab35afc0d694f23fc8527da5fd1b123
Stop logging complete data tree on prepare/commit failure

Sometimes the data tree modification is so large that just trying to create
the buffer to hold the message can make the controller run out of memory. Plus
it's rarely useful to have a log filled with data which obfuscates other
important log messages. This patch still logs the data tree modification at
trace level.

Change-Id: I76bff9f7e836ee5eff347b0b77e2817f441ab953
Signed-off-by: Moiz Raja <moraja@cisco.com>
(cherry picked from commit 2cf157241dc0ce5045c26e2ad07d053a60b37822)
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/SimpleShardDataTreeCohort.java