Skip to content
This repository was archived by the owner on Sep 26, 2023. It is now read-only.

fix: fix closeAsync#1446

Merged
igorbernstein2 merged 1 commit intogoogleapis:masterfrom
mutianf:deflake
Aug 5, 2021
Merged

fix: fix closeAsync#1446
igorbernstein2 merged 1 commit intogoogleapis:masterfrom
mutianf:deflake

Conversation

@mutianf
Copy link
Copy Markdown
Contributor

@mutianf mutianf commented Aug 5, 2021

If closeAsync is called before sending out all the elements, it's possible that scheduled PushCurrentBatchRunnable is still sending the elements when scheduledFuture.cancel is called, and the thread shouldn't be interrupted.

@mutianf mutianf requested review from a team August 5, 2021 16:29
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Aug 5, 2021
@mutianf mutianf changed the title fix: make closeAsync don't interrupt running thread fix: fix closeAsync Aug 5, 2021
Copy link
Copy Markdown
Contributor

@igorbernstein2 igorbernstein2 left a comment

Choose a reason for hiding this comment

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

Lgtm

@igorbernstein2 igorbernstein2 merged commit 7c6c298 into googleapis:master Aug 5, 2021
gcf-merge-on-green bot pushed a commit that referenced this pull request Aug 11, 2021
🤖 I have created a release \*beep\* \*boop\*
---
## [2.1.0](https://www.github.com/googleapis/gax-java/compare/v2.0.0...v2.1.0) (2021-08-11)


### Features

* add allowNonDefaultServiceAccount option for DirectPath ([#1433](https://www.github.com/googleapis/gax-java/issues/1433)) ([209b494](https://www.github.com/googleapis/gax-java/commit/209b4944feba1c62be2c9de4545e3b01a806b738))


### Bug Fixes

* fix httpjson executor ([#1448](https://www.github.com/googleapis/gax-java/issues/1448)) ([8f48b70](https://www.github.com/googleapis/gax-java/commit/8f48b7027b95e8e75872d1f9dac537ea697d0acc))
* make closeAsync don't interrupt running thread ([#1446](https://www.github.com/googleapis/gax-java/issues/1446)) ([7c6c298](https://www.github.com/googleapis/gax-java/commit/7c6c29824487346d444730388ea6967408692696))


### Dependencies

* update dependency com.google.api:api-common to v2.0.1 ([#1452](https://www.github.com/googleapis/gax-java/issues/1452)) ([a52f16f](https://www.github.com/googleapis/gax-java/commit/a52f16f6cef8340357acb374ff31c8a6f248403c))
---


This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
@mutianf mutianf deleted the deflake branch September 24, 2021 13:40
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants