Uploaded image for project: 'UIMA'
  1. UIMA
  2. UIMA-4866

UIMA DUCC: Agent rogue detector not working

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.1.0-Ducc
    • Component/s: DUCC
    • Labels:
      None

      Description

      Looks like the rogue process detector does not actually initiate process kill when it detects a rogue process.
      The detector does not mark a rogue process for kill immediately upon detection. It supposed to mark it for death on 3rd iteration (detection). This is done due to an asynchronous nature of the detector. It runs in a thread driven by timer. It needs to reconcile processes it finds with information sent by the OR which includes reservations. So the rogue process detector does not mark anything for death until it sees OR state.
      The bug in the code is in RogueProcessReaper:

      if ((counter = entry.countDown()) == 0 && !entry.isKilled()) {

      if entry.countDown() returns a negative number the test fails and the process is not marked for death.
      The fix is to first check the counter to see if it is positive and only than decrement and test.

        Attachments

          Activity

            People

            • Assignee:
              cwiklik Jerry Cwiklik
              Reporter:
              cwiklik Jerry Cwiklik
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: