Fix check path contention when create tree producers 54/80954/2
authorhan <han.jie@zte.com.cn>
Fri, 12 Oct 2018 03:16:19 +0000 (11:16 +0800)
committerRobert Varga <nite@hq.sk>
Tue, 19 Mar 2019 14:15:40 +0000 (14:15 +0000)
commitb3a8d6889fb06dccbad0a0358ee83a87e3028bfd
treec276ca3a7ae454f89e42a0e34cc53c56a7b72512
parentcfdebf8eabeaa1ab84a4679edc8a6aefbb30498d
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>
(cherry picked from commit cb18b6de35bc819764b431a4e922d8cbce634014)
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