XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.10.0
    • 4.11.0
    • None
    • None

    Description

      When UPDATE_CACHE_FREQUENCY is used, clients will cache metadata for a period of time which may cause the schema being used to become stale. If another client adds a column or a new table or view, other clients won't see it. As a result, the client will get a MetaDataEntityNotFoundException. Instead of bubbling this up, we should retry after forcing a cache update on the tables involved in the query.

      The above works well for references to entities that don't yet exist. However, we cannot detect when some entities are referred to which no longer exists until the cache expires. An exception is if a physical table is dropped which would be detected immediately, however we would allow queries and updates to columns which have been dropped until the cache entry expires (which seems like a reasonable tradeoff IMHO. In addition, we won't start using indexes on tables until the cache expires.

      Attachments

        1. PHOENIX-3823.patch
          42 kB
          Maddineni Sukumar
        2. PHOENIX-3823.v2.patch
          44 kB
          Maddineni Sukumar
        3. PHOENIX-3823.v3.patch
          44 kB
          Maddineni Sukumar
        4. PHOENIX-3823.v4.patch
          44 kB
          Maddineni Sukumar
        5. PHOENIX-3823.v5.patch
          51 kB
          Maddineni Sukumar
        6. PHOENIX-3823.v6.patch
          86 kB
          Maddineni Sukumar
        7. PHOENIX-3823.v7.patch
          94 kB
          Maddineni Sukumar
        8. PHOENIX-3823.v8.patch
          95 kB
          Maddineni Sukumar
        9. PHOENIX-3823.v9.patch
          95 kB
          Maddineni Sukumar
        10. PHOENIX-3823.v10.patch
          94 kB
          Maddineni Sukumar
        11. PHOENIX-3823.v11.patch
          94 kB
          James R. Taylor
        12. PHOENIX-3823.v12.patch
          101 kB
          James R. Taylor

        Issue Links

          Activity

            People

              sukunaidu@gmail.com Maddineni Sukumar
              jamestaylor James R. Taylor
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: