Closed xyuanlu closed 2 months ago
This change is ready to be merged. Approved by @junkaixue Commit message: Gateway - Add GatewayCurrentStateCache for gateway
This pull request introduces a caching mechanism for the Helix Gateway service. The main changes include:
Addition of a new GatewayCurrentStateCache class in GatewayCurrentStateCache.java, which manages caching of current and target states for instances in a cluster.
Issues
2821
Description
This pull request introduces a caching mechanism for the Helix Gateway service. The main changes include:
Addition of a new
GatewayCurrentStateCache
class inGatewayCurrentStateCache.java
, which manages caching of current and target states for instances in a cluster.Modification of
GatewayServiceManager.java
to incorporate the new caching functionality:_currentStateCacheMap
is added to storeGatewayCurrentStateCache
objects for each cluster.getCurrentStateCache(String clusterName)
is introduced to retrieve or create a cache for a given cluster.Test
A new test class
TestGatewayCurrentStateCache.java
has been added with the following tests:Changes that Break Backward Compatibility
N/A
Documentation
N/A
Created with Palmier