[NO ISSUE][CLUS] Add node active partitions config
authorMurtadha Hubail <murtadha.hubail@couchbase.com>
Thu, 5 Aug 2021 00:13:36 +0000 (03:13 +0300)
committerMurtadha Hubail <mhubail@apache.org>
Thu, 5 Aug 2021 19:14:37 +0000 (19:14 +0000)
commit2f405b312c75f947cb947c3f915f10c2b7f812c0
treeaca2b07dd865a0e3e0ca3e7c7d93bb9faf296e2d
parentc5c6ec478aa2a37134271240d1530c38513b2342
[NO ISSUE][CLUS] Add node active partitions config

- user model changes: no
- storage format changes: no
- interface changes: yes

Details:

- Add a new config (ACTIVE_PARTITIONS) that contains the current
  list of active partitions on a node.
- By default, a node's active partitions list is the same as the
  node's assigned partitions.
- Pass node active partitions to CC during bootstrap tasks.
- Adapt test cases.

Change-Id: Ia91e15897221f512aeeccbbe134f1d91db8aa629
Reviewed-on: https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/12663
Integration-Tests: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Reviewed-by: Murtadha Hubail <mhubail@apache.org>
Reviewed-by: Ali Alsuliman <ali.al.solaiman@gmail.com>
12 files changed:
asterixdb/asterix-app/src/main/java/org/apache/asterix/app/nc/NCAppRuntimeContext.java
asterixdb/asterix-app/src/main/java/org/apache/asterix/app/replication/NcLifecycleCoordinator.java
asterixdb/asterix-app/src/main/java/org/apache/asterix/app/replication/message/NCLifecycleTaskReportMessage.java
asterixdb/asterix-app/src/main/java/org/apache/asterix/app/replication/message/RegistrationTasksRequestMessage.java
asterixdb/asterix-app/src/main/java/org/apache/asterix/app/replication/message/RegistrationTasksResponseMessage.java
asterixdb/asterix-app/src/main/java/org/apache/asterix/hyracks/bootstrap/NCApplication.java
asterixdb/asterix-app/src/test/java/org/apache/asterix/runtime/ClusterStateManagerTest.java
asterixdb/asterix-common/src/main/java/org/apache/asterix/common/cluster/IClusterStateManager.java
asterixdb/asterix-common/src/main/java/org/apache/asterix/common/config/MetadataProperties.java
asterixdb/asterix-common/src/main/java/org/apache/asterix/common/config/NodeProperties.java
asterixdb/asterix-common/src/main/java/org/apache/asterix/common/config/PropertiesAccessor.java
asterixdb/asterix-runtime/src/main/java/org/apache/asterix/runtime/utils/ClusterStateManager.java