Reduce output from DeadlockMonitor 61/34561/2
authorTom Pantelis <tpanteli@brocade.com>
Fri, 12 Feb 2016 14:56:46 +0000 (09:56 -0500)
committerGerrit Code Review <gerrit@opendaylight.org>
Mon, 15 Feb 2016 09:32:29 +0000 (09:32 +0000)
commit384479f0181763f3202f2f7ad681e90182bcc820
treef7e074aa9b1025d8db216406652d90e6f5a9d8fa
parent40173010bbe30f908688c3a4e0818c26c8cd4ded
Reduce output from DeadlockMonitor

If a module doesn't finish after 5 sec, the DeadlockMonitor starts
logging warning messages. However it does this every second. CDS will
wait up to 90 sec for all shards to elect a leader so the
DeadlockMonitor produces a lot of output during this period. To reduce
the noise I changed the sleep to use WARN_AFTER_MILLIS so the message is
logged every 5 sec.

Change-Id: I63842075dee1fc6a4fc4e4200cc089e33a110e78
Signed-off-by: Tom Pantelis <tpanteli@brocade.com>
opendaylight/config/config-manager/src/main/java/org/opendaylight/controller/config/manager/impl/DeadlockMonitor.java