Class DiagnosticProcessor

    • Method Detail

      • onFailure

        public void onFailure​(FailureContext failureCtx)
        Print diagnostic info about failure occurred on ignite instance. Failure details is contained in failureCtx.
        Parameters:
        failureCtx - Failure context.
      • corruptedPagesFile

        public static File corruptedPagesFile​(Path dirPath,
                                              FileIOFactory ioFactory,
                                              int grpId,
                                              long... pageIds)
                                       throws IOException
        Creation and filling of a file with pages that can be corrupted. Pages are written on each line in format "grpId:pageId". File name format "corruptedPages_yyyy-MM-dd'_'HH-mm-ss_SSS.txt".
        Parameters:
        dirPath - Path to the directory where the file will be created.
        ioFactory - File I/O factory.
        grpId - Cache group id.
        pageIds - PageId's that can be corrupted.
        Returns:
        Created and filled file.
        Throws:
        IOException - If an I/O error occurs.