Remove prefix shard leftovers With the removal of everything producer related we can also remove everything related to prefix shards. JIRA: CONTROLLER-1977 Change-Id: I05bd1a286cd8fac252c122d2118d1d7dedcc8941 Signed-off-by: Tomas Cere <tomas.cere@pantheon.tech>
Fix modernization issues This fixes issues pointed out by Modernizer, which mostly boil down to using Objects.requireNonNull() and direct java.util collections. Change-Id: Id32530a6722cd101f96c23f6a745f91b2f09e2f9 Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
Fix sonar warnings in sal-distributed-datastore These come from squid: - String literals should not be duplicated - Modifiers should be declared in the correct order - Lambdas and anonymous classes should not have too many lines - Nested blocks of code should not be left empty - Local variables should not shadow class fields - Exception handlers should preserve the original exception - Utility classes should not have public constructors - Overriding methods should do more than simply call the same method in the super class - Unused private fields should be removed I fixed quite a few of them. Others we'd have to suppress or modify the sonar config to be more lenient. Change-Id: I7ce7b2a05feac9844fd9c37927de82b7b8b68ee5 Signed-off-by: Tom Pantelis <tompantelis@gmail.com>
BUG-7965 Switch distributed-data backend to a separate shard The shard needs to be present on all nodes and replicated across the cluster. Making this into shard allows us to leverage the current datastore api's and also persistence so we have the sharding layout persisted. The shard is started on all nodes once DistributedShardedDOMDataTree is created. Change-Id: I697be9b7134a27720e23e3e56f9fddc71301ec1e Signed-off-by: Tomas Cere <tcere@cisco.com>
BUG-2138: Create DistributedShardFrontend Use the abstract shard implementations from md-sal to create a frontend implementation of a cds shard that forwards requests to backend shards via DistributedDatastoreClient. Change-Id: I7a3485f414368728e71ab2746c84d7a0f83f1436 Signed-off-by: Tomas Cere <tcere@cisco.com>
BUG 2138: Introduce prefix based shards into ShardManager Adds the concept of shards rooted at a DOMDataTreeIdentifier (combination of YangInstanceIdentifier and LogicalDataStore) into the distributed datastore. Change-Id: I43a32556000092c7e7b2ee09b334f82f38ec865b Signed-off-by: Tomas Cere <tcere@cisco.com>