-
Notifications
You must be signed in to change notification settings - Fork 247
Add an end to end test for helix gateway #2922
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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) { | ||
| GatewayServiceEvent.GateWayServiceEventBuilder builder = | ||
| new GatewayServiceEvent.GateWayServiceEventBuilder(GatewayServiceEventType.DISCONNECT).setClusterName( | ||
| clusterName).setParticipantName(instanceName); | ||
|
|
@@ -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, | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. space before String |
||
| Map<String, Map<String, String>> shardStateMap) { | ||
| List<GatewayServiceEvent.StateTransitionResult> stResult = new ArrayList<>(); | ||
| shardStateMap.forEach((resourceName, value) -> value.forEach((key, value1) -> { | ||
|
|
@@ -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, | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix whitespace before "String"
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same for above methods |
||
| Map<String, Map<String, String>> shardStateMap) { | ||
| GatewayServiceEvent.GateWayServiceEventBuilder builder = | ||
| new GatewayServiceEvent.GateWayServiceEventBuilder(GatewayServiceEventType.CONNECT).setClusterName( | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Space before String