Commit 74e4421
authored
fix: apply functions for routed streams (#4202)
Fixes #4129
- Current workflow for the pipelining -
ingestion to the main stream -> apply functions of main stream with
`apply_before_flattening` flag -> flatten data -> routing -> apply rest
of the functions of the routed stream. `apply_before_flattening`
functions will be ignored for the routed stream because data is already
flattened before routing.
- Fix of bug: For non-bulk apis for log ingestion, if the first record
is routed (i.e. the routing condition matched), the rest of the records
also are routed even if the condition does not match.
- Fix of bug: For json log ingestion, routing was happening before
flattening of stream data, this PR fixes that.
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
- **New Features**
- Enhanced stream processing functionality with improved control flow
and routing logic.
- Introduced structured management of stream transformations using
HashMaps for better clarity and maintainability.
- **Bug Fixes**
- Improved robustness of stream processing by ensuring all relevant
streams are processed without premature termination.
- **Chores**
- Renamed variables for clarity regarding their roles in stream
processing.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->1 parent 8a8c11a commit 74e4421
File tree
6 files changed
+254
-156
lines changed- src/service
- ingestion
- logs
6 files changed
+254
-156
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
152 | | - | |
| 152 | + | |
| 153 | + | |
153 | 154 | | |
154 | 155 | | |
155 | 156 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
168 | | - | |
| 168 | + | |
169 | 169 | | |
170 | | - | |
| 170 | + | |
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
| |||
201 | 201 | | |
202 | 202 | | |
203 | 203 | | |
| 204 | + | |
204 | 205 | | |
205 | 206 | | |
206 | 207 | | |
| |||
214 | 215 | | |
215 | 216 | | |
216 | 217 | | |
217 | | - | |
| 218 | + | |
218 | 219 | | |
219 | 220 | | |
220 | 221 | | |
221 | 222 | | |
222 | 223 | | |
223 | 224 | | |
224 | 225 | | |
| 226 | + | |
| 227 | + | |
225 | 228 | | |
226 | 229 | | |
227 | 230 | | |
| |||
231 | 234 | | |
232 | 235 | | |
233 | 236 | | |
234 | | - | |
| 237 | + | |
235 | 238 | | |
236 | 239 | | |
237 | 240 | | |
238 | 241 | | |
239 | 242 | | |
240 | 243 | | |
241 | | - | |
| 244 | + | |
242 | 245 | | |
243 | 246 | | |
244 | 247 | | |
| |||
265 | 268 | | |
266 | 269 | | |
267 | 270 | | |
268 | | - | |
| 271 | + | |
269 | 272 | | |
270 | 273 | | |
271 | 274 | | |
| |||
276 | 279 | | |
277 | 280 | | |
278 | 281 | | |
279 | | - | |
| 282 | + | |
280 | 283 | | |
281 | 284 | | |
282 | 285 | | |
| |||
295 | 298 | | |
296 | 299 | | |
297 | 300 | | |
298 | | - | |
| 301 | + | |
299 | 302 | | |
300 | 303 | | |
301 | 304 | | |
| |||
311 | 314 | | |
312 | 315 | | |
313 | 316 | | |
314 | | - | |
| 317 | + | |
315 | 318 | | |
316 | 319 | | |
317 | 320 | | |
| |||
320 | 323 | | |
321 | 324 | | |
322 | 325 | | |
323 | | - | |
| 326 | + | |
324 | 327 | | |
325 | 328 | | |
326 | 329 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
77 | 76 | | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
85 | 80 | | |
86 | 81 | | |
87 | 82 | | |
| |||
113 | 108 | | |
114 | 109 | | |
115 | 110 | | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
116 | 121 | | |
117 | 122 | | |
118 | 123 | | |
| |||
171 | 176 | | |
172 | 177 | | |
173 | 178 | | |
| 179 | + | |
174 | 180 | | |
175 | 181 | | |
176 | 182 | | |
177 | 183 | | |
178 | 184 | | |
179 | 185 | | |
180 | 186 | | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
181 | 213 | | |
182 | | - | |
| 214 | + | |
183 | 215 | | |
184 | 216 | | |
185 | 217 | | |
| |||
191 | 223 | | |
192 | 224 | | |
193 | 225 | | |
194 | | - | |
| 226 | + | |
195 | 227 | | |
196 | 228 | | |
197 | 229 | | |
198 | 230 | | |
199 | 231 | | |
200 | 232 | | |
201 | 233 | | |
| 234 | + | |
202 | 235 | | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
217 | 251 | | |
| 252 | + | |
| 253 | + | |
218 | 254 | | |
219 | 255 | | |
220 | 256 | | |
| |||
224 | 260 | | |
225 | 261 | | |
226 | 262 | | |
227 | | - | |
| 263 | + | |
228 | 264 | | |
229 | 265 | | |
230 | 266 | | |
| |||
238 | 274 | | |
239 | 275 | | |
240 | 276 | | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
241 | 285 | | |
242 | | - | |
| 286 | + | |
243 | 287 | | |
244 | 288 | | |
245 | | - | |
| 289 | + | |
246 | 290 | | |
247 | 291 | | |
248 | 292 | | |
| |||
312 | 356 | | |
313 | 357 | | |
314 | 358 | | |
315 | | - | |
316 | | - | |
| 359 | + | |
317 | 360 | | |
318 | 361 | | |
319 | 362 | | |
320 | 363 | | |
321 | 364 | | |
322 | | - | |
323 | 365 | | |
324 | | - | |
325 | | - | |
326 | | - | |
327 | | - | |
328 | | - | |
329 | | - | |
330 | | - | |
331 | | - | |
332 | | - | |
333 | | - | |
334 | | - | |
335 | | - | |
336 | | - | |
| 366 | + | |
337 | 367 | | |
338 | | - | |
| 368 | + | |
339 | 369 | | |
340 | 370 | | |
341 | 371 | | |
| |||
0 commit comments