ibessonov commented on a change in pull request #8554:
URL: https://github.com/apache/ignite/pull/8554#discussion_r540737374
##########
File path:
modules/core/src/main/java/org/apache/ignite/internal/processors/metastorage/persistence/DistributedMetaStorageImpl.java
##########
@@ -1033,14 +1058,29 @@ else if (!isClient && ver.id() > 0) {
* @throws IgniteCheckedException If there was an error while sending
discovery message.
*/
private GridFutureAdapter<?> startWrite(String key, byte[] valBytes)
throws IgniteCheckedException {
- if (!isSupported(ctx))
- throw new IgniteCheckedException(NOT_SUPPORTED_MSG);
+ GridFutureAdapter<?> validationRes = validateBeforeWrite(key);
+
+ if (validationRes != null)
+ return validationRes;
UUID reqId = UUID.randomUUID();
GridFutureAdapter<Boolean> fut = new GridFutureAdapter<>();
- updateFuts.put(reqId, fut);
+ updateFutsStopLock.readLock().lock();
+
+ try {
+ if (stopped) {
+ fut.onDone(nodeStoppingException());
+
Review comment:
Yes it does, thank you!
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]