-
Notifications
You must be signed in to change notification settings - Fork 292
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
fix: pull-endpoint setting for async subscribers #1883
Conversation
subscriberStubSettings.setEndpoint(this.pullEndpoint); | ||
} else { | ||
applyGlobalPullEndpoint(subscriberStubSettings); | ||
String endpoint = |
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.
Unrelated change for consistency sake, removing the need for applyGlobalPullEndpoint()
.
.hasFieldOrPropertyWithValue("numPullers", 2) | ||
.hasFieldOrPropertyWithValue("subStubSettings.endpoint", "test.endpoint"); |
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.
It may also be worth covering this in our integration tests?
Line 46 in f937b36
class PubSubAutoConfigurationIntegrationTests { |
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.
Added and also found some unrelated bug accidentally.
Kudos, SonarCloud Quality Gate passed! |
@@ -184,7 +184,7 @@ public FlowControl computeSubscriberFlowControlSettings(ProjectSubscriptionName | |||
*/ | |||
public Integer computeParallelPullCount(String subscriptionName, String projectId) { | |||
Integer parallelPullCount = | |||
getSubscriptionProperties(ProjectSubscriptionName.of(projectId, subscriptionName)) | |||
getSubscriptionProperties(PubSubSubscriptionUtils.toProjectSubscriptionName(subscriptionName, projectId)) |
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.
Great catch
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.
LGTM. Thank you for also fixing the bug with the subscription name!
* fix: pull-endpoint setting for async subscribers * add integration test and fix fqn subscription usage Fixes: #1882.
Fixes: #1882.