Skip to content

Conversation

@junkaixue
Copy link
Contributor

Issues

  • My PR addresses the following Helix issues and references them in the PR description:

resolves Apache Helix 2.0

Description

  • Here are some details about my PR, including screenshots of any UI changes:

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)

  • My PR contains changes that break backward compatibility or previous assumptions for certain methods or API. They include:

new module backward compatible.

Documentation (Optional)

  • In case of new functionality, my PR adds documentation in the following wiki page:

Apache Helix 2.0

Commits

  • My commits all reference appropriate Apache Helix GitHub issues in their subject lines. In addition, my commits follow the guidelines from "How to write a good git commit message":
    1. Subject is separated from body by a blank line
    2. Subject is limited to 50 characters (not including Jira issue reference)
    3. Subject does not end with a period
    4. Subject uses the imperative mood ("add", not "adding")
    5. Body wraps at 72 characters
    6. Body explains "what" and "why", not "how"

Code Quality

  • My diff has been formatted using helix-style.xml
    (helix-style-intellij.xml if IntelliJ IDE is used)

junkaixue and others added 30 commits December 9, 2025 10:12
* 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
xyuanlu and others added 7 commits December 9, 2025 10:12
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>
@junkaixue junkaixue merged commit 03049ed into master Dec 9, 2025
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants