Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-21185

WALPrettyPrinter: Additional useful info to be printed by wal printer tool, for debugability purposes

    XMLWordPrintableJSON

Details

    • Reviewed
    • Hide
      This adds two extra features to WALPrettyPrinter tool:

      1) Output for each cell combined size of cell descriptors, plus the cell value itself, in a given WAL edit. This is printed on the results as "cell total size sum:" info by default;

      2) An optional -g/--goto argument, that allows to seek straight to that specific WAL file position, then sequentially reading the WAL from that point towards its end;
      Show
      This adds two extra features to WALPrettyPrinter tool: 1) Output for each cell combined size of cell descriptors, plus the cell value itself, in a given WAL edit. This is printed on the results as "cell total size sum:" info by default; 2) An optional -g/--goto argument, that allows to seek straight to that specific WAL file position, then sequentially reading the WAL from that point towards its end;

    Description

      WALPrettyPrinter is very useful for troubleshooting wal issues, such as faulty replication sinks. An useful information one might want to track is the size of a single WAL entry edit, as well as size for each edit cell. Am proposing a patch that adds calculations for these two, as well an option to seek straight to a given position on the WAL file being analysed.

      Attachments

        1. HBASE-21185.master.003.patch
          3 kB
          Wellington Chevreuil
        2. HBASE-21185.master.002.patch
          3 kB
          Wellington Chevreuil
        3. HBASE-21185.master.001.patch
          3 kB
          Wellington Chevreuil
        4. HBASE-21185.branch-1.4.001.patch
          3 kB
          Wellington Chevreuil

        Issue Links

          Activity

            People

              wchevreuil Wellington Chevreuil
              wchevreuil Wellington Chevreuil
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: