Uploaded image for project: 'YADE - Yet Another Data Exchange Tool'
  1. YADE - Yet Another Data Exchange Tool
  2. YADE-247

YADE parameter transaction=true should roll back a transfer if one of the files cannot be written

    XMLWordPrintable

Details

    Description

      Use case

      1. User want to transfer three files i.e.
        • SOS-100_22.01.2015.xls
        • SOS-100_23.01.2015.xls
        • SOS-100_24.01.2015.xls
      • If user specify transactional = true and atomic_suffix = .tmp parameters to ensure either all THREE files are transferred or non of them. In case of unsuccessful file transfer YADE should rollback the transaction and delete all successful transferred and temporary files
        [jadeHistory]
        include                = MailSettings
        operation            = copy
        file_list_name     = /home/sos/data/from_galadriel/list.txt
        transactional       = true
        atomic_suffix      = .tmp
        

      JADE CLI

      YADE Command line execution

      /home/sos/sos-berlin.com/jade_client/jade_current/bin/jade.sh -settings=/home/sos/sos-berlin.com/jade_client/config/1210_jade_settings_copy_galadriel_to_mp.ini -profile=copy_from__Galadriel_to_mp

      Positive Test

      1. Start the YADE CLI with as specified in the YADE CLI, YADE will transfer three files without error and also write log message.

      Negative Test

      1. Start the YADE CLI with following configuration, YADE will transfer three files without error
      2. Open any of the file in a Windows application i.e. Notepad++, Excel. The windows application will not allow any other process to overwrite the file
      3. Start the YADE with same settings as previous step, YADE will transfer three files and also log that files are successfully transfer.
      4. Check the target windows system , there will be 4 files
        • 2 files which are successful transferred
          • SOS-100_23.01.2015.xls
          • SOS-100_24.01.2015.xls
        • 1 file opened in the windows application
          • SOS-100_22.01.2015.xls
        • 1 file transferred by JADE but couldn't overwrite , with atomic_suffix=.tmp
          • SOS-100_24.01.2015.xls.tmp

      Attachments

        Activity

          People

            oh Oliver Haufe
            mp Mahendra Patidar
            Oliver Haufe Oliver Haufe
            Oliver Haufe Oliver Haufe
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 7 hours
                7h
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 7 hours
                7h