Skip to content

Conversation

@bajajneha27
Copy link
Contributor

Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

  • Make sure to open an issue as a bug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea.
  • Follow the instructions in CONTRIBUTING. Most importantly, ensure the tests and linter pass by running bundle exec rake ci in the gem subdirectory.
  • Update code documentation if necessary.

closes: #14143

@bajajneha27 bajajneha27 requested review from a team as code owners October 18, 2021 07:26
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Oct 18, 2021
@product-auto-label product-auto-label bot added the api: storage Issues related to the Cloud Storage API. label Oct 18, 2021
@bajajneha27 bajajneha27 added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Oct 23, 2021
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Oct 23, 2021
@bajajneha27 bajajneha27 force-pushed the gcs/turbo-replication branch from 29e8c73 to 5289d8e Compare October 25, 2021 13:35
@bajajneha27 bajajneha27 added the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Oct 27, 2021
@bajajneha27 bajajneha27 force-pushed the gcs/turbo-replication branch from 0252267 to 6114bbd Compare October 28, 2021 07:08
@bajajneha27 bajajneha27 changed the title [DO NOT MERGE] feat(storage): add support for RPO (turbo replication). feat(storage): add support for RPO (turbo replication). Oct 28, 2021
@quartzmo
Copy link
Member

LGTM except for nit about copyright year.

@bajajneha27 bajajneha27 force-pushed the gcs/turbo-replication branch from 6114bbd to f9c833b Compare October 29, 2021 05:38
@bajajneha27
Copy link
Contributor Author

Hi @ddelgrosso1 , this PR is ready to be merged now. Please let me know when I can merge it.

@bajajneha27
Copy link
Contributor Author

LGTM except for nit about copyright year.

Done.

Copy link
Contributor

Choose a reason for hiding this comment

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

The getter above can return nil. Is it possible for this setter to set it to nil?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We cannot set it to nil , we get the following error for any value other than DEFAULT or ASYNC_TURBO
Google::Cloud::InvalidArgumentError (invalid: Invalid value for: is not a valid value)

Copy link
Contributor

Choose a reason for hiding this comment

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

Probably because the code says @gapi.rpo = new_rpo.to_s which would attempt to set it to the empty string if you pass nil for new_rpo. What if you changed it to @gapi.rpo = new_rpo&.to_s to preserve nils?

Copy link
Contributor

Choose a reason for hiding this comment

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

Either uncomment or delete

Copy link
Contributor

Choose a reason for hiding this comment

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

s/metdata/metadata/

Or maybe "attribute" is a better term?

Copy link
Contributor

Choose a reason for hiding this comment

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

Probably because the code says @gapi.rpo = new_rpo.to_s which would attempt to set it to the empty string if you pass nil for new_rpo. What if you changed it to @gapi.rpo = new_rpo&.to_s to preserve nils?

@bajajneha27 bajajneha27 force-pushed the gcs/turbo-replication branch from 9ff8744 to df3d105 Compare January 12, 2022 06:51
@bajajneha27 bajajneha27 removed the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Jan 12, 2022
@bajajneha27
Copy link
Contributor Author

The acceptance test case is failing for a different reason which is being tracked with issue #16365

@bajajneha27 bajajneha27 merged commit 96e0d1c into googleapis:main Jan 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: storage Issues related to the Cloud Storage API. cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

storage: Add support for turbo replication

4 participants