Uploaded image for project: 'Percona Server'
  1. Percona Server
  2. PS-4377

Create utility to allow editing of ydb directory file

    Details

    • Type: Admin & Maintenance Task
    • Status: Done
    • Priority: Medium
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 5.7.18-14, 5.6.36-82.0
    • Component/s: TokuDB
    • Labels:
      None

      Description

      Initial

      Develop a new tool to allow viewing, adding and deleting of entries within the ydb directory file. Maybe also add an audit feature that reconciles the directory entries against the actual files on disk and report any discrepancies.

      Maybe call it something tokudiredit. I can imagine some options like:
      --attach dname iname // adds an entry that maps dname to the real file iname, file must exist
      --move dname_old dname_new // move/renames dname
      --remove dname // removes the entry and file specified by dname
      --detach dname // removes only the entry dname but leaves the file intact
      --list // lists all mappings
      --reconcile // compare mappings to actual files and report any discrepancies

      It will likely either need to use the toku_* functions directly or will need extension to the YDB API.

      For full safety, I believe that the tool should force a checkpoint both before any changes and after any changes.

        Smart Checklist

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  vladislav.lesin Vladislav Lesin (Inactive)
                  Reporter:
                  george.lorch George Lorch
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: