apache / apache/beam

[Bug]: zstandard test case in test_concatenated_compressed_file() fails in debug mode

Open
#22,939 1 comment 0 reactions 1 assignee Claimed by @TheNeuralBit View on GitHub
bug failing test io P2 python
Dominant language
Java
Stars
8.7k
Forks
4.7k
Avg merge
1d 20h
Merged PRs (30d)
196

Description

### What happened?

[test_concatenated_compressed_file() in filesystem_test.py](https://github.com/apache/beam/blob/master/sdks/python/apache_beam/io/filesystem_test.py#L489) violates an assert statement in [zstandard's decompressionobj.c function](https://github.com/indygreg/python-zstandard/blob/0.18.0/c-ext/decompressobj.c#L98) and can fail if using a version of zstandard compiled without the NDEBUG flag. This demonstrates that the usage of zstandard is performing behavior that the library itself considers impossible and points towards potential issues.

### Issue Priority

Priority: 2

### Issue Component

Component: test-failures

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.