elastic / elastic/go-docappender

feat: add support for compression level -2 (HuffmanOnly)

Open
#14 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
11
Forks
20
PR merge metrics
No merged PRs in 30d

Description

The docappender is rejecting `-2` as a value for `CompressionLevel` despite it being a valid value for gzip compression in the standard library.

The validation logic should be updated to accept `-2`: https://github.com/elastic/go-docappender/blob/c563b1848e65b82232bae1f60e6eaeb2a08980c8/appender.go#L86

Contributor guide

No contributing guide indexed for this repository

Research direction

Open appender.go around line 86 and inspect the CompressionLevel validation logic. Update the accepted values so -2 is treated as valid, then verify that the docappender no longer rejects HuffmanOnly compression.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
backend
Issue type
Feature
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.