ignite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrey Kuznetsov (JIRA)" <j...@apache.org>
Subject [jira] [Created] (IGNITE-6043) Fix GridCacheSemaphoreImpl methods semantics
Date Fri, 11 Aug 2017 06:32:00 GMT
Andrey Kuznetsov created IGNITE-6043:

             Summary: Fix GridCacheSemaphoreImpl methods semantics
                 Key: IGNITE-6043
                 URL: https://issues.apache.org/jira/browse/IGNITE-6043
             Project: Ignite
          Issue Type: Bug
          Components: data structures
    Affects Versions: 2.1
            Reporter: Andrey Kuznetsov
            Priority: Critical

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

Also, it's worth noting in IgniteSemaphore's javadoc it's unbounded nature, as opposed to

This message was sent by Atlassian JIRA

View raw message