Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-14070 Hybrid Logical Clocks for HBase
  3. HBASE-18496

Fix TestTimestampType failing on isLikelyOfType tests

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: HBASE-14070
    • Component/s: None
    • Labels:
      None

      Description

      The tests testPhysicalIsLikelyOfType and testHybridIsLikelyOfType were failing after the initial commit of core HLC so this patch fixes that. Note that both Physical#isLikelyOfType and Hybrid#isLikelyOfType will return false if the input timestamp is from before the first half of the first day of 1970.

      Changes

      • Offset date by second day of year
      • Fixed instance of not properly setting ZonedDateTime in TestTimestampType#testPhysicalIsLikelyOfType
      • Changed timestamp for year 2016 in TimestampType to be UTC+0 instead of UTC+8

        Attachments

          Activity

            People

            • Assignee:
              amit.patel Amit Patel
              Reporter:
              amit.patel Amit Patel

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment