anton-vinogradov commented on code in PR #13408:
URL: https://github.com/apache/ignite/pull/13408#discussion_r3683131336
##########
modules/core/src/test/java/org/apache/ignite/internal/processors/cache/distributed/near/GridNearTxPrepareDestroyedCacheTest.java:
##########
@@ -163,13 +163,13 @@ public void
testPrepareOfDestroyedCacheAnsweredWithErrorResponse() throws Except
Throwable err = ((GridNearTxPrepareResponse)resps.get(0)).error();
- assertNotNull("The response must carry the unmarshalling error.", err);
+ assertNotNull("The response must carry the error of the destroyed
cache.", err);
- CacheObjectNotResolvedException cause = X.cause(err,
CacheObjectNotResolvedException.class);
+ CacheInvalidStateException cause = X.cause(err,
CacheInvalidStateException.class);
Review Comment:
Good catch — the class javadoc described exactly the mechanism this PR
removes. Rewrote it around the actual behaviour: the entry has no cache context
to initialize against, so the prepare fails with `CacheInvalidStateException`.
The `{@link}` and the import now point there.
--
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]