Fix check path contention when create tree producers 19/76919/18
authorhan <han.jie@zte.com.cn>
Fri, 12 Oct 2018 03:16:19 +0000 (11:16 +0800)
committerRobert Varga <nite@hq.sk>
Mon, 18 Mar 2019 14:49:33 +0000 (14:49 +0000)
commitcb18b6de35bc819764b431a4e922d8cbce634014
tree5e82e82b39e9ce9e057e7c14dac50db07731c950
parentd3f47f41baba4d284a136cee08ab5411ccf6470d
Fix check path contention when create tree producers

- It's not allowed to create producers with their subtrees conflicts.
  Add a map to store producers aim to do this check more simply than
  to travel 'DOMDataTreePrefixTable'.
  It's assumed there're less producers in th map that we could accept
  to do 'for' operation.

  JIRA: MDSAL-397
Change-Id: I105291402f21b530f54873307316f0f0c5640f6b
Signed-off-by: Jie Han <han.jie@zte.com.cn>
dom/mdsal-dom-broker/src/main/java/org/opendaylight/mdsal/dom/broker/ShardedDOMDataTree.java
dom/mdsal-dom-broker/src/test/java/org/opendaylight/mdsal/dom/broker/ShardedDOMDataTreeTest.java