ygerzhedovich commented on code in PR #7870:
URL: https://github.com/apache/ignite-3/pull/7870#discussion_r2993082749
##########
modules/transactions/src/main/java/org/apache/ignite/internal/tx/impl/RemotelyTriggeredResourceRegistry.java:
##########
@@ -148,6 +148,11 @@ public void close(UUID contextId) throws
ResourceCloseException {
public void closeByRemoteHostId(UUID remoteHostId) {
Set<FullyQualifiedResourceId> resourceIds =
remoteHostsToResources.get(remoteHostId);
+ if (resourceIds == null) {
+ // Remote host resources were already closed, likely by a
concurrent call of "removeRemoteHostResource" method.
Review Comment:
Why do you think such a check here will helps for concurrent close?
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]