Skip to content

Commit

Permalink
Fix issue with large user/group ids with tar (#601)
Browse files Browse the repository at this point in the history
  • Loading branch information
aprudhomme authored Oct 18, 2023
1 parent c5270cf commit 7278ad8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/com/yelp/nrtsearch/server/backup/TarImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,10 @@ public void buildTar(
if (!Files.exists(sourceDir)) {
throw new IOException("source path doesn't exist: " + sourceDir);
}
// Since commons-compress version 1.21, user/group ids are added for archive entries.
// Without enabling big number support, adding files will fail if these ids exceed
// 2097151. https://issues.apache.org/jira/browse/COMPRESS-587
tarArchiveOutputStream.setBigNumberMode(TarArchiveOutputStream.BIGNUMBER_POSIX);
addFilestoTarGz(
sourceDir.toString(),
"",
Expand Down

0 comments on commit 7278ad8

Please sign in to comment.