Uploaded image for project: 'Phoenix'
  1. Phoenix
  2. PHOENIX-5718

GetTable builds a table excluding the given clientTimeStamp

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.16.0
    • 5.1.0, 4.16.0
    • None
    • None

    Description

      Here is the scenario tested:

      1. Brought up a server with 4.16 where new columns are added but not added as part of upgrade path
      2. Connect  with 4.14 client
      3. Connect with a 4.16 client - this will throw an exception as the new columns added as part of 4.16 were not added as part of upgrade path
      4. Now the code will force update the cache in PhoenixStatement#executeQuery() method
      5. Now the buildTable is removing even the columns added as part of 4.15 , the reason being we are passing the clientTimeStamp to build table ( say 29 is the timestamp for column added for 4.15) but the table is scanning rows EXCLUDING the passed clientTimeSTamp as the Scan#setTimeRange method excludes the end time stamp

      The passing of clientTimeStamp to build table is in MetaDataEndPointImpl#doGetTable method

      Attachments

        1. PHOENIX-5718.master.v2.patch
          8 kB
          Sandeep Guggilam
        2. PHOENIX-5718.master.v1.patch
          8 kB
          Sandeep Guggilam
        3. PHOENIX-5718.4.x-HBase-1.3.v2.patch
          8 kB
          Sandeep Guggilam
        4. PHOENIX-5718.4.x-HBase-1.3.v1.patch
          7 kB
          Sandeep Guggilam
        5. PHOENIX-5718.4.x.v1.patch
          8 kB
          Sandeep Guggilam
        6. PHOENIX-5718.4.x.v1.patch
          8 kB
          Sandeep Guggilam

        Activity

          People

            sandeep.guggilam Sandeep Guggilam
            sandeep.guggilam Sandeep Guggilam
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: