-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove ILock, ICondition and their implementations #15625
Conversation
ac9e72d
to
2cb0776
Compare
2cb0776
to
7f0af9e
Compare
Old LockService is moved to internal `locksupport` package. It's still provides locking support to `IMap` and `MultiMap`.
7f0af9e
to
5954576
Compare
run-lab-run |
@@ -19,5 +19,5 @@ | |||
* | |||
* @since 1 | |||
*/ | |||
package com.hazelcast.cp.internal.datastructures.unsafe.lock.operations; | |||
package com.hazelcast.internal.locksupport.operations; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Javadoc still mentions ILock
. Actually, there are more places that refer to ILock
or ICondition
if I search in the workspace:
./hazelcast/src/main/java/com/hazelcast/internal/locksupport/LockStoreImpl.java:50: // warning: the namespace field is unreliable if this LockStoreImpl was created for ILock proxy
./hazelcast/src/main/java/com/hazelcast/internal/locksupport/LockStoreImpl.java:52: // are shared for ILock proxies. see InternalLockNamespace for details.
./hazelcast/src/main/java/com/hazelcast/internal/locksupport/operations/package-info.java:18: * <p>This package contains the operations on the ILock.<br>
./hazelcast/src/main/java/com/hazelcast/spi/impl/operationservice/Operation.java:533: * <li>in case of ILock.tryLock(10, ms), the wait timeout is 10 ms</li>
./hazelcast/src/main/java/com/hazelcast/spi/impl/operationservice/Operation.java:534: * <li>in case of ILock.lock(), the wait timeout is -1</li>
./hazelcast/src/main/java/com/hazelcast/spi/impl/operationservice/Operation.java:535: * <li>in case of ILock.tryLock(), the wait timeout is 0.</li>
./hazelcast/src/main/java/com/hazelcast/spi/impl/operationservice/BlockingOperation.java:20: * An interface that can be implemented by an operation that can block. For example an ILock.acquire.
./hazelcast/src/main/java/com/hazelcast/spi/properties/GroupProperty.java:863: * - certain methods like those from the IExecutor or ILock are also invocations and they can be very long running.
./hazelcast/src/main/java/com/hazelcast/cp/internal/datastructures/lock/operation/package-info.java:19: * {@link com.hazelcast.cp.lock.ILock} implementation
./hazelcast/src/main/java/com/hazelcast/cp/internal/datastructures/lock/proxy/package-info.java:18: * Contains {@link com.hazelcast.cp.lock.ILock} functionality
./hazelcast/src/main/java/com/hazelcast/cp/internal/datastructures/lock/package-info.java:18: * Contains service classes for the Raft-based {@link com.hazelcast.cp.lock.ILock}
./hazelcast-spring/src/main/resources/hazelcast-spring-4.0.xsd:1793: Retrieve a Hazelcast ILock instance
./hazelcast-spring/src/main/resources/hazelcast-spring-4.0.xsd:1797: <tool:exports type="com.hazelcast.cp.lock.ILock"/>
./hazelcast/src/main/java/com/hazelcast/spi/impl/operationservice/WaitNotifyKey.java:20: * A key for a wait notify object e.g. an ICondition.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed these mentions in #15661
@@ -196,6 +197,9 @@ public void run(Operation op) { | |||
|
|||
ensureNoPartitionProblems(op); | |||
|
|||
if (op instanceof IsLockedOperation) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A leftover?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤦♂
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed in #15661
Old LockService is moved to internal
locksupport
package.It's still provides locking support to
IMap
andMultiMap
.Client protocol PR: hazelcast/hazelcast-client-protocol#233
EE: https://github.com/hazelcast/hazelcast-enterprise/pull/3186