From: <tho...@us...> - 2013-11-08 18:08:27
|
Revision: 7515 http://bigdata.svn.sourceforge.net/bigdata/?rev=7515&view=rev Author: thompsonbry Date: 2013-11-08 18:08:21 +0000 (Fri, 08 Nov 2013) Log Message: ----------- added periodic log @ WARN when reading a large number HALog files during startup (better ergonomics) Modified Paths: -------------- branches/BIGDATA_RELEASE_1_3_0/bigdata-jini/src/java/com/bigdata/journal/jini/ha/HALogNexus.java Modified: branches/BIGDATA_RELEASE_1_3_0/bigdata-jini/src/java/com/bigdata/journal/jini/ha/HALogNexus.java =================================================================== --- branches/BIGDATA_RELEASE_1_3_0/bigdata-jini/src/java/com/bigdata/journal/jini/ha/HALogNexus.java 2013-11-07 14:45:09 UTC (rev 7514) +++ branches/BIGDATA_RELEASE_1_3_0/bigdata-jini/src/java/com/bigdata/journal/jini/ha/HALogNexus.java 2013-11-08 18:08:21 UTC (rev 7515) @@ -532,6 +532,20 @@ haLogIndex.add(new HALogRecord(closingRootBlock, sizeOnDisk)); + final long nentries = haLogIndex.getEntryCount(); + + if (nentries % 1000 == 0) { + + /* + * Provide an indication that the server is doing work during + * startup. If there are a lot of HALog files, then we can spend + * quite a bit of time in this procedure. + */ + + haLog.warn("Indexed " + nentries + " HALog files"); + + } + } /** This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |