Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(storage): fix adding multiple range on stream with same read id (g…
…oogleapis#11584) 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.
- Loading branch information