Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-10273

MergeContent tar compression fails on FlowFiles > 8.5GB

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.16.3
    • 1.19.0
    • Extensions
    • None

    Description

      When attempting to tar compress FlowFiles > 8.5GB, MergeContent fails with the following error:

       java.lang.RuntimeException: entry size '<FlowFileSize>' is too big (> 8589934591)

      This is because apache commons-compress library has a hard maximum :

      https://commons.apache.org/proper/commons-compress/apidocs/src-html/org/apache/commons/compress/archivers/tar/TarConstants.html#line.94

      077777777777 octal bytes is 8589934591 decimal bytes (~8.5GB).

      This can be addressed by configuring a BigNumberMode on the TarArchiveOutputStream:

      https://commons.apache.org/proper/commons-compress/javadocs/api-1.10/org/apache/commons/compress/archivers/tar/TarArchiveOutputStream.html#setBigNumberMode(int)

      Here's an example of another project doing this:

      https://github.com/DataConservancy/dcs-packaging-tool/pull/36/files

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              m-hogue Michael Hogue
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2.5h
                  2.5h