Uploaded image for project: 'CouchDB'
  1. CouchDB
  2. COUCHDB-3309

Remove disk_size, data_size and other.data_size attribute from db info blobs

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • None
    • 3.0.0
    • HTTP Interface
    • None
    • New Contributors Level (Easy)

    Description

      Since 2.0 we've had duplicate keys in our database info blobs for size fields. I was going to remove these as part of the storage engine work but that'd be backwards incompatible. I'm opening this ticket and setting it as blocking for 3.0 so that we remember to remove them when we can make backward incompatible changes.

      Also, to be clear, these are duplicates. The same data is available under the sizes key with extremely less ambiguous naming (and will be configurable for storage engines to return whatever they want there).

      {
          "compact_running": false,
          "data_size": 23403,
          "db_name": "test-db",
          "disk_format_version": 6,
          "disk_size": 513032,
          "doc_count": 10,
          "doc_del_count": 2,
          "instance_start_time": "0",
          "other": {
              "data_size": 6020
          },
          "purge_seq": 0,
          "sizes": {
              "active": 23403,
              "external": 6020,
              "file": 513032
          },
          "update_seq": "82-g1AAAADveJzLYWBgYMlgTmFQSklKzi9KdUhJMjLWy83PzyvOyMxL1UvOyS9NScwr0ctLLckBqmVKZEiy____f1YiH5ouU3y6khyAZFI9No2GeDXmsQBJhgYgBdS7PytRAs1WQ8KaD0A0A22WywIAA-tQaQ"
      }
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            paul.joseph.davis Paul Joseph Davis
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: