Commit 73dae42
committed
RPC: Fix Python get_object_from_java missing END_OF_OBJECT on batch boundary
When serialized data items are an exact multiple of the handler's
batchSize, END_OF_OBJECT ends up alone in a separate batch that
receiver.receive() never pulls. Drain the pending batch after
receive() completes — analogous to Java/JS's explicit q.take().
Add integration test with small batchSize to exercise the fix.1 parent 2ed9e10 commit 73dae42
1 file changed
Lines changed: 9 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
199 | 208 | | |
200 | 209 | | |
201 | 210 | | |
202 | 211 | | |
203 | 212 | | |
204 | 213 | | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | 214 | | |
211 | 215 | | |
212 | 216 | | |
| |||
0 commit comments