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: 05. Surface: Bulk Mutations by igorbernstein2 · Pull Request #2936 · googleapis/google-cloud-java

Conversation

@igorbernstein2

@igorbernstein2 igorbernstein2 commented Feb 22, 2018 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

Exposes the MutateRows RPC as bulkMutations(). The actual BatchingCallable is wrapped by a BulkMutations wrapper to allow waiting for outstanding mutations and eventually for flushing the batch.

Edit: This has been reviewed by @kevinsi4508 and ready for @garrettjonesgoogle

NOTE: this api assumes the current gax batching infrastructure. It will be extended once flushing is figured out

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 as a code owner February 22, 2018 00:00
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Feb 22, 2018
kevinsi4508
kevinsi4508 reviewed Feb 26, 2018
View reviewed changes

@kevinsi4508 kevinsi4508 left a comment

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Some minor nits.
LGTM

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/models/BulkMutations.java
future,
new ApiFutureCallback<Void>() {
@Override
public void onFailure(Throwable throwable) {

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 ...e-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/BigtableDataClientTest.java
// Resolve the request
innerResult.set(null);

// Now, close will promptly finish

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 26, 2018

Copy link
Copy Markdown
Contributor Author

@garrettjonesgoogle, can you take a look when you have a moment?

All reactions

Sorry, something went wrong.

Uh oh!

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

garrettjonesgoogle
garrettjonesgoogle reviewed Feb 28, 2018
View reviewed changes
Comment thread google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/BigtableDataClient.java Outdated
* InstanceName instanceName = InstanceName.of("[PROJECT]", "[INSTANCE]");
* try (BigtableClient bigtableClient = BigtableClient.create(instanceName)) {
* try (BulkMutations mutations = bigtableClient.newBulkMutations()) {
* for(String someValue in someCollection) {

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 google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/BigtableDataSettings.java Outdated
/** Returns the object with the settings used for BulkMutations. */
public BatchingCallSettings<RowMutation, Void> bulkMutationsSettings() {
// NOTE: the user facing BigtableDataClient only exposes this api as newBulkMutations,
// so the outer name should match that. While the stub sticks to rpc names.

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/data/v2/internal/DummyBatchingDescriptor.java Outdated
/**
* This is necessary workaround for {@link
* com.google.cloud.bigtable.data.v2.stub.EnhancedBigtableStub#mutateRowsCallable()}. The settings
* are exposed to the user using {@link com.google.cloud.bigtable.data.v2.models.RowMutation}

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 google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/models/BulkMutations.java Outdated
*
* @see com.google.cloud.bigtable.data.v2.BigtableDataClient#newBulkMutations() for example usage.
*/
public final class BulkMutations implements AutoCloseable {

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.

pongad
pongad reviewed Feb 28, 2018
View reviewed changes
Comment thread google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/BigtableDataClient.java Outdated
* } catch (BulkMutationFailure failure) {
* // Handle error
* }
* // After `mutations` are closed, all mutations have been applied

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 google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/models/BulkMutations.java
lock.wait(waitMs);
}

if (numFailures > 0) {

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 28, 2018

Copy link
Copy Markdown
Contributor Author

All feedback has been addressed. The only open question is if BulkMutations can be modeled in terms of callables. @garrettjonesgoogle, PTAL

All reactions

Sorry, something went wrong.

Uh oh!

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

igorbernstein2 added 2 commits February 28, 2018 19:52
@igorbernstein2
Bigtable: 05. Surface: Bulk Mutations
fa283ad
Exposes the MutateRows RPC as bulkMutations(). The actual BatchingCallable is wrapped by a BulkMutations wrapper to allow waiting for outstanding mutations and eventually for flushing the batch.
@igorbernstein2
fix javadoc
2eabf60
@igorbernstein2
igorbernstein2 force-pushed the 05-surface-bulk-mutations branch from 6773a12 to 2eabf60 Compare March 1, 2018 00:59
@igorbernstein2

igorbernstein2 commented Mar 1, 2018

Copy link
Copy Markdown
Contributor Author

rebased (and squashed to simplify rebasing). Will address feedback next

All reactions

Sorry, something went wrong.

Uh oh!

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

igorbernstein2 added 4 commits February 28, 2018 20:11
@igorbernstein2
update naming to be closer to the gax batching infrastructure
1e3eaad
@igorbernstein2
use consistent type names in DummyBatchingDescriptor
8c9f498
@igorbernstein2
update example
223f22c
@igorbernstein2
use consistent callable ordering
a57cd36
@igorbernstein2

igorbernstein2 commented Mar 1, 2018

Copy link
Copy Markdown
Contributor Author

Ok, all feedback has been addressed and the PR has been rebased. PTAL, if it looks good, please merge

All reactions

Sorry, something went wrong.

Uh oh!

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

@pongad

pongad commented Mar 1, 2018

Copy link
Copy Markdown
Contributor

LGTM. @garrettjonesgoogle can +2

All reactions

Sorry, something went wrong.

Uh oh!

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

garrettjonesgoogle
garrettjonesgoogle reviewed Mar 1, 2018
View reviewed changes

@garrettjonesgoogle garrettjonesgoogle left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

LGTM

Sorry, something went wrong.

Uh oh!

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

All reactions
@garrettjonesgoogle
garrettjonesgoogle merged commit c5d35ba into googleapis:master Mar 1, 2018
@igorbernstein2

igorbernstein2 commented Mar 1, 2018

Copy link
Copy Markdown
Contributor Author

Thank you!

All reactions

Sorry, something went wrong.

Uh oh!

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

@igorbernstein2
igorbernstein2 deleted the 05-surface-bulk-mutations branch March 1, 2018 15:54
chingor13 pushed a commit that referenced this pull request Feb 20, 2026
@renovate-bot @PhongChuong
deps: update dependency io.opentelemetry:opentelemetry-exporter-loggi…
3049ccc
…ng to v1.49.0 (#2936)

Co-authored-by: Phong Chuong <[email protected]>
suztomo pushed a commit that referenced this pull request Mar 9, 2026
@renovate-bot
chore(deps): update dependency com.google.cloud:google-cloud-bigquery…
1831e5f
…storage-bom to v2.44.0 (#2936)
lqiu96 pushed a commit that referenced this pull request Mar 20, 2026
@renovate-bot @PhongChuong
deps: update dependency io.opentelemetry:opentelemetry-exporter-loggi…
d303ccd
…ng to v1.49.0 (#2936)

Co-authored-by: Phong Chuong <[email protected]>
chingor13 pushed a commit that referenced this pull request Mar 24, 2026
@renovate-bot
deps: update dependency org.json:json to v20240303 (#2936)
791aec9
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).
chingor13 pushed a commit that referenced this pull request Mar 30, 2026
@BenWhitehead
feat(transfer-manager): add ParallelUploadConfig.Builder#setUploadBlo…
d25e438
…bInfoFactory (#2936)

When uploading a file from the files system, there are scenarios when a job would need to customize the actual BlobInfo used to upload to GCS.

Add the new UploadBlobInfoFactory which allows a user to produce their own BlobInfo instance given the bucketName and fileName. When producing the BlobInfo the application can also customize other metadata fields.

A few convenience adapter methods are available in UploadBlobInfoFactory to simplify common operations.

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

Reviewers

3 more reviewers
@pongad pongad pongad left review comments
@kevinsi4508 kevinsi4508 kevinsi4508 left review comments
@garrettjonesgoogle garrettjonesgoogle garrettjonesgoogle 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.

5 participants

@igorbernstein2 @pongad @kevinsi4508 @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.