Consider removing implicit notInterruptible in future get() and wait()

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Works as Designed
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Server Programmability
    • 200
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Today, get() and wait() take an optional Interruptible parameter, defaulting to Interruptible::notInterruptible() if none is provided. My impression is that this is an unsafe default, and that it is too easy to forget to provide an argument here, causing liveness issues. Some recent examples:

      We should consider no longer defaulting to Interruptible::notInterruptible(), and instead force callers to pass this explicitly if they want to be uninterruptible.

            Assignee:
            Unassigned
            Reporter:
            Brett Nawrocki
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: