private void doUpgradeJournal ( NamespaceInfo nsInfo ) throws IOException { Preconditions . checkState ( nsInfo . getNamespaceID ( ) != 0 , "can't upgrade with uninitialized namespace info: %s" , nsInfo . toColonSeparatedString ( ) ) ; LOG . info ( "Upgrading journal " + this . getJournalId ( ) + " with namespace info: (" + nsInfo . toColonSeparatedString ( ) + ")" ) ; journalStorage . doUpgrade ( nsInfo ) ; copyMetaFilesForUpgrade ( ) ; refreshCachedData ( ) ; }
Upgrade the local journal storage with the given namespace .