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

Value of hbase.master.snapshot.ttl is not used

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.7.1, 2.4.8
    • 3.0.0-alpha-2, 1.7.2
    • snapshots
    • None
    • Reviewed

    Description

      When creating a snapshot, users can explicitly specify the TTL to be used. If no TTL is specified, then the SnapshotDescription is initially created with a TTL of -1 to indicate FOREVER.

      When the SnapshotDescription runs through SnapshotDescriptionUtils#validate, the TTL is checked to see if the default value of hbase.master.snapshot.ttl should be applied. The value from the config is only applied if the TTL == 0, but it should be -1.

      This has another nasty side-effect: any user who creates a snapshot and explicitly sets {TTL => 0} will find that their snapshot gets its TTL from hbase.master.snapshot.TTL.

      Attachments

        Activity

          People

            jswi Joel Swiatek
            jswi Joel Swiatek
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 120h
                120h
                Remaining:
                Remaining Estimate - 120h
                120h
                Logged:
                Time Spent - Not Specified
                Not Specified