Skip to content

fix(storage): fix adding multiple range on stream with same read id - #11584

Merged
gcf-merge-on-green[bot] merged 8 commits into
googleapis:mainfrom
shubham-diwakar:fix-nil-pointer
Feb 24, 2025
Merged

fix(storage): fix adding multiple range on stream with same read id#11584
gcf-merge-on-green[bot] merged 8 commits into
googleapis:mainfrom
shubham-diwakar:fix-nil-pointer

Conversation

@shubham-diwakar

Copy link
Copy Markdown
Contributor

Issue:

  1. If we get a read add call we put it in map mr.mp[curentID] = spec
  2. And if at that same point we receive an error from server we go into retry loop and close the stream manager go-routine.
  3. During retry we see this new entry in map which is also retried.
  4. Basically this creates two instances of curentID which we send to server. One due to add call one due to retry.

Fix:

  1. Remove adding the current id in map in add call. As that can create duplicates as seen above.
  2. Ignore the values from server in case entry is not found in map, given user will be notified if an entry is not in map by the help of callback.

@product-auto-label product-auto-label Bot added the api: storage Issues related to the Cloud Storage API. label Feb 11, 2025
@shubham-diwakar
shubham-diwakar marked this pull request as ready for review February 11, 2025 17:23
@shubham-diwakar
shubham-diwakar requested review from a team February 11, 2025 17:23
Comment thread storage/grpc_client.go Outdated
Comment thread storage/grpc_client.go
@shubham-diwakar

Copy link
Copy Markdown
Contributor Author

Thanks for taking a look!!

@tritone tritone added the kokoro:run Add this label to force Kokoro to re-run the tests. label Feb 11, 2025
@kokoro-team kokoro-team removed the kokoro:run Add this label to force Kokoro to re-run the tests. label Feb 11, 2025
@tritone tritone added automerge Merge the pull request once unit tests and other checks pass. kokoro:force-run Add this label to force Kokoro to re-run the tests. labels Feb 24, 2025
@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Feb 24, 2025
@gcf-merge-on-green
gcf-merge-on-green Bot merged commit 0bb3434 into googleapis:main Feb 24, 2025
@gcf-merge-on-green gcf-merge-on-green Bot removed the automerge Merge the pull request once unit tests and other checks pass. label Feb 24, 2025
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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants