-
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
fix: Add unit test for concurrent issues we worried about, and fix some locking issues #854
Conversation
Having issues running Yi's stress test. |
Please run it with switch stream turned on and run it for over a day.
It will give us some confidence if we are able to close streams a couple of
times.
…On Mon, Feb 22, 2021 at 12:16 PM Yiru Tang ***@***.***> wrote:
I finished running Yi's current stress test on this CL. However, I am
wondering how good the stress test could cover the cases we worried about.
—
You are receiving this because your review was requested.
Reply to this email directly, view it on GitHub
<#854 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ASBQVIKOTYRKPAKHYAPDQTLTAK3RNANCNFSM4X3QGU2A>
.
|
Warning: This pull request is touching the following templated files:
|
Here is the summary of changes. You are about to add 1 region tag.
This comment is generated by snippet-bot.
|
Codecov Report
@@ Coverage Diff @@
## master #854 +/- ##
============================================
+ Coverage 80.28% 80.65% +0.36%
- Complexity 961 1016 +55
============================================
Files 76 76
Lines 5311 5552 +241
Branches 405 432 +27
============================================
+ Hits 4264 4478 +214
- Misses 875 900 +25
- Partials 172 174 +2
Continue to review full report at Codecov.
|
|
This test keeps failing:
|
Thanks, submitted a fix.
…On Fri, Feb 26, 2021 at 9:31 AM Stephanie Wang ***@***.***> wrote:
This test keeps failing:
StreamWriterTest.testFlowControlBehaviorBlock:574 Call got exception: java.lang.IllegalStateException: Cannot append on a shut-down writer.
Full trace
<https://github.com/googleapis/java-bigquerystorage/pull/854/checks?check_run_id=1988955117>
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#854 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHGYVESDMMZOV5AGWY6RSSDTA7LFLANCNFSM4X3QGU2A>
.
--
Thanks.
Yiru
|
🤖 I have created a release \*beep\* \*boop\* --- ## [1.14.0](https://www.github.com/googleapis/java-bigquerystorage/compare/v1.13.0...v1.14.0) (2021-03-04) ### Features * update StreamWriterV2 to support trace id ([#895](https://www.github.com/googleapis/java-bigquerystorage/issues/895)) ([2e49ce8](https://www.github.com/googleapis/java-bigquerystorage/commit/2e49ce8c79cb059840c3307898ba16980f6892fa)) ### Bug Fixes * add schema update back to json writer ([#905](https://www.github.com/googleapis/java-bigquerystorage/issues/905)) ([a2adbf8](https://www.github.com/googleapis/java-bigquerystorage/commit/a2adbf80753161cbddd23d5a7db75e9250db58fa)) * Add unit test for concurrent issues we worried about, and fix some locking issues ([#854](https://www.github.com/googleapis/java-bigquerystorage/issues/854)) ([0870797](https://www.github.com/googleapis/java-bigquerystorage/commit/087079728195e20f93701e8d5e1e59ba29a7d21b)) * test failure testAppendWhileShutdownSuccess ([#904](https://www.github.com/googleapis/java-bigquerystorage/issues/904)) ([b80183e](https://www.github.com/googleapis/java-bigquerystorage/commit/b80183ea23c8b78611a42d22d8c62a4ba4904a80)) * testAppendWhileShutdownSuccess race ([#907](https://www.github.com/googleapis/java-bigquerystorage/issues/907)) ([d39443d](https://www.github.com/googleapis/java-bigquerystorage/commit/d39443d51d2625e4b3aee59d1e593229e9e449d3)) ### Dependencies * update dependency com.google.cloud:google-cloud-bigquery to v1.127.6 ([#909](https://www.github.com/googleapis/java-bigquerystorage/issues/909)) ([505938b](https://www.github.com/googleapis/java-bigquerystorage/commit/505938bcba5a4a7af9e618572bbc41f365702f47)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
…0.123.24 (googleapis#854) [![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-nio](https://togithub.com/googleapis/java-storage-nio) | `0.123.23` -> `0.123.24` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-nio/0.123.24/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-nio/0.123.24/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-nio/0.123.24/compatibility-slim/0.123.23)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-nio/0.123.24/confidence-slim/0.123.23)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>googleapis/java-storage-nio</summary> ### [`v0.123.24`](https://togithub.com/googleapis/java-storage-nio/blob/HEAD/CHANGELOG.md#​012324-httpsgithubcomgoogleapisjava-storage-niocomparev012323v012324-2022-03-09) [Compare Source](https://togithub.com/googleapis/java-storage-nio/compare/v0.123.23...v0.123.24) </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, click this checkbox. --- 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).
Have something in inflight queue and we failed and then shutdown.
Shutdown while append is going on.
Shutdown with stuff both in batch leftover and inflight queue.
Additional Batch test to increase code coverage.
Merge AppendAndRefreshAppendLock and MessageBatchLock into one.
Release lock while we are waiting on waiter.
Change shutdown and setAlarm to be normal variable since they are all protected by appendAndRefreshAppend lock.
Make sure inflight requests are flushed after a stream error (on shutdown)