Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-7052

Interrupting a task should not be logged as an error

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 10.0.0-M1, 9.14.0
    • wicket-core
    • None

    Description

      An interrupt can be used to wake a sleeping task so it can check if it has been stopped. Since this is not an uncommon scenario, it should not be logged as an error.

      Consider for example the ModificationWatcher. On shutdown, its destroy method is called which may interrupt() the watcher task. Calling Task.interrupt() will set the stop flag in the task and then interrupt the task thread. If this happens while the task is sleeping, it should not cause an error to be logged.

      Attachments

        Issue Links

          Activity

            People

              mgrigorov Martin Tzvetanov Grigorov
              rec Richard Eckart de Castilho
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: