[Java] Compression closes uncompressed buffers
- Dominant language
- Java
- Stars
- 94
- Forks
- 152
- Avg merge
- 3d 16h
- Merged PRs (30d)
- 11
Description
_AbstractCompressionCodec_ closes underlying _uncompressedBuffer_ which leads to closed buffers in _VectorSchemaRoot_ via {_}VectorUnloader{_}. There isn't such behavior in _NoCompressionCodec_ passing underlying buffers untouched.
**Reporter**: [Michal Zaborec](https://issues.apache.org/jira/browse/ARROW-18142)
**Note**: *This issue was originally created as [ARROW-18142](https://issues.apache.org/jira/browse/ARROW-18142). Please see the [migration documentation](https://github.com/apache/arrow/issues/14542) for further details.*
Contributor guide
Research direction
Start by reading AbstractCompressionCodec and compare its handling of uncompressedBuffer with NoCompressionCodec. Trace how VectorUnloader passes buffers into VectorSchemaRoot, then verify that compressed-codec use does not close the underlying buffers and that the corresponding behavior is covered by tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 32/100