You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ignite.apache.org by GitBox <gi...@apache.org> on 2021/11/02 07:32:24 UTC

[GitHub] [ignite-3] alievmirza commented on a change in pull request #418: IGNITE-15581 add proper handling of errors in user's state machines

alievmirza commented on a change in pull request #418:
URL: https://github.com/apache/ignite-3/pull/418#discussion_r740778773



##########
File path: modules/metastorage-client/src/integrationTest/java/org/apache/ignite/internal/metastorage/client/ITMetaStorageServiceTest.java
##########
@@ -602,6 +601,25 @@ public void testRangeNext() {
         assertEquals(EXPECTED_RESULT_ENTRY, cursor.iterator().next());
     }
 
+    /**
+     * Tests {@link MetaStorageService#range(ByteArray, ByteArray, long)}'s cursor exceptional case.
+     */
+    @Test
+    public void testRangeNextNoSuchElementException() {
+        when(mockStorage.range(EXPECTED_RESULT_ENTRY.key().bytes(), null)).thenAnswer(invocation -> {

Review comment:
       this is a valid case when the cursor on the server side is not found

##########
File path: modules/metastorage-client/src/integrationTest/java/org/apache/ignite/internal/metastorage/client/ITMetaStorageServiceTest.java
##########
@@ -602,6 +601,25 @@ public void testRangeNext() {
         assertEquals(EXPECTED_RESULT_ENTRY, cursor.iterator().next());
     }
 
+    /**
+     * Tests {@link MetaStorageService#range(ByteArray, ByteArray, long)}'s cursor exceptional case.
+     */
+    @Test
+    public void testRangeNextNoSuchElementException() {
+        when(mockStorage.range(EXPECTED_RESULT_ENTRY.key().bytes(), null)).thenAnswer(invocation -> {

Review comment:
       this is a valid case when the cursor on the server side is not found, for example 




-- 
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: notifications-unsubscribe@ignite.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org