Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-3965

Excessive time waiting on DiffRepository lock

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.23.0
    • Component/s: core
    • Labels:
      None

      Description

      When running the whole test suite from commandline, tests are parallelized and gradle/junit tries to use as many cores as possible (16 on my machine). But the tests take a very long time, approximatevely 90minutes on my machine, and several of them failed because they took too long to complete.

      Using jstack to look at the threads state while tests are running show that most of them are waiting on DiffRepository methods (DiffRepository#expand in most cases) while one of the thread obtained the lock (and is usually flushing data on disk).

        Attachments

          Activity

            People

            • Assignee:
              laurent Laurent Goujon
              Reporter:
              laurent Laurent Goujon
            • Votes:
              0 Vote for this issue
              Watchers:
              3 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 - 20m
                20m