Uploaded image for project: 'Instrument control development'
  1. Instrument control development
  2. INSTRM-1289

archiver shutdown should not delete cache files until after commit

    XMLWordPrintable

    Details

    • Story Points:
      2

      Description

      The archiver stages all db traffic to per-key data files, so if the DB goes away the data can later be flushed. When the archiver shuts down it makes a new connection to the db and flushes all the files. But it flushes all of them inside a single transaction, and deletes the cache files as it reads them: if anything goes wrong in the transaction the whole flush is rolled back, but the files are then gone and all pending data is lost.

      Move the file deletion to a step after the transaction has been successfully committed.

        Attachments

          Activity

            People

            • Assignee:
              cloomis cloomis
              Reporter:
              cloomis cloomis
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: