CouchDB
  1. CouchDB
  2. COUCHDB-999

Detect view indexes with duplicates in them

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.11.2, 1.0.1
    • Fix Version/s: 1.0.2, 1.1
    • Component/s: Database Core
    • Labels:
      None

      Description

      In COUCHDB-968 we discovered and fixed a bug that could introduce duplicate documents in a database. Under certain circumstances these duplicate documents would introduce duplicate entries in view indexes.

      We can detect duplicates in the view group by looking for duplicate entries in the docid => view key btree. We can try to repair the view indexes by removing the extra keys from the views, or we can just report that duplicates exist in the view group and direct the user to rebuild that group. We might incorporate this code into the view compactor, or we might release it as a separate standalone tool.

      I think my personal preference is to include any repair functionality in the view compactor. A separate standalone tool that simply reports the presence of duplicates would also be a nice thing to have.

        Issue Links

          Activity

          Adam Kocoloski made changes -
          Link This issue relates to COUCHDB-1769 [ COUCHDB-1769 ]
          Adam Kocoloski made changes -
          Status Open [ 1 ] Closed [ 6 ]
          Resolution Fixed [ 1 ]
          Adam Kocoloski made changes -
          Summary Detect and repair view indexes with duplicates in them Detect view indexes with duplicates in them
          Adam Kocoloski made changes -
          Fix Version/s 1.0.2 [ 12315258 ]
          Fix Version/s 1.1 [ 12314933 ]
          Adam Kocoloski made changes -
          Adam Kocoloski made changes -
          Field Original Value New Value
          Link This issue is related to COUCHDB-968 [ COUCHDB-968 ]
          Adam Kocoloski created issue -

            People

            • Assignee:
              Unassigned
              Reporter:
              Adam Kocoloski
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development