Skip to content

Generation support - #2232

Merged
garrettjonesgoogle merged 3 commits into
googleapis:masterfrom
jean-philippe-martin:jp_generations
Jan 3, 2018
Merged

garrettjonesgoogle merged 3 commits into
googleapis:masterfrom
jean-philippe-martin:jp_generations

Conversation

@jean-philippe-martin

Copy link
Copy Markdown
  • NIO read channel checks on reopen that the generation didn't change
  • Fake (in-memory) storage has basic support for generations

This PR makes the NIO code more robust (it'll detect modifications to files while they're being read), and makes the fake storage (FakeStorageRPC) useful for testing a larger number of scenarios.

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Jul 12, 2017
@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.009%) to 81.201% when pulling ea1752c on jean-philippe-martin:jp_generations into b695138 on GoogleCloudPlatform:master.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.007%) to 81.199% when pulling ea1752c on jean-philippe-martin:jp_generations into b695138 on GoogleCloudPlatform:master.

@garrettjonesgoogle

Copy link
Copy Markdown
Contributor

@jean-philippe-martin , do you have someone on your own team that is familiar with the NIO implementation that can review your changes on an ongoing basis? I think that would help with your agility, and reviewers in your space might be able to dive more deeply than us. Our team can still sanity check before merging.

@jean-philippe-martin

Copy link
Copy Markdown
Author

@garrettjonesgoogle unfortunately no one in my team is familiar with NIO. I'll see if I can find someone else to help.

@jart jart left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This is a very important strengthening measure and I can't believe we never got to this sooner. LGTM

@garrettjonesgoogle

Copy link
Copy Markdown
Contributor

@jean-philippe-martin it looks like conflicts need to be resolved before this can be merged.

- NIO read channel checks on reopen that the generation didn't change
- Fake (in-memory) storage has basic support for generations
@jean-philippe-martin

Copy link
Copy Markdown
Author

This version should resolve the conflict; let's check that the tests still pass.

@garrettjonesgoogle

Copy link
Copy Markdown
Contributor

LGTM - I'll merge after tests run

@jean-philippe-martin

Copy link
Copy Markdown
Author

Excellent, thank you very much @garrettjonesgoogle ! And happy new year!

@jean-philippe-martin

Copy link
Copy Markdown
Author

The tests failed. I see failures in com.google.cloud.logging.v2.ConfigClientTest, com.google.cloud.datastore.DatastoreTest, and com.google.cloud.pubsub.v1.SubscriberTest. They seem unrelated to the change. Is it possible these tests might report false positives?

@garrettjonesgoogle

Copy link
Copy Markdown
Contributor

The Travis tests passed. That's good enough for me.

@garrettjonesgoogle
garrettjonesgoogle merged commit 431a69f into googleapis:master Jan 3, 2018
@jean-philippe-martin

Copy link
Copy Markdown
Author

Great, thank you!

@jean-philippe-martin
jean-philippe-martin deleted the jp_generations branch January 3, 2018 18:40
suztomo pushed a commit to suztomo/google-cloud-java that referenced this pull request Mar 23, 2026
Adds the ByteBuddy dependency that is needed for some test workarounds for mTLS.
suztomo pushed a commit that referenced this pull request Mar 30, 2026
lqiu96 pushed a commit that referenced this pull request Apr 1, 2026
meltsufin pushed a commit that referenced this pull request Apr 29, 2026
#2232)

* chore: Update generation configuration at Wed Oct 16 02:27:51 UTC 2024

* chore: generate libraries at Wed Oct 16 02:28:13 UTC 2024

* chore: Update generation configuration at Thu Oct 17 02:26:59 UTC 2024

* chore: generate libraries at Thu Oct 17 02:27:22 UTC 2024

* chore: Update generation configuration at Fri Oct 18 02:27:26 UTC 2024

* chore: Update generation configuration at Sat Oct 19 02:25:30 UTC 2024
meltsufin pushed a commit that referenced this pull request May 1, 2026
#2232)

* chore: Update generation configuration at Wed Oct 16 02:27:51 UTC 2024

* chore: generate libraries at Wed Oct 16 02:28:13 UTC 2024

* chore: Update generation configuration at Thu Oct 17 02:26:59 UTC 2024

* chore: generate libraries at Thu Oct 17 02:27:22 UTC 2024

* chore: Update generation configuration at Fri Oct 18 02:27:26 UTC 2024

* chore: Update generation configuration at Sat Oct 19 02:25:30 UTC 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants