private void checkFail ( String errorMsg ) throws IOException { if ( fsNamesys . failOnTxIdMismatch ( ) ) { FSEditLog . LOG . error ( errorMsg ) ; throw new IOException ( errorMsg ) ; } MetaRecoveryContext . editLogLoaderPrompt ( errorMsg ) ; }
When encountering an error while loading the transaction we can skip the problematic transaction and continue first prompting the user . This will only be possible when NN is started with appropriate option .