mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

abobrov
28.36.2008 ff1dc93989f6df8bdea1b0f31c05067397a0cca1
- [Issue 2358] Add progress information to bin/verify-index command
Log total number of records to process along records processed in the progress report.

2 files modified
15 ■■■■ changed files
opends/src/messages/messages/jeb.properties 4 ●●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/backends/jeb/VerifyJob.java 11 ●●●● patch | view | raw | blame | history
opends/src/messages/messages/jeb.properties
@@ -211,8 +211,8 @@
 exceeded the entry limit:
INFO_JEB_VERIFY_ENTRY_LIMIT_STATS_ROW_108=  File %s has %d such record(s) \
 min=%d max=%d median=%d
INFO_JEB_VERIFY_PROGRESS_REPORT_109=Processed %d records and found %d \
 error(s) (recent rate %.1f/sec)
INFO_JEB_VERIFY_PROGRESS_REPORT_109=Processed %d out of %d records and found \
 %d error(s) (recent rate %.1f/sec)
INFO_JEB_VERIFY_CACHE_AND_MEMORY_REPORT_110=Free memory = %d MB, Cache miss \
 rate = %.1f/record
MILD_ERR_JEB_INVALID_PAGED_RESULTS_COOKIE_111=The following paged results \
opends/src/server/org/opends/server/backends/jeb/VerifyJob.java
@@ -2035,6 +2035,11 @@
  class ProgressTask extends TimerTask
  {
    /**
     * The total number of records to process.
     */
    private long totalCount;
    /**
     * The number of records that had been processed at the time of the
     * previous progress report.
     */
@@ -2066,6 +2071,8 @@
      previousTime = System.currentTimeMillis();
      prevEnvStats =
          rootContainer.getEnvironmentStats(new StatsConfig());
      totalCount = rootContainer.getEntryContainer(
        verifyConfig.getBaseDN()).getEntryCount();
    }
    /**
@@ -2085,8 +2092,8 @@
      float rate = 1000f*deltaCount / deltaTime;
      Message message =
          INFO_JEB_VERIFY_PROGRESS_REPORT.get(latestCount, errorCount, rate);
      Message message = INFO_JEB_VERIFY_PROGRESS_REPORT.get(
        latestCount, totalCount, errorCount, rate);
      logError(message);
      try