OPNFLWPLUG-970: Prevent ConcurrentModificationException when switches disconnected 52/72852/1
authorChien-Hsin Chen <greensun1231@gmail.com>
Mon, 26 Mar 2018 10:07:21 +0000 (18:07 +0800)
committerAnil Vishnoi <vishnoianil@gmail.com>
Mon, 11 Jun 2018 19:46:19 +0000 (19:46 +0000)
commit2859d4dbe4fafb57c670f70e34c7c2d59051ee44
tree000f07fa70dcea4b9723b354d245f6b9e3d125d8
parentfbf8a1e5ae2add8a9a298948ca2718c65137fd63
OPNFLWPLUG-970: Prevent ConcurrentModificationException when switches disconnected

A concurrent HashSet derived from ConcurrentHashMap is used to prevent ConcurrentModificationException when closing device and statistics contexts.
ExecutorService.submit is replaced with ExecutorService.execute to expose the exceptions thrown.

Change-Id: If607a21b93961308e790bfca55718799576ebf0f
Signed-off-by: Chien-Hsin Chen <greensun1231@gmail.com>
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/device/DeviceContextImpl.java
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/statistics/StatisticsContextImpl.java