GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Bigtable - improvement: Rewrite ReframingResponseObserver by igorbernstein2 · Pull Request #2925 · googleapis/google-cloud-java

Conversation

@igorbernstein2

@igorbernstein2 igorbernstein2 commented Feb 20, 2018

Copy link
Copy Markdown
Contributor

The new version uses atomics to ensure mutual exclusion instead of synchronization.
This allows the delivery loop to be simpler since there is no need to need to defer actions until after exiting the synchronization.
Also, move all interactions with the Reframer to the delivery loop, which ensures proper error handling if the Reframer detects an error.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@igorbernstein2
igorbernstein2 requested a review from pongad February 20, 2018 19:02
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Feb 20, 2018
@igorbernstein2 igorbernstein2 mentioned this pull request Feb 20, 2018
BIgtable: bug fix - Fix Reframer error handling #2920
Merged
pongad
pongad reviewed Feb 23, 2018
View reviewed changes
Comment thread ...gtable/src/main/java/com/google/cloud/bigtable/gaxx/reframing/ReframingResponseObserver.java Outdated
if (current == Integer.MAX_VALUE) {
return;
}
// Prevent overflow

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Comment thread ...gtable/src/main/java/com/google/cloud/bigtable/gaxx/reframing/ReframingResponseObserver.java
}
closeOnDone = true;
}
// order of assignment matters

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Comment thread ...gtable/src/main/java/com/google/cloud/bigtable/gaxx/reframing/ReframingResponseObserver.java
awaitingInner = false;
} else if (localDone) {
awaitingInner = false;
}

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@igorbernstein2

igorbernstein2 commented Feb 23, 2018

Copy link
Copy Markdown
Contributor Author

All feedback should be addressed, PTAL

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

igorbernstein2 added 5 commits February 23, 2018 16:31
@igorbernstein2
Rewrite ReframingResponseObserver
536abfa
The new version uses atomics to ensure mutual exclusion instead of synchronization.
This allows the delivery loop to be simpler since there is no need to need to defer actions until after exiting the synchronization.
Also, move all interactions with the Reframer to the delivery loop, which ensures proper error handling if the Reframer detects an error.
@igorbernstein2
avoid unnecessary set when requests are max
1e0b56b
@igorbernstein2
add more tests
96c6bbd
@igorbernstein2
remove redundant initializer
0503150
@igorbernstein2
address feedback: use guava for overflow math & codacy tweaks
7649582
@igorbernstein2
igorbernstein2 force-pushed the 09c-impl-better-reframing branch from baacaf9 to 7649582 Compare February 23, 2018 21:33
@igorbernstein2

igorbernstein2 commented Feb 23, 2018

Copy link
Copy Markdown
Contributor Author

rebased

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@pongad

pongad commented Feb 26, 2018

Copy link
Copy Markdown
Contributor

LGTM. @garrettjonesgoogle Do you want to take a look? If not, we can merge.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@garrettjonesgoogle

garrettjonesgoogle commented Feb 26, 2018

Copy link
Copy Markdown
Contributor

This looks like a mostly implementation change, so I'll defer to @pongad 's LGTM.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@pongad
pongad merged commit 26d254d into googleapis:master Feb 27, 2018
schmidt-sebastian pushed a commit that referenced this pull request Feb 27, 2018
@igorbernstein2 @schmidt-sebastian
Bigtable - improvement: Rewrite ReframingResponseObserver (#2925)
455a525
The new version uses atomics to ensure mutual exclusion instead of synchronization.
This allows the delivery loop to be simpler since there is no need to need to defer actions until after exiting the synchronization.
Also, move all interactions with the Reframer to the delivery loop, which ensures proper error handling if the Reframer detects an error.
@igorbernstein2
igorbernstein2 deleted the 09c-impl-better-reframing branch March 1, 2018 02:08
chingor13 pushed a commit that referenced this pull request Feb 20, 2026
@renovate-bot
chore(deps): update dependency com.google.cloud:libraries-bom to v26.…
0b88dbf
…57.0 (#2925)
lqiu96 pushed a commit that referenced this pull request Mar 20, 2026
@renovate-bot
chore(deps): update dependency com.google.cloud:libraries-bom to v26.…
263de90
…57.0 (#2925)
chingor13 pushed a commit that referenced this pull request Mar 24, 2026
Arpan Mishra
fix: flaky test issue due to AbortedException. (#2925)
f9b8e03
* fix: prevent illegal negative timeout values into thread sleep() method while retrying exceptions in unit tests.

* For details on issue see - googleapis/java-spanner#2206

* Fixing lint issues.

* fix: flaky test issue due to AbortedException.

* chore: remove assertion.
chingor13 pushed a commit that referenced this pull request Mar 24, 2026
@release-please
chore(main): release 6.61.0 (#2926)
020a813
🤖 I have created a release *beep* *boop*
---


## [6.61.0](https://togithub.com/googleapis/java-spanner/compare/v6.60.1...v6.61.0) (2024-03-04)


### Features

* Support float32 type ([#2894](https://togithub.com/googleapis/java-spanner/issues/2894)) ([879470a](https://togithub.com/googleapis/java-spanner/commit/879470a77a09f1f604a4b9888cb214108cd49372))


### Bug Fixes

* Flaky test issue due to AbortedException. ([#2925](https://togithub.com/googleapis/java-spanner/issues/2925)) ([f9b8e03](https://togithub.com/googleapis/java-spanner/commit/f9b8e037cde42804311af40b67f3b45d634b6ff9))


### Dependencies

* Update dependency com.google.cloud:sdk-platform-java-config to v3.27.0 ([#2935](https://togithub.com/googleapis/java-spanner/issues/2935)) ([55442fc](https://togithub.com/googleapis/java-spanner/commit/55442fce7ea63988a5f439730c3745b32fd09aea))
* Update dependency org.json:json to v20240303 ([#2936](https://togithub.com/googleapis/java-spanner/issues/2936)) ([791aec9](https://togithub.com/googleapis/java-spanner/commit/791aec9a8538601bda786b158285618b573514a9))


### Documentation

* Samples and tests for backup Admin APIs and overall spanner Admin APIs. ([#2882](https://togithub.com/googleapis/java-spanner/issues/2882)) ([7c024f2](https://togithub.com/googleapis/java-spanner/commit/7c024f21625c97979d70391a82ca84730c37b709))
* Update all public documents to use auto-generated admin clients. ([#2928](https://togithub.com/googleapis/java-spanner/issues/2928)) ([faf5a09](https://togithub.com/googleapis/java-spanner/commit/faf5a09dc784386ad40c0fdb0f005d1bdaff9eed))

---
This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

1 more reviewer
@pongad pongad pongad left review comments
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

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

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@igorbernstein2 @pongad @garrettjonesgoogle @googlebot
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.