Vladimir Steshin created IGNITE-26631:
-----------------------------------------
Summary: Combine or refactor GridCacheGroupIdMessage and
GridCacheIdMessage
Key: IGNITE-26631
URL: https://issues.apache.org/jira/browse/IGNITE-26631
Project: Ignite
Issue Type: Improvement
Reporter: Vladimir Steshin
These messages are similar and are only for providing a cache or a group id to
find proper cache message handler. Currently, we use `{_}instance of{_}`.
Instead, we should revise these messages and probably combine them.
Also, check in {_}GridCacheIoManager{_}:
{code:java}
private Object descriptorForMessage(GridCacheMessage msg) {
if (msg instanceof GridCacheIdMessage)
return
cctx.cache().cacheDescriptor(((GridCacheIdMessage)msg).cacheId());
else if (msg instanceof GridCacheGroupIdMessage)
return
cctx.cache().cacheGroupDescriptors().get(((GridCacheGroupIdMessage)msg).groupId());
return null;
} {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)