Skip to content
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

Add an end to end test for helix gateway #2922

Merged
merged 3 commits into from
Sep 23, 2024

Conversation

xyuanlu
Copy link
Contributor

@xyuanlu xyuanlu commented Sep 15, 2024

Issues

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

#2821

Description

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

This change add e2e test and fix some bugs

Tests

  • The following tests are written for this issue:

TestFilePullChannelE2E

  • The following is the result of the "mvn test" command on the appropriate module:

(If CI test fails due to known issue, please specify the issue and test PR locally. Then copy & paste the result of "mvn test" to here.)

Changes that Break Backward Compatibility (Optional)

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

(Consider including all behavior changes for public methods or API. Also include these changes in merge description so that other developers are aware of these changes. This allows them to make relevant code changes in feature branches accounting for the new method/API behavior.)

Documentation (Optional)

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

(Link the GitHub wiki you added)

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)

@xyuanlu xyuanlu force-pushed the gateway-e2etest branch 3 times, most recently from 6a9cb1d to 73a9ef1 Compare September 15, 2024 05:20
@xyuanlu xyuanlu marked this pull request as ready for review September 15, 2024 17:40
Copy link
Contributor

@zpinto zpinto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall LGTM, comments are for formatting.

@@ -165,7 +165,7 @@ public static GatewayServiceEvent translateCurrentStateChangeToEvent(String inst
* @param shardStateMap the initial state of shards on the participant. Could be empty map
* @return
*/
public static GatewayServiceEvent translateCurrentStateDiffToInitConnectEvent(String instanceName, String clusterName,
public static GatewayServiceEvent translateCurrentStateDiffToInitConnectEvent( String clusterName, String instanceName,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix whitespace before "String"

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same for above methods

@@ -144,7 +144,7 @@ public static GatewayServiceEvent translateClientCloseToEvent(String instanceNam
* @param shardStateMap
* @return
*/
public static GatewayServiceEvent translateCurrentStateChangeToEvent(String instanceName, String clusterName,
public static GatewayServiceEvent translateCurrentStateChangeToEvent( String clusterName, String instanceName,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

space before String

@@ -130,7 +130,7 @@ public static GatewayServiceEvent translateShardStateMessageToEventAndUpdateCach
* @param clusterName the cluster name
* @return GatewayServiceEvent
*/
public static GatewayServiceEvent translateClientCloseToEvent(String instanceName, String clusterName) {
public static GatewayServiceEvent translateClientCloseToEvent( String clusterName, String instanceName) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Space before String

@xyuanlu
Copy link
Contributor Author

xyuanlu commented Sep 23, 2024

This change is ready to be merged. Approved by @junkaixue
Commit message:
Add an end to end test for helix gateway

@xyuanlu xyuanlu merged commit d09d40b into apache:helix-gateway-service Sep 23, 2024
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.

3 participants