TermTaggers do not run simultaneously

XMLWordPrintable

      In Translate5 I have configured four TermTaggers:

      runtimeOptions.termTagger.url.default[] = "http://localhost:9001"
      runtimeOptions.termTagger.url.default[] = "http://localhost:9002"
      runtimeOptions.termTagger.url.default[] = "http://localhost:9003"
      runtimeOptions.termTagger.url.default[] = "http://localhost:9004"

      confirmed by a debug output of the config array.

      Debug output in editor_Plugins_TermTagger_Worker_TermTaggerImport around the tagterms method shows, that the TermTaggers are called sequentially instead of being called parallel. Some START STOP log entries seemed to be swapped in the log below. This is because of race conditions in writing the log file of parallel workers. The time stamps let assume that calling of the workers is sequentially not parallel!

      This should not be, the desired behavior is, that at least for the first run, there are 3x START logs at once.

      See also TRANSLATE-496 because of missing port 9001.

      [21-Apr-2015 11:42:47 Europe/Vienna] TT START: http://localhost:9003
      [21-Apr-2015 11:42:49 Europe/Vienna] TT STOP : http://localhost:9003
      [21-Apr-2015 11:42:50 Europe/Vienna] Task imported: Archive

      Unknown macro: {871e23d2-de16-4ab5-8864-91c6da2cb03d}

      [21-Apr-2015 11:42:51 Europe/Vienna] TT START: http://localhost:9002
      [21-Apr-2015 11:42:54 Europe/Vienna] TT STOP : http://localhost:9002
      [21-Apr-2015 11:42:56 Europe/Vienna] TT START: http://localhost:9003
      [21-Apr-2015 11:42:57 Europe/Vienna] TT START: http://localhost:9004
      [21-Apr-2015 11:42:57 Europe/Vienna] TT STOP : http://localhost:9003
      [21-Apr-2015 11:42:59 Europe/Vienna] TT STOP : http://localhost:9004
      [21-Apr-2015 11:42:59 Europe/Vienna] TT START: http://localhost:9003
      [21-Apr-2015 11:43:00 Europe/Vienna] TT START: http://localhost:9002
      [21-Apr-2015 11:43:00 Europe/Vienna] TT STOP : http://localhost:9003
      [21-Apr-2015 11:43:02 Europe/Vienna] TT STOP : http://localhost:9002
      [21-Apr-2015 11:43:02 Europe/Vienna] TT START: http://localhost:9004
      [21-Apr-2015 11:43:03 Europe/Vienna] TT STOP : http://localhost:9004
      [21-Apr-2015 11:43:03 Europe/Vienna] TT START: http://localhost:9002
      [21-Apr-2015 11:43:05 Europe/Vienna] TT STOP : http://localhost:9002
      [21-Apr-2015 11:43:05 Europe/Vienna] TT START: http://localhost:9003
      [21-Apr-2015 11:43:06 Europe/Vienna] TT START: http://localhost:9004
      [21-Apr-2015 11:43:06 Europe/Vienna] TT STOP : http://localhost:9003
      [21-Apr-2015 11:43:08 Europe/Vienna] TT STOP : http://localhost:9004
      [21-Apr-2015 11:43:08 Europe/Vienna] TT START: http://localhost:9003
      [21-Apr-2015 11:43:09 Europe/Vienna] TT STOP : http://localhost:9003
      [21-Apr-2015 11:43:10 Europe/Vienna] TT START: http://localhost:9004
      [21-Apr-2015 11:43:11 Europe/Vienna] TT START: http://localhost:9003
      [21-Apr-2015 11:43:11 Europe/Vienna] TT STOP : http://localhost:9004
      [21-Apr-2015 11:43:12 Europe/Vienna] TT STOP : http://localhost:9003
      [21-Apr-2015 11:43:13 Europe/Vienna] TT START: http://localhost:9002
      [21-Apr-2015 11:43:14 Europe/Vienna] TT START: http://localhost:9004
      [21-Apr-2015 11:43:14 Europe/Vienna] TT STOP : http://localhost:9002
      [21-Apr-2015 11:43:15 Europe/Vienna] TT STOP : http://localhost:9004
      [21-Apr-2015 11:43:15 Europe/Vienna] TT START: http://localhost:9002
      [21-Apr-2015 11:43:16 Europe/Vienna] TT STOP : http://localhost:9002
      [21-Apr-2015 11:43:17 Europe/Vienna] TT START: http://localhost:9003
      [21-Apr-2015 11:43:18 Europe/Vienna] TT STOP : http://localhost:9003

            Assignee:
            Thomas Lauria
            Reporter:
            Thomas Lauria
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: