-
Notifications
You must be signed in to change notification settings - Fork 1.1k
pubsub: make Publisher use GAPIC client #3008
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
Conversation
| publisher.shutdown(); | ||
| } | ||
|
|
||
| public void testPublishFailureRetries_exceededsRetryDuration() throws Exception { |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
|
||
| /** Returns the object with the settings used for calls to publish. */ | ||
| /* package-private */ BatchingCallSettings<PublishRequest, PublishResponse> publishSettings() { | ||
| /* package-private */ UnaryCallSettings<PublishRequest, PublishResponse> publishSettings() { |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
@hzyi-google could you do the first pass? |
| .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) | ||
| .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); | ||
|
|
||
| // builder |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| BatchingCallSettings.newBuilder(PUBLISH_BATCHING_DESC) | ||
| .setBatchingSettings(BatchingSettings.newBuilder().build()); | ||
| publishSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); | ||
| // publishSettings = |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
@hzyi-google PTAL |
|
LGTM |
|
@garrettjonesgoogle \Do you also want to take a look? |
|
|
||
| private final Channel channel; | ||
| @Nullable private final CallCredentials callCredentials; | ||
| private final TopicAdminClient topicClient; |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| closeables = | ||
| Collections.<AutoCloseable>singletonList(new ExecutorAsBackgroundResource(executor)); | ||
| } else { | ||
| closeables = Collections.emptyList(); |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| try { | ||
| ApiException gaxException = | ||
| ApiExceptionFactory.createException( | ||
| t, GrpcStatusCode.of(Status.fromThrowable(t).getCode()), false); |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
@garrettjonesgoogle PTAL |
|
@garrettjonesgoogle Committed the test now |
garrettjonesgoogle
left a comment
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 @garrettjonesgoogle . Sorry for the churn. |
No description provided.