Commit 0bb3434
authored
fix(storage): fix adding multiple range on stream with same read id (#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.1 parent d14e91c commit 0bb3434
1 file changed
+15
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1206 | 1206 | | |
1207 | 1207 | | |
1208 | 1208 | | |
| 1209 | + | |
1209 | 1210 | | |
1210 | 1211 | | |
1211 | 1212 | | |
| |||
1287 | 1288 | | |
1288 | 1289 | | |
1289 | 1290 | | |
| 1291 | + | |
| 1292 | + | |
| 1293 | + | |
| 1294 | + | |
| 1295 | + | |
1290 | 1296 | | |
1291 | 1297 | | |
1292 | 1298 | | |
| |||
1337 | 1343 | | |
1338 | 1344 | | |
1339 | 1345 | | |
| 1346 | + | |
| 1347 | + | |
1340 | 1348 | | |
1341 | 1349 | | |
1342 | 1350 | | |
| |||
1443 | 1451 | | |
1444 | 1452 | | |
1445 | 1453 | | |
1446 | | - | |
| 1454 | + | |
1447 | 1455 | | |
1448 | 1456 | | |
1449 | | - | |
1450 | | - | |
| 1457 | + | |
1451 | 1458 | | |
1452 | 1459 | | |
1453 | 1460 | | |
| |||
1458 | 1465 | | |
1459 | 1466 | | |
1460 | 1467 | | |
1461 | | - | |
| 1468 | + | |
| 1469 | + | |
| 1470 | + | |
| 1471 | + | |
1462 | 1472 | | |
1463 | 1473 | | |
1464 | 1474 | | |
1465 | 1475 | | |
1466 | | - | |
| 1476 | + | |
1467 | 1477 | | |
1468 | 1478 | | |
1469 | 1479 | | |
| |||
0 commit comments