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

Improve file size info in SnapshotInfo tool

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.99.0
    • Fix Version/s: 0.99.0, 0.98.4, 0.94.22
    • Component/s: snapshots
    • Labels:
      None

      Description

      Add a "-size-in-bytes" flag to print the file size in byte instead of the human readable format.
      and add a check on the file length between the manifest and the hfile, marking as "CORRUPTED" files with length that don't match.

      Snapshot Files
      ----------------------------------------
         4839b testtb/a81219be11ade1d0d2913267caeeb3fe/cf/bec5567b2cb04cd1a76c2f4106991de7 
             - testtb/f2622221b913c44a61a03550cb74e3a1/cf/8b02813a4f564957bd820c88fccf376a (NOT FOUND)
         4967b testtb/0cab854a3877697e726a73187fe21643/cf/7afb8fe1e2f141eb9b8e17d1f68cd576 (archive)
           12b testtb/35074c28fd4dc304930f261fa8e0ce9c/cf/fedd9b9044b74768a6631003695c2f32 (CORRUPTED)
         4839b testtb/bb2ac9c8efc5ac9077084268c60dd8da/cf/50a3144088b049d98007af331821abd7 
         4839b testtb/cda2a3ea0f5630d19018916cbe73264e/cf/da0a1008656c403cb17f37a061d04120 
         4905b testtb/5b6e6b804e075778185e2fb1a27bae90/cf/1177a58d798a46ec952a0bc19f902711 (archive)
      
      **************************************************************
      BAD SNAPSHOT: 1 hfile(s) and 0 log(s) missing.
                    1 hfile(s) corrupted.
      **************************************************************
      

        Attachments

        1. HBASE-11450-v1.patch
          8 kB
          Matteo Bertozzi
        2. HBASE-11450-v0.patch
          8 kB
          Matteo Bertozzi

          Activity

            People

            • Assignee:
              mbertozzi Matteo Bertozzi
              Reporter:
              mbertozzi Matteo Bertozzi
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: