Commit 7f6f65f
authored
ensures onLastAssembly does not break fusion chain (#3156)
as it was observed, `onLastOperator` may add extra operators to the chain. In the case of scalar fusion at flatMap operators (main/reactor-core/src/main/java/reactor/core/publisher/FluxFlatMap.java#L118) the inner chain may be fused with the outer downstream. Since `onLastOperator` must be applied to the inner chain, modification added by the call may break fusion which leads to the ClastCastException1 parent 4768c43 commit 7f6f65f
3 files changed
Lines changed: 36 additions & 2 deletions
File tree
- reactor-core/src
- main/java/reactor/core/publisher
- test/java/reactor/core/publisher
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8445 | 8445 | | |
8446 | 8446 | | |
8447 | 8447 | | |
| 8448 | + | |
| 8449 | + | |
| 8450 | + | |
| 8451 | + | |
8448 | 8452 | | |
8449 | 8453 | | |
8450 | 8454 | | |
| |||
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4375 | 4375 | | |
4376 | 4376 | | |
4377 | 4377 | | |
| 4378 | + | |
| 4379 | + | |
| 4380 | + | |
| 4381 | + | |
4378 | 4382 | | |
4379 | 4383 | | |
4380 | 4384 | | |
| |||
Lines changed: 28 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
74 | 73 | | |
75 | 74 | | |
76 | 75 | | |
| |||
142 | 141 | | |
143 | 142 | | |
144 | 143 | | |
| 144 | + | |
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
| |||
1254 | 1254 | | |
1255 | 1255 | | |
1256 | 1256 | | |
| 1257 | + | |
| 1258 | + | |
| 1259 | + | |
| 1260 | + | |
| 1261 | + | |
| 1262 | + | |
| 1263 | + | |
| 1264 | + | |
| 1265 | + | |
| 1266 | + | |
| 1267 | + | |
| 1268 | + | |
| 1269 | + | |
| 1270 | + | |
| 1271 | + | |
| 1272 | + | |
| 1273 | + | |
| 1274 | + | |
| 1275 | + | |
| 1276 | + | |
| 1277 | + | |
| 1278 | + | |
| 1279 | + | |
| 1280 | + | |
| 1281 | + | |
| 1282 | + | |
1257 | 1283 | | |
0 commit comments