Uploaded image for project: 'Pentaho Data Integration - Kettle'
  1. Pentaho Data Integration - Kettle
  2. PDI-11432

Append Files to an existing Zip File overwrite the zip file instead



    • Type: Bug
    • Status: Closed
    • Severity: High
    • Resolution: Cannot Reproduce
    • Affects Version/s: 5.0.1 GA
    • Fix Version/s: 7.0.0 GA
    • Component/s: Job
    • Labels:
    • PDI Sub-component:
    • Notice:
      When an issue is open, the "Fix Version/s" field conveys a target, not necessarily a commitment. When an issue is closed, the "Fix Version/s" field conveys the version that the issue was fixed in.
    • Operating System/s:
      SuSE Enterprise 10


      At the end of my ETL process, I add the log file produced by pan to a zip file. The zip is rotated on a monthly basis, so the log produced each days are appended to the already created zip file from the first day of the month

      In the Advanced tab of the Create Zip File dialog, i've selected

      Compression: Default Compression
      If zip file exists: Append file to the existing
      After Zipping: Delete files

      When I execute the job, I have the following error:

      2014/02/12 10:35:42 - Evaluate files metrics - ERROR (version 5.0.1-stable, build 1 from 2013-11-15_16-08-58 by buildguy) : could not rename the file [/path/to/job/log/FILES_2014_02.zip] to [/tmp/FILES_2014_02.zip4968273483478093606.tmp]

      I don't know why it tries to rename and move the zip file to /tmp . I tried to rename it manually and I got no error. So it's not a permission issue. The end result is the zip file in /path/to/job/log/FILES_2014_02.zip only have the log of the current day. All the previous log files already in the zip disappeared.

      Because I did choose to delete the files after zipping, I don't have log anymore.. !




            upihin Uladzimir Pihin (Inactive)
            patlaf Patrick Lafontaine
            1 Vote for this issue
            10 Start watching this issue