Uploaded image for project: 'Ratis'
  1. Ratis
  2. RATIS-1656

Leftover usage of ForkJoinPool.commonPool() in RaftServerImpl

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.3.0
    • 2.4.0, 3.0.0
    • server
    • None

    Description

      RaftServerImpl#appendEntriesAsync is still using the common pool here:

          return JavaUtils.allOf(futures).whenCompleteAsync(
              (r, t) -> followerState.ifPresent(fs -> fs.updateLastRpcTime(FollowerState.UpdateType.APPEND_COMPLETE))
      

      I think it should be executed directly, since it's already executing on serverExecutor.

      Attachments

        Issue Links

          Activity

            People

              adoroszlai Attila Doroszlai
              adoroszlai Attila Doroszlai
              Votes:
              0 Vote for this issue
              Watchers:
              1 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 - 1h 40m
                  1h 40m