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

Solve problem with OKAPI-projects having file-system cross-dependency

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • None
    • Export
    • High
    • FIX: in rare cases OKAPI fails to process projects in situations of high workload. The situation is solved by retrying the process in such cases.

      Problem

      When task has 300+ files occasionally there are random errors on import or export with Okapi (see related issue)

      There seems to be a concurrency issue on Okapi Longhorn side, that causes this problem, when sending different files with the same bconf from different tasks (from the same task we anyway already send only the next file, when the previous returned).

      The errors are:
      net.sf.okapi.common.exceptions.OkapiIOException: java.io.FileNotFoundException: /var/lib/jetty/Okapi-Longhorn-Files/2/config/extensions-mapping.txt
      net.sf.okapi.common.exceptions.OkapiIOException: java.nio.file.FileAlreadyExistsException: /var/lib/jetty/Okapi-Longhorn-Files/2/settings.bconf

      Solution

      • All OKAPI instances in the container use the same project-folder
      • Fix location of "okapi-longhorn-configuration.xml" which is not respected to /var/lib/jetty
      • use UUIDs for projects instead of IDs
      • optional: Patch version-string in the *.war files (unzip them, change in pom.properties, pom.xml & version.properties )

            axelbecher Axel Becher
            volodymyr@mittagqi.com Volodymyr Kyianenko
            Axel Becher
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: