-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
api: Javadoc changes for io.grpc.LoadBalancer method signatures #11623
Open
SreeramdasLavanya
wants to merge
27
commits into
grpc:master
Choose a base branch
from
SreeramdasLavanya:FixIssue-11194
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 22 commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
ab97045
SynchronizationContextTest changes for scheduleFixedDelay with Duration
SreeramdasLavanya fef4c92
Revert "SynchronizationContextTest changes for scheduleFixedDelay wit…
SreeramdasLavanya 778cfb4
Merge branch 'grpc:master' into master
SreeramdasLavanya 328bcbf
Merge branch 'grpc:master' into master
SreeramdasLavanya 6a66054
Merge branch 'grpc:master' into master
SreeramdasLavanya 4113845
Merge branch 'grpc:master' into master
SreeramdasLavanya 09c3509
Merge branch 'grpc:master' into master
SreeramdasLavanya 62a88ec
Merge branch 'grpc:master' into master
SreeramdasLavanya f658685
Merge branch 'grpc:master' into master
SreeramdasLavanya c51a5e4
Merge branch 'grpc:master' into master
SreeramdasLavanya 02e92c5
Merge branch 'grpc:master' into master
SreeramdasLavanya 4c31880
api: Javadoc changes for LoadBalancer method signatures
SreeramdasLavanya 9ddcb09
api: Changes for UNAVAILABLE to Status.UNAVAILABLE and Status.OK
SreeramdasLavanya 596d11d
api: Check style fix for UNAVAILABLE to Status.UNAVAILABLE and Status.OK
SreeramdasLavanya d9bf85e
api: Check style fix for Status.UNAVAILABLE and Status.OK
SreeramdasLavanya 401a7d2
api: Check style fix for Status.UNAVAILABLE
SreeramdasLavanya f388ac2
api: Check style fix for Status.UNAVAILABLE
SreeramdasLavanya cb315f0
Merge branch 'grpc:master' into FixIssue-11194
SreeramdasLavanya 380345c
Merge branch 'grpc:master' into FixIssue-11194
SreeramdasLavanya 846eb00
api/util/services: Deprected handleResolvedAddresses method and relat…
SreeramdasLavanya ee36c4e
interop-testing: Changes for deprecated handleResolvedAddresses metho…
SreeramdasLavanya b1f857f
xds: Changes for deprecated handleResolvedAddresses method and relate…
SreeramdasLavanya 891b547
Merge branch 'grpc:master' into FixIssue-11194
SreeramdasLavanya 6d3abf0
api: Reverted changes for LoadBalancer and LoadBalancerTest
SreeramdasLavanya ca3e613
Merge branch 'grpc:master' into FixIssue-11194
SreeramdasLavanya 47002fe
util: Replaced handleResolvedAddress to acceptResolvedAddresses.
SreeramdasLavanya cb85563
api: Reverted back to acceptResolvedAddress
SreeramdasLavanya File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -263,7 +263,7 @@ public void shutdown() { | |
new EquivalentAddressGroup(new SocketAddress(){})); | ||
ResolvedAddresses addresses = ResolvedAddresses.newBuilder().setAddresses(servers) | ||
.setAttributes(attrs).build(); | ||
balancer.handleResolvedAddresses(addresses); | ||
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. We discussed not to change this test. |
||
balancer.acceptResolvedAddresses(addresses); | ||
assertThat(resultCapture.get()).isEqualTo( | ||
ResolvedAddresses.newBuilder().setAddresses(servers).setAttributes(attrs).build()); | ||
} | ||
|
@@ -275,8 +275,9 @@ public void acceptResolvedAddresses_delegatesToHandleResolvedAddressGroups() { | |
|
||
LoadBalancer balancer = new LoadBalancer() { | ||
@Override | ||
public void handleResolvedAddresses(ResolvedAddresses addresses) { | ||
public Status acceptResolvedAddresses(ResolvedAddresses addresses) { | ||
addressesCapture.set(addresses); | ||
return Status.OK; | ||
} | ||
|
||
@Override | ||
|
@@ -297,7 +298,7 @@ public void shutdown() { | |
new EquivalentAddressGroup(new SocketAddress(){})); | ||
ResolvedAddresses addresses = ResolvedAddresses.newBuilder().setAddresses(servers) | ||
.setAttributes(attrs).build(); | ||
balancer.handleResolvedAddresses(addresses); | ||
balancer.acceptResolvedAddresses(addresses); | ||
assertThat(addressesCapture.get().getAddresses()).isEqualTo(servers); | ||
assertThat(addressesCapture.get().getAttributes()).isEqualTo(attrs); | ||
} | ||
|
@@ -309,9 +310,10 @@ public void acceptResolvedAddresses_noInfiniteLoop() { | |
|
||
LoadBalancer balancer = new LoadBalancer() { | ||
@Override | ||
public void handleResolvedAddresses(ResolvedAddresses addresses) { | ||
public Status acceptResolvedAddresses(ResolvedAddresses addresses) { | ||
addressesCapture.add(addresses); | ||
super.handleResolvedAddresses(addresses); | ||
super.acceptResolvedAddresses(addresses); | ||
return Status.OK; | ||
} | ||
|
||
@Override | ||
|
@@ -328,7 +330,7 @@ public void shutdown() { | |
new EquivalentAddressGroup(new SocketAddress(){})); | ||
ResolvedAddresses addresses = ResolvedAddresses.newBuilder().setAddresses(servers) | ||
.setAttributes(attrs).build(); | ||
balancer.handleResolvedAddresses(addresses); | ||
balancer.acceptResolvedAddresses(addresses); | ||
assertThat(addressesCapture).hasSize(1); | ||
assertThat(addressesCapture.get(0).getAddresses()).isEqualTo(servers); | ||
assertThat(addressesCapture.get(0).getAttributes()).isEqualTo(attrs); | ||
|
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.
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.
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.
Why have you commented this out?