Uploaded image for project: 'Kudu'
  1. Kudu
  2. KUDU-278

Allow to specify a ThreadPool to execute callbacks in and make callback executor deterministic

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Won't Fix
    • M3
    • None
    • util
    • None

    Description

      Right now whenever a listener is added to a Future, that listener might be executed by the caller or be the task thread. This can easily lead to deadlocks without reentrant locks.

      So we should at least make it deterministic (i.e. have it always be executed by either the task thread or at least the same pool as the task thread).

      The best solution though would be to make it like guava's ListenableFuture which always executes listeners in their own executor.

      Attachments

        Activity

          People

            Unassigned Unassigned
            dralves David Alves
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: