Skip to content

COMPRESS-407 - Just Warn#41

Closed
sesuncedu wants to merge 2 commits into
apache:masterfrom
sesuncedu:COMPRESS-407-WARN
Closed

COMPRESS-407 - Just Warn#41
sesuncedu wants to merge 2 commits into
apache:masterfrom
sesuncedu:COMPRESS-407-WARN

Conversation

@sesuncedu
Copy link
Copy Markdown
Contributor

Warn if an invalid record size is set.

I would not recommend using this approach.

Require block size >=0 that is multiple of 512 bytes.
Use block size of 512 if one is not given.
Require record size of 512 bytes. Deprecate constructors taking recordSize as parameter

Modify tests to check for enforcement of record size == 512
Modify tests to check for correct overall length  for
different block sizes including PAX default, USTAR default, and unspecified.

Signed-off-by: Simon Spero <sesuncedu@gmail.com>

(cherry picked from commit d754d89)
Signed-off-by: Simon Spero <sesuncedu@gmail.com>
…ust log a warning.

Signed-off-by: Simon Spero <sesuncedu@gmail.com>
@coveralls
Copy link
Copy Markdown

coveralls commented Jun 23, 2017

Coverage Status

Coverage decreased (-0.02%) to 84.704% when pulling abab942 on sesuncedu:COMPRESS-407-WARN into 4be9979 on apache:master.

@asfgit asfgit closed this in fb9b618 Jun 24, 2017
sesuncedu pushed a commit to sesuncedu/commons-compress that referenced this pull request Jun 24, 2017
@sesuncedu sesuncedu deleted the COMPRESS-407-WARN branch June 24, 2017 21:05
sesuncedu pushed a commit to sesuncedu/commons-compress that referenced this pull request Jun 25, 2017
sesuncedu pushed a commit to sesuncedu/commons-compress that referenced this pull request Jun 25, 2017
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.

2 participants