Commit 46db1ea
committed
fix(server): advance partition offset on empty dedup batch and fix journal offset tracking
- When all messages in a batch are duplicates, advance partition offset
past the assigned (but removed) offset range to prevent offset reuse
in subsequent batches
- Fix journal current_offset to use actual last offset from batch
instead of arithmetic that ignores gaps created by dedup removal
Signed-off-by: shin <sars21@hanmail.net>1 parent 0a4a0dc commit 46db1ea
2 files changed
Lines changed: 12 additions & 45 deletions
File tree
- core
- integration/tests/server/scenarios
- server/src/streaming/partitions
Lines changed: 5 additions & 41 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
| 122 | + | |
159 | 123 | | |
160 | 124 | | |
161 | 125 | | |
| |||
165 | 129 | | |
166 | 130 | | |
167 | 131 | | |
168 | | - | |
| 132 | + | |
169 | 133 | | |
170 | 134 | | |
171 | 135 | | |
| |||
179 | 143 | | |
180 | 144 | | |
181 | 145 | | |
182 | | - | |
| 146 | + | |
183 | 147 | | |
184 | 148 | | |
185 | 149 | | |
186 | 150 | | |
187 | 151 | | |
188 | 152 | | |
189 | 153 | | |
190 | | - | |
191 | | - | |
| 154 | + | |
| 155 | + | |
192 | 156 | | |
193 | 157 | | |
194 | 158 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
88 | 90 | | |
89 | 91 | | |
90 | 92 | | |
91 | | - | |
92 | | - | |
| 93 | + | |
| 94 | + | |
93 | 95 | | |
94 | 96 | | |
95 | 97 | | |
| |||
99 | 101 | | |
100 | 102 | | |
101 | 103 | | |
| 104 | + | |
102 | 105 | | |
103 | 106 | | |
104 | 107 | | |
105 | 108 | | |
106 | 109 | | |
107 | 110 | | |
108 | 111 | | |
109 | | - | |
| 112 | + | |
110 | 113 | | |
111 | 114 | | |
112 | 115 | | |
| |||
0 commit comments