Palash Chauhan created PHOENIX-7251: ---------------------------------------
Summary: Refactor server-side code to support multiple ServerMetadataCache for HA tests Key: PHOENIX-7251 URL: https://issues.apache.org/jira/browse/PHOENIX-7251 Project: Phoenix Issue Type: Sub-task Reporter: Palash Chauhan Assignee: Palash Chauhan In the metadata caching re-design, `ServerMetadataCache` is required to be a singleton in the implementation. This affects tests for the HA use case because the coprocessors on the 2 clusters end up using the same `ServerMetadataCache`. All tests which execute queries with 1 of the clusters unavailable will fail. We can refactor the implementation in the following way to support HA test cases: 1. Create a `ServerMetadataCache` interface and use the current implementation as `ServerMetadataCacheImpl` for all other tests. This would be a singleton. 2. Implement `ServerMetadataCacheHAImpl` with a map of instances keyed on config. 3. Extend `PhoenixRegionServerEndpoint` and use `ServerMetadataCacheHAImpl`. 4. In HA tests, load this new endpoint on the region servers. -- This message was sent by Atlassian Jira (v8.20.10#820010)