ignite-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [ignite] denis-chudov commented on a change in pull request #6817: IGNITE-12112
Date Wed, 04 Sep 2019 10:12:03 GMT
denis-chudov commented on a change in pull request #6817: IGNITE-12112
URL: https://github.com/apache/ignite/pull/6817#discussion_r320680332
 
 

 ##########
 File path: modules/core/src/main/java/org/apache/ignite/internal/processors/cache/persistence/tree/BPlusTree.java
 ##########
 @@ -5920,12 +5923,39 @@ protected IoStatisticsHolder statisticsHolder() {
      * @param pageIds Pages ids.
      * @return New CorruptedTreeException instance.
      */
-    private CorruptedTreeException corruptedTreeException(String msg, Throwable cause, int
grpId, long... pageIds) {
-        CorruptedTreeException e = new CorruptedTreeException(msg, cause, grpId, pageIds);
+    protected CorruptedTreeException corruptedTreeException(String msg, Throwable cause,
int grpId, long... pageIds) {
+        CorruptedTreeException e = new CorruptedTreeException(msg, cause, grpId, grpName,
pageIds);
 
-        if (failureProcessor != null)
-            failureProcessor.process(new FailureContext(FailureType.CRITICAL_ERROR, e));
+        processFailure(FailureType.CRITICAL_ERROR, e);
 
         return e;
     }
+
+    /**
+     * Processes failure with failure processor.
+     *
+     * @param failureType Failure type.
+     * @param e Exception.
+     */
+    protected void processFailure(FailureType failureType, Throwable e) {
+        if (failureProcessor != null)
+            failureProcessor.process(new FailureContext(failureType, e));
+    }
+
+    /**
+     * Creates a formatted message even if "toString" of optioanl parameters failed.
+     *
+     * @param msg Detailed error message.
+     * @param rows Optional parameters.
+     * @return New instance of {@link CorruptedTreeException}.
+     */
+    private String formatMsg(String msg, Object... rows) {
 
 Review comment:
   Removed it.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message