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

Fix GridCacheSemaphoreImpl methods semantics

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Not A Problem
    • 2.1
    • None
    • data structures
    • None

    Description

      Current semaphore implementation, GridCacheSemaphoreImpl, has inverted method semantics: acquire() releases the permit and release() acquires it. Also, debug-level method availablePermits() returns permits acquired so far. This confusing behaviour should be fixed.

      Also, it's worth noting in IgniteSemaphore's javadoc its unbounded nature, as opposed to java.util.concurrent.Semaphore.

      Attachments

        Activity

          People

            andrey-kuznetsov Andrey Kuznetsov
            andrey-kuznetsov Andrey Kuznetsov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: