UIMA
  1. UIMA
  2. UIMA-1728

UIMA AS Service logs falsely Stopping Collocated Delegate Cas Multiplier message

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.3AS
    • Fix Version/s: 2.3.1AS
    • Component/s: Async Scaleout
    • Labels:
      None

      Description

      The service has one CM which creates for every CAS one new CAS and a dummy AE which throws an exception on every second CAS.
      It looks like that for each exception thrown from the AE.process method the stopping collocated delegate CM message is printed
      and logged:

      >>> Instance Hashcode:28681226 Controller:TestAAE Stopping Collocated Delegate Cas Multiplier:TestCM
      and
      1/25/10 1:14:51 PM - 13: org.apache.uima.aae.controller.AggregateAnalysisEngineController_impl.stopCasMultiplier: INFO: Controller: TestAAE Stopping Collocated Delegate Cas Multiplier: TestAAE

      The problem might relate to the hang issue reported here:
      http://markmail.org/message/5dr5r3yyha4kbtlb

      1. test.zip
        5 kB
        Joern Kottmann

        Activity

        Hide
        Jerry Cwiklik added a comment -

        Modified log message when sending a request to CM to stop producing CASes from an input CAS. Removed logging to stdout.

        Show
        Jerry Cwiklik added a comment - Modified log message when sending a request to CM to stop producing CASes from an input CAS. Removed logging to stdout.
        Hide
        Joern Kottmann added a comment -

        The message is also logged to the console, but the exception from the process method is not logged to the console.
        The message should not be logged to the console, or together with the exception.

        Show
        Joern Kottmann added a comment - The message is also logged to the console, but the exception from the process method is not logged to the console. The message should not be logged to the console, or together with the exception.
        Hide
        Joern Kottmann added a comment -

        Jerry:

        "What is happening in your scenario
        is the following:

        1) CM receives input CAS C1
        2) The CM generates a new CAS C2
        3) C2 is sent to Delegate Service D1
        4) D1 throws exception on C2
        5) Aggregate receives exception from D1 and sends STOP message to CM asking
        it to stop producing
        new CASes from C1. This message is not sent to stop the CM!
        6) CM returns C1 to the Aggregate
        7) Aggregate determines that C1 has been marked as failed ( because of C2
        failure)
        8) Aggregate returns C1 marked as failed to the client

        The confusion is the message that the aggregate logs: Stopping Collocated
        Delegate Cas Multiplier:
        It should say something like, Sending Request to CM to Stop Generating New
        CASes from CAS id: xxx
        "

        Show
        Joern Kottmann added a comment - Jerry: "What is happening in your scenario is the following: 1) CM receives input CAS C1 2) The CM generates a new CAS C2 3) C2 is sent to Delegate Service D1 4) D1 throws exception on C2 5) Aggregate receives exception from D1 and sends STOP message to CM asking it to stop producing new CASes from C1. This message is not sent to stop the CM! 6) CM returns C1 to the Aggregate 7) Aggregate determines that C1 has been marked as failed ( because of C2 failure) 8) Aggregate returns C1 marked as failed to the client The confusion is the message that the aggregate logs: Stopping Collocated Delegate Cas Multiplier: It should say something like, Sending Request to CM to Stop Generating New CASes from CAS id: xxx "

          People

          • Assignee:
            Jerry Cwiklik
            Reporter:
            Joern Kottmann
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development