-
Notifications
You must be signed in to change notification settings - Fork 243
Helix gateway service for Helix 2.0 #3089
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* Set up helix-gateway folder structure and add PoC code * Add basic proto for gRPC calls
Add protobuff definition and an empty grpc service
This test base contains all the setups including: 1. Mock participants which hybrid with gateway services. 2. Controller with start/stop. 3. Resource creation. 4. Only Online/Offline state model. 5. Gateway services with start/stop (now leave empty until gateway service is implemented). Also start a dummy test to extend test base to make sure all set ups are ready except gateway services.
Refactor and remove mock classes
Gateway service - service structure dummy class
Gateway util for per key lock and per key blocking queue executor
Implement GatewayServiceManager
Add license to gateway service
- Add ST handling logic to support multi top state state model definitions without intermediary states - Encapsulate the participant manager create, connect, disconnect logic in HelixGatewayParticipant - Add replica state tracking in HelixGatewayParticipant
API to close grpc client stream connection from server side
… HelixGatewayParticipant.(#2868) * Implement helix manager disconnect and client disconnect handling for HelixGatewayParticipant.
Interfaces of gateway service
Refine gateway service interface
This PR introduces a new configuration system for the Helix Gateway service, allowing for more flexible and customizable channel configurations. The main changes include: -Introduction of GatewayServiceChannelConfig class to manage various channel configurations. -Implementation of a factory pattern (HelixGatewayServiceChannelFactory) for creating appropriate service channels based on the configuration. -The PR also includes various improvements in error handling, logging, and code organization.
…ansition message (#2892) Gateway - User report their shards' current state instead of state transition message
Add helix-gateway to bump-up.sh and bump-snapshot.sh
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.
This pull request introduces significant enhancements to the Helix Gateway service, primarily focusing on implementing a poll-mode channel for communication. The main changes include: Addition of a new HelixGatewayServicePollModeChannel class that implements the poll-mode communication channel. Updates to GatewayServiceChannelConfig to support new configuration options for poll-mode.
Create condition based rebalancer
Add missing license for rebalance condition files Co-authored-by: Tengfei Mu <tmu@linkedin.com>
Create sticky assignment rebalance strategy
Move existing assignments usage calculation to pre-process stage
Add test to ensure no partition movement when nodes restart
* Switch to compatible grpc version. * Bump snapshot * Add helix-gateway-service branch to PR CI.
… the lifecycle of the channel. (#2913) Expose setting gateway service channel to allow external managment of the lifecycle of the channel.
Gateway - gateway participant update target state in cache
Add helix-gateway java stubs to for jdk11 jar
Add an end to end test for helix gateway
- Synchronized calls to onNext, onError, and onComplete to prevent grpc failures - Ensured thread safety for StreamObserver method invocations
Add getter for all target state - gateway service
* Make StickyRebalanceStrategy topology aware * move canAdd() to a separate function for extendability * add todo * address comment and add test * constructor change for CapacityNode --------- Co-authored-by: Tengfei Mu <tmu@linkedin.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issues
resolves Apache Helix 2.0
Description
Apache Helix Gateway Service
Tests
The following tests are written for this issue:
The following is the result of the "mvn test" command on the appropriate module:
Changes that Break Backward Compatibility (Optional)
new module backward compatible.
Documentation (Optional)
Apache Helix 2.0
Commits
Code Quality
(helix-style-intellij.xml if IntelliJ IDE is used)