Uploaded image for project: 'Puppet Server'
  1. Puppet Server
  2. SERVER-1375

race condition in pool-lock-supersedes-existing-borrows-test

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: SERVER 2.5.0
    • Component/s: None
    • Labels:
      None
    • Template:
    • Sub-team:
    • Story Points:
      1
    • Sprint:
      Server Emerald 2016-06-15
    • Release Notes:
      Not Needed

      Description

      puppetserver's clojure tests failed in CI with:

      lein test puppetlabs.puppetserver.lockable-pool-test
       
      lein test :only puppetlabs.puppetserver.lockable-pool-test/pool-lock-supersedes-existing-borrows-test
       
      FAIL in (pool-lock-supersedes-existing-borrows-test) (lockable_pool_test.clj:241)
      if there are pending borrows when pool.lock() is called, they aren't fulfilled until after unlock()
      expected: (not (realized? blocked-borrow-thread-borrowed?))
      actual: (not (not true))
      

      This looks a lot like a race condition in the test.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ruth Ruth Linehan
              Reporter:
              kevin.corcoran Kevin Corcoran
              QA Contact:
              Erik Dasher
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support