Skip to content

Commit

Permalink
YARN-11369. Commons.compress throws an IllegalArgumentException with …
Browse files Browse the repository at this point in the history
…large uids after 1.21. Contributed by Benjamin Teke
  • Loading branch information
szilard-nemeth committed Nov 16, 2022
1 parent cd92945 commit 142df24
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,8 @@ void buildPackage()
LOG.info("Compressing tarball");
try (TarArchiveOutputStream out = new TarArchiveOutputStream(
targetStream)) {
// Workaround for the compress issue present from 1.21: COMPRESS-587
out.setBigNumberMode(TarArchiveOutputStream.BIGNUMBER_STAR);
for (String fullPath : filteredInputFiles) {
LOG.info("Adding " + fullPath);
File file = new File(fullPath);
Expand Down

0 comments on commit 142df24

Please sign in to comment.