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

Client should not validate LAST_DDL_TIMESTAMP for a table with non-zero UPDATE_CACHE_FREQUENCY if the client's cache entry is not old enough

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 5.3.0
    • None
    • None

    Description

      PHOENIX-6883 introduced a way for a client to validate its table metadata before queries or updates using LAST_DDL_TIMESTAMP of the table. In the current implementation, client will always perform an RPC to a random region server to validate timestamps since we would set DEFAULT_UPDATE_CACHE_FREQUENCY to NEVER. 

      However, if a client operation involves a table with a positive UPDATE_CACHE_FREQUENCY defined in its schema, we should skip the timestamp validation if the client's cache entry for the table is not old enough. (just like we skip getTable rpc if the cache entry is not old enough)

      Attachments

        Issue Links

          Activity

            People

              palashc Palash Chauhan
              palashc Palash Chauhan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: