Uploaded image for project: 'translate5'
  1. translate5
  2. TRANSLATE-4117

Race condition in Segment Processing functionality

    XMLWordPrintable

Details

    • Critical
    • Fix race condition in segment processing

    Description

      problem

      When segments are fetched for processing transaction not in play.
      that resulted in failing test of quality analysis in some plugins

      reason

      The FOR UPDATE clause of SELECT applies only when autocommit is set to 0 or the SELECT is enclosed in a transaction. A lock is acquired on the rows, and other transactions are prevented from writing the rows, acquire locks, and from reading them (unless their isolation level is READ UNCOMMITTED).
      See https://mariadb.com/kb/en/for-update/

      Attachments

        Activity

          People

            sanya@mittagqi.com Sanya Mikhliaiev
            sanya@mittagqi.com Sanya Mikhliaiev
            Leon Kiz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: