Commit 32c4247
committed
core: failed to start if box.info.replication with gaps
The iterator in `queue/queue/abstract/queue_state.lua:49` does not
handle the case where there are no records in the box.info.replication
table in case of deleting old records, for examle:
```
- 1:
id: 1
uuid: 77f30d9a-d344-4f7a-a18c-578fb5ec2540
lsn: 4
name: null
3:
id: 3
uuid: 0ce528ca-ea35-42be-96b5-35ba610f9a3e
lsn: 0
downstream:
status: follow
idle: 0.14953243732452
vclock: {1: 4}
lag: 0.0015106201171875
name: null
```
It leads to the error and unable to start queue:
```
queue_state.lua:50: attempt to index a nil value
```1 parent 2292cf0 commit 32c4247
2 files changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
51 | | - | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
| |||
0 commit comments