Uploaded image for project: 'infrautils'
  1. infrautils
  2. INFRAUTILS-16

JobCoordinator enqueueJob must return a ListenableFuture instead of void

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Low Low
    • 1.9.0
    • Oxygen
    • General
    • None
    • Operating System: All
      Platform: All

      JobCoordinator enqueueJob must not return void but a (List of or single compound?) ListenableFuture, or a CompletionStage. This will let clients await completion of the submitted job, or at very least attach error logging, with context. (Client will ideally do this non-blocking through future chaining, not blocking get.)

      INFRAUTILS-8 is a related idea, but about capturing the stack trace, which is a separate idea - this issue here is only about returning a Future.

      Let us do this only in infrautils, and not in parallel in the duplicated code in infrautils as well as its origin in genius, because https://git.opendaylight.org/gerrit/#/c/60303/ is (hopefully) about to be finally merged.

            rovarga Robert Varga
            vorburger Michael Vorburger
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: