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

Pass both old and new descriptors to pre/post hooks of modify operations for table and namespace

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.0.0-alpha-1, 2.1.0, 2.0.1
    • None
    • None

    Description

      In postModify* hooks like postModifyX(..., Descriptor newDesc), there's no way of getting the old descriptor which was there before modification happened.
      Having both old and new descriptors will make the hooks more useful.
      We felt the need when we wanted to audit certain events but there was no way of deducing them by just seeing 'after-state' of modification.

      To keep the method signatures consistent, i have modified both pre and post hooks with new arguments which are well named and commented.

      Attachments

        1. HBASE-20567.master.001.patch
          28 kB
          Apekshit Sharma
        2. HBASE-20567.master.002.patch
          19 kB
          Apekshit Sharma

        Issue Links

          Activity

            People

              appy Apekshit Sharma
              appy Apekshit Sharma
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: