-
Notifications
You must be signed in to change notification settings - Fork 85
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
java.lang.RuntimeException: ManagedChannel allocation site #643
Labels
api: bigquerystorage
Issues related to the googleapis/java-bigquerystorage API.
Comments
product-auto-label
bot
added
the
api: bigquerystorage
Issues related to the googleapis/java-bigquerystorage API.
label
Oct 29, 2020
I have found the culprit. It is caused by my careless mistake. I didn't close the readClient when the table is empty. (readSession.getStreamsCount() == 0) if (readSession.getStreamsCount() == 0)
{
return Flux.fromIterable(new ArrayList<>());
} The correct way to fix this is to close the readClient properly. return Flux
.fromIterable(new ArrayList<T>())
.doFinally(Unchecked.consumer((signalType) -> {
logger.info("signalType=[{}].", signalType);
readClient.shutdown();
final boolean awaitTermination = readClient.awaitTermination(1, TimeUnit.MINUTES);
if (!awaitTermination)
{
readClient.shutdownNow();
}
logger.info("signalType=[{}], awaitTermination=[{}].", signalType, awaitTermination);
readClient.close();
})); |
shubhwip
pushed a commit
to shubhwip/java-bigquerystorage
that referenced
this issue
Oct 7, 2023
…oogleapis#643) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://github.com/googleapis/java-core) | `2.0.2` -> `2.0.5` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.0.5/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.0.5/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.0.5/compatibility-slim/2.0.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.0.5/confidence-slim/2.0.2)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>googleapis/java-core</summary> ### [`v2.0.5`](https://github.com/googleapis/java-core/blob/master/CHANGELOG.md#​205-httpswwwgithubcomgoogleapisjava-corecomparev204v205-2021-08-11) [Compare Source](https://github.com/googleapis/java-core/compare/v2.0.4...v2.0.5) ### [`v2.0.4`](https://github.com/googleapis/java-core/blob/master/CHANGELOG.md#​204-httpswwwgithubcomgoogleapisjava-corecomparev203v204-2021-08-11) [Compare Source](https://github.com/googleapis/java-core/compare/v2.0.3...v2.0.4) ### [`v2.0.3`](https://github.com/googleapis/java-core/blob/master/CHANGELOG.md#​203-httpswwwgithubcomgoogleapisjava-corecomparev202v203-2021-08-10) [Compare Source](https://github.com/googleapis/java-core/compare/v2.0.2...v2.0.3) </details> --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-storage-nio).
shubhwip
pushed a commit
to shubhwip/java-bigquerystorage
that referenced
this issue
Oct 7, 2023
🤖 I have created a release \*beep\* \*boop\* --- ### [0.123.6](https://www.github.com/googleapis/java-storage-nio/compare/v0.123.5...v0.123.6) (2021-08-12) ### Dependencies * update dependency com.google.cloud:google-cloud-core to v2.0.5 ([googleapis#643](https://www.github.com/googleapis/java-storage-nio/issues/643)) ([bea87ba](https://www.github.com/googleapis/java-storage-nio/commit/bea87ba9099b1f995c8cc4dc907a32e3ad8b843c)) * update dependency com.google.cloud:google-cloud-shared-dependencies to v2.0.1 ([googleapis#644](https://www.github.com/googleapis/java-storage-nio/issues/644)) ([0185cae](https://www.github.com/googleapis/java-storage-nio/commit/0185cae96f25bd80f4f1b97c1e81573c68af3ee0)) * update dependency com.google.cloud:google-cloud-storage to v2.0.1 ([googleapis#647](https://www.github.com/googleapis/java-storage-nio/issues/647)) ([d9c5aa9](https://www.github.com/googleapis/java-storage-nio/commit/d9c5aa92637f7140dfe5f9cf49bc7a5ede921b8d)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Environment details
General, Core, and Other are also allowed as types
Steps to reproduce
Use Jmeter to load test our application, it shows the following errors. The error shows randomly.
Code example
Stack trace
External references such as API reference guides
Any additional information below
Following these steps guarantees the quickest resolution possible.
Thanks!
The text was updated successfully, but these errors were encountered: