You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by pt...@apache.org on 2024/12/06 13:36:01 UTC

(ignite-3) branch main updated: IGNITE-23894 Replace exception with assertion in RetryReadPolicy (#4850)

This is an automated email from the ASF dual-hosted git repository.

ptupitsyn pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/ignite-3.git


The following commit(s) were added to refs/heads/main by this push:
     new 0ea50afeb8 IGNITE-23894 Replace exception with assertion in RetryReadPolicy (#4850)
0ea50afeb8 is described below

commit 0ea50afeb89f7192b2f1a73bfe9cb70968df0ef6
Author: Pavel Tupitsyn <pt...@apache.org>
AuthorDate: Fri Dec 6 15:35:55 2024 +0200

    IGNITE-23894 Replace exception with assertion in RetryReadPolicy (#4850)
---
 .../client/src/main/java/org/apache/ignite/client/RetryReadPolicy.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/client/src/main/java/org/apache/ignite/client/RetryReadPolicy.java b/modules/client/src/main/java/org/apache/ignite/client/RetryReadPolicy.java
index 15f0a6540a..d6c20a7855 100644
--- a/modules/client/src/main/java/org/apache/ignite/client/RetryReadPolicy.java
+++ b/modules/client/src/main/java/org/apache/ignite/client/RetryReadPolicy.java
@@ -66,7 +66,8 @@ public class RetryReadPolicy extends RetryLimitPolicy {
                 return false;
 
             default:
-                throw new UnsupportedOperationException("Unsupported operation type: " + context.operation());
+                assert false : "Unexpected operation: " + context.operation();
+                return false;
         }
     }
 }