Skip to content

Conversation

@fressi-elastic
Copy link
Contributor

@fressi-elastic fressi-elastic commented Jan 30, 2026

pbzip2 on some systems (e.g. macOS/Homebrew) has a hard-coded memory limit of 2000MB. Passing -m with a larger value caused decompression to fail and Rally to loop instead of falling back to the standard library. Dropping the -m flag lets pbzip2 use its default memory limit.

Fixes #2030

pbzip2 on some systems (e.g. macOS/Homebrew) has a hard-coded memory
limit of 2000MB. Passing -m with a larger value caused decompression
to fail and Rally to loop instead of falling back to the standard
library. Dropping the -m flag lets pbzip2 use its default memory limit.
@fressi-elastic fressi-elastic requested review from a team, gareth-ellis and inqueue January 30, 2026 08:43
@fressi-elastic fressi-elastic marked this pull request as ready for review January 30, 2026 08:44
@fressi-elastic fressi-elastic enabled auto-merge (squash) January 30, 2026 08:49
Copy link
Member

@gareth-ellis gareth-ellis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I dont quite understand how this has become an issue right now - since the most recent pbzip release was in 2015 - however reading the source code, if we dont set the memory limit, it will default to 100MB, but then ramp up if we provide -p# for the number of cores - why don't we keep the max at 2000?

@fressi-elastic
Copy link
Contributor Author

I dont quite understand how this has become an issue right now - since the most recent pbzip release was in 2015 - however reading the source code, if we dont set the memory limit, it will default to 100MB, but then ramp up if we provide -p# for the number of cores - why don't we keep the max at 2000?

Which are possible issues not setting it? Some out of memory could happen? Is there any track that will create the issue? May be we are just overthinking and this is not required. How we can know why it has been introduced? If it is a corner case, should we make it configurable?

@fressi-elastic
Copy link
Contributor Author

I didn't realize there where already a fix for this from Jason: #2028

@fressi-elastic
Copy link
Contributor Author

The issue has been closed after #2028, so I close this. The solution merged to master branch looks good to me.

auto-merge was automatically disabled January 30, 2026 12:16

Pull request was closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pbzip2 decompression failure due to memory limit flags

2 participants