Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-20645

Make ComputeJob.execute asynchronous

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 3.0.0-beta1
    • 3.0.0-beta2
    • compute

    Description

      R ComputeJob.execute(...) is synchronous, so a long-running job that performs other async operations (network calls, Ignite API calls, etc) will block the compute pool thread.

      Change it to CompletableFuture<R> ComputeJob.executeAsync(...) so that the thread can do other things while the job is waiting on async IO.

      https://github.com/apache/ignite-3/blob/5b234df53f4bbf2ff78bc27636c5c936d159673b/modules/api/src/main/java/org/apache/ignite/compute/ComputeJob.java

      Attachments

        Issue Links

          Activity

            People

              ptupitsyn Pavel Tupitsyn
              ptupitsyn Pavel Tupitsyn
              Igor Sapego Igor Sapego
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2h 50m
                  2h 50m