Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-6011

Derby performs very badly (seems to deadlock and timeout) in very simple multi-threaded tests



    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s:,,
    • Fix Version/s:,,
    • Component/s: SQL
    • Labels:
    • Environment:
      Lenovo laptop with SSD's, Windows 7, 64-bit, Sun JDK 1.6.xx


      The Apache ManifoldCF project supports Derby as one of its underlying databases. Simple tests, however, demonstrate that Derby is apparently deadlocking and timing out repeatedly under multi-thread conditions. This problem is long-standing, and is not exhibited by any other database ManifoldCF supports, and makes a simple test take between 6x and 12x as long.

      There is a trivial test with demonstrates the problem vs. other databases. Please do the following (once you have java 1.6+, svn 1.7+, and ant 1.7+ available):

      (1) Check out https://svn.apache.org/repos/asf/manifoldcf/trunk
      (2) Run the following ant target to download the dependencies: "ant make-core-deps"
      (3) Run the Derby test: "ant run-rss-tests-derby" . Note the time required - at least 180 seconds, can be up to 360 seconds.
      (4) Run the equivalent HSQLDB test: "ant run-rss-tests-HSQLDB". This test takes about 31 seconds to run.

      The output of the Derby test can be found in the directory "tests/rss/test-derby-output". Have a look at manifoldcf.log, where all long-running queries are reported. Derby.log is also included, which shows only that during the test's cleanup phase the database is deleted before it is shutdown, which is not pertinent to the performance issue.

      I am available to assist with ManifoldCF, if that seems to be required.


        1. derby.log
          8 kB
          Karl Wright
        2. force-specific-index.diff
          2 kB
          Knut Anders Hatlen
        3. manifoldcf.log
          12 kB
          Karl Wright
        4. prefer-unique-index-v1.diff
          1 kB
          Knut Anders Hatlen
        5. prefer-unique-index-v2.diff
          14 kB
          Knut Anders Hatlen

          Issue Links



              • Assignee:
                knutanders Knut Anders Hatlen
                kwright@metacarta.com Karl Wright
              • Votes:
                0 Vote for this issue
                9 Start watching this issue


                • Created: