You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug] Final spill flush failure leaves the output channel open #11363
Core Java spill path, JDK 11. Reachable from primary-key write-buffer spilling and ordinary append clustering.
Minimal reproduce step
Create a ChannelWriterOutputView with LZ4 compression and a real BufferFileWriterImpl channel. Buffer a value, then make the final block write fail when close() flushes it. A failing getSize() has the same cleanup problem.
ChannelWriterOutputViewTest injects these failures into a writer backed by a real temporary FileChannel. It also forces the failure through BinaryExternalSortBuffer.flushMemory while its caller-owned IOManager remains open.
What doesn't meet your expectations?
The write/size exception escapes before writer.close(), leaving the physical channel open. closeAndDelete() then rejects deletion of that open channel and replaces the original failure. The sorter can retry the failing close before it reaches deletion.
The output channel should close even when its final flush or size lookup fails, preserving the first exception and attaching a distinct close failure as suppressed.
Anything else?
This is a final output-flush cleanup failure. It is separate from #7664's caller-owned IOManager directory lifetime and #10977's lookup merge-reader reset. The fault injection does not simulate an operating-system disk-full event, and it does not close the shared IOManager.
Activity