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

Fixup script that scans .META., report holes if any and then finds dropped regions in fs if they are present (loading them if asked)

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Major
    • Resolution: Invalid
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: scripts
    • Labels:
      None

      Description

      I was just at a site that was getting a WRE. Looking at meta, was plain that a region was missing from .META. The install was 0.20.3 (0.20.4 should fix the issue seen but...). Getting things back online involved digging in logs to find info on missing region, what its encoded name was, and then doing a hack version of add_table.rb to add back the dropped region.

      A script that could spin through meta could easily find holes. That'd be a help. Subsequent, the script could go looking in fs for the missing region. If present, it could even add back the missing region. This is subtask of hbase-7.

        Issue Links

          Activity

          Hide
          fredemmott Fred Emmott added a comment -

          Script to do this, derived from add_table.rb

          Works for us, but may destroy your data, eat your babies, etc.

          Show
          fredemmott Fred Emmott added a comment - Script to do this, derived from add_table.rb Works for us, but may destroy your data, eat your babies, etc.
          Hide
          stack stack added a comment -

          This looks nice Fred. In trunk, there is something similar but it needs exercising against bad tables. See bin/check_meta.rb. Let me compare yours and it and add over improvements you've made.

          Show
          stack stack added a comment - This looks nice Fred. In trunk, there is something similar but it needs exercising against bad tables. See bin/check_meta.rb. Let me compare yours and it and add over improvements you've made.
          Hide
          fredemmott Fred Emmott added a comment -

          A couple of points:

          • after this runs, the region it inserts appears as the last region for the table. The other regions appeared again after ~ 20 seconds
          • it assumes that the keys for the table are valid character strings, not arbitrary byte arrays
          Show
          fredemmott Fred Emmott added a comment - A couple of points: after this runs, the region it inserts appears as the last region for the table. The other regions appeared again after ~ 20 seconds it assumes that the keys for the table are valid character strings, not arbitrary byte arrays
          Hide
          stack stack added a comment -

          Resolving as no longer valid. See hbck.

          Show
          stack stack added a comment - Resolving as no longer valid. See hbck.

            People

            • Assignee:
              Unassigned
              Reporter:
              stack stack
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development