Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-6771

The log should clarify what the figures reported during repair mean

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Do
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.6.12, 4.0.8
    • Component/s: Logging
    • None
    • 5

      When the server is started with --repair, the mongod reports the progress as:

      2019-04-16T15:22:37.412+1000 I STORAGE  [initandlisten] Repairing collection test.s
      2019-04-16T15:22:37.478+1000 I STORAGE  [initandlisten] WiredTiger progress WT_SESSION.verify 100
      2019-04-16T15:22:37.488+1000 I STORAGE  [initandlisten] WiredTiger progress WT_SESSION.verify 200
      2019-04-16T15:22:37.496+1000 I STORAGE  [initandlisten] WiredTiger progress WT_SESSION.verify 300
      2019-04-16T15:22:37.512+1000 I STORAGE  [initandlisten] WiredTiger progress WT_SESSION.verify 400
      2019-04-16T15:22:37.517+1000 I STORAGE  [initandlisten] WiredTiger progress WT_SESSION.verify 500
      2019-04-16T15:22:37.536+1000 I STORAGE  [initandlisten] WiredTiger progress WT_SESSION.verify 600
      2019-04-16T15:22:37.558+1000 I STORAGE  [initandlisten] WiredTiger progress WT_SESSION.verify 700
      2019-04-16T15:22:37.563+1000 I STORAGE  [initandlisten] WiredTiger progress WT_SESSION.verify 800
      2019-04-16T15:22:37.568+1000 I STORAGE  [initandlisten] WiredTiger progress WT_SESSION.verify 900
      2019-04-16T15:22:37.573+1000 I STORAGE  [initandlisten] WiredTiger progress WT_SESSION.verify 1000
      <...>
      2019-04-16T15:22:45.252+1000 I STORAGE  [initandlisten] WiredTiger progress WT_SESSION.verify 19900
      2019-04-16T15:22:45.256+1000 I STORAGE  [initandlisten] WiredTiger progress WT_SESSION.verify 20000
      2019-04-16T15:22:45.269+1000 I STORAGE  [initandlisten] Verify succeeded on uri table:collection-22--6524862713396647743. Not salvaging.
      

      This is pretty cryptic and may not be very useful to the end users. Specifically it is not clear:

      • What these numbers signify
      • What's the relative progress

      For instance, if the numbers indicate how many data pages have been processed and if the number of pages to be read is known, it would be much better to have log lines similar to the following:

      2019-04-16T15:22:45.252+1000 I STORAGE  [initandlisten] WiredTiger progress WT_SESSION.verify 19900/20000 pages read
      

            Assignee:
            backlog-server-storage-engines [DO NOT USE] Backlog - Storage Engines Team
            Reporter:
            dmitry.ryabtsev@mongodb.com Dmitry Ryabtsev
            Votes:
            0 Vote for this issue
            Watchers:
            16 Start watching this issue

              Created:
              Updated:
              Resolved: