Skip to content

Conversation

@pongad
Copy link
Contributor

@pongad pongad commented Mar 7, 2018

No description provided.

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Mar 7, 2018
publisher.shutdown();
}

public void testPublishFailureRetries_exceededsRetryDuration() throws Exception {

This comment was marked as spam.


/** 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.

This comment was marked as spam.

@garrettjonesgoogle
Copy link
Member

@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.

BatchingCallSettings.newBuilder(PUBLISH_BATCHING_DESC)
.setBatchingSettings(BatchingSettings.newBuilder().build());
publishSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
// publishSettings =

This comment was marked as spam.

@pongad
Copy link
Contributor Author

pongad commented Mar 8, 2018

@hzyi-google PTAL

@yihanzhen
Copy link
Contributor

LGTM

@pongad
Copy link
Contributor Author

pongad commented Mar 8, 2018

@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.

closeables =
Collections.<AutoCloseable>singletonList(new ExecutorAsBackgroundResource(executor));
} else {
closeables = Collections.emptyList();

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

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.

This comment was marked as spam.

This comment was marked as spam.

@pongad
Copy link
Contributor Author

pongad commented Mar 13, 2018

@garrettjonesgoogle PTAL

@pongad
Copy link
Contributor Author

pongad commented Mar 14, 2018

@garrettjonesgoogle Committed the test now

Copy link
Member

@garrettjonesgoogle garrettjonesgoogle left a comment

Choose a reason for hiding this comment

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

LGTM

@pongad pongad merged commit 7f88505 into googleapis:master Mar 14, 2018
@pongad pongad deleted the pubsub-gapic branch March 14, 2018 21:44
@pongad
Copy link
Contributor Author

pongad commented Mar 14, 2018

Thank you @garrettjonesgoogle . Sorry for the churn.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants