XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • None
    • newbie

    Description

      This is a sub-issue of HBase-14070. This JIRA is a small step towards completely adding Hybrid Logical Clocks(HLC) to HBase. The main idea of HLC is described in HBase-14070 along with the motivation of adding it to HBase.

      This patch in this issue takes the code from the patch in the parent.
      The parent patch is pretty big to review at once. So, plan is to get code reviewed in smaller patches and
      in the process take suggestions and change things if necessary.

      What is this patch/issue about ?
      This issue attempts to add a timestamp class to hbase-common and timestamp type to HTable.
      This is a part of the attempt to get HLC into HBase. This patch does not interfere with the current working of HBase.

      Why Timestamp Class ?
      Timestamp class can be as an abstraction to represent time in Hbase in 64 bits.
      It is just used for manipulating with the 64 bits of the timestamp and is not concerned about the actual time.
      There are three types of timestamps. System time, Custom and HLC. Each one of it has methods to manipulate the 64 bits of timestamp.

      HTable changes: Added a timestamp type property to HTable. This will help HBase exist in conjunction with old type of timestamp and also the HLC which will be introduced. The default is set to custom timestamp(current way of usage of timestamp). default unset timestamp is also custom timestamp as it should be so. The default timestamp will be changed to HLC when HLC feature is introduced completely in HBase.

      Check HBASE-16210.master.6.patch.

      Update: Based on the suggestions, made timestamp enum. Here is the description of the new changes.
      Check the HBASE-16210.master.8.1.patch
      1. Changed the Timestamp Implementation to Enum.
      2. Changed the Timestamp semantics. Instead of HLC, System monotonic and custom, we now have Hybrid and Physical. System monotonic clock and Custom clocks can map their timestamps to Physical. HLC clock can map its timestamp to Hybrid.
      3. The HTableDescriptor will contain clock type(not implemented yet) instead of timestamp type. As clocks convey the semantics of monotonic increasing and non decreasing etc. TimestampType doesn't have those semantics enforced, it just knows what to do with given 64 bits. Therefore, I removed the timestamp type field in the HTableDescriptor.
      Open for suggestions.

      Attachments

        1. HBASE-16210.master.1.patch
          34 kB
          Sai Teja Ranuva
        2. HBASE-16210.master.2.patch
          33 kB
          Sai Teja Ranuva
        3. HBASE-16210.master.3.patch
          33 kB
          Sai Teja Ranuva
        4. HBASE-16210.master.4.patch
          33 kB
          Sai Teja Ranuva
        5. HBASE-16210.master.5.patch
          35 kB
          Sai Teja Ranuva
        6. HBASE-16210.master.6.patch
          35 kB
          Sai Teja Ranuva
        7. HBASE-16210.master.7.patch
          34 kB
          Sai Teja Ranuva
        8. HBASE-16210.master.8.1.patch
          22 kB
          Sai Teja Ranuva
        9. HBASE-16210.master.8.2.patch
          25 kB
          Sai Teja Ranuva
        10. HBASE-16210.master.8.3.patch
          24 kB
          Sai Teja Ranuva
        11. HBASE-16210.master.8.4.patch
          24 kB
          Sai Teja Ranuva
        12. HBASE-16210.master.8.patch
          21 kB
          Sai Teja Ranuva

        Issue Links

          Activity

            People

              Unassigned Unassigned
              saitejar Sai Teja Ranuva
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated: