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

String values (ALWAYS and NEVER) don't work for connection level config phoenix.default.update.cache.frequency

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

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

    Description

      While working on PHOENIX-5634, I noticed that the connection level property 'phoenix.default.update.cache.frequency' is being read in 'MetadataClient::createTable()' and 'Metadata::createTableInternal()' as follows:

      long updateCacheFrequency = connection.getQueryServices().getProps().getLong(
          QueryServices.DEFAULT_UPDATE_CACHE_FREQUENCY_ATRRIB, QueryServicesOptions.DEFAULT_UPDATE_CACHE_FREQUENCY);
      

      However, looking at the documentation for option 'UPDATE_CACHE_FREQUENCY' at https://phoenix.apache.org/language/index.html, the value for this config could also be set to strings 'ALWAYS' and 'NEVER'. The use of getLong() above will always return 'QueryServicesOptions.DEFAULT_UPDATE_CACHE_FREQUENCY' when the config is set to 'ALWAYS'/'NEVER'. Reading the connection-level property should also follow the way the table-level property is read in 'TableProperty.UPDATE_CACHE_FREQUENCY'.

      Attachments

        1. PHOENIX-5654.master.v4.patch
          21 kB
          Nitesh Maheshwari
        2. PHOENIX-5654.master.v3.patch
          21 kB
          Nitesh Maheshwari
        3. PHOENIX-5654.master.v2.patch
          21 kB
          Nitesh Maheshwari
        4. PHOENIX-5654.master.v1.patch
          21 kB
          Nitesh Maheshwari
        5. PHOENIX-5654.4.x-HBase-1.3.v3.patch
          21 kB
          Nitesh Maheshwari
        6. PHOENIX-5654.4.x-HBase-1.3.v2.patch
          21 kB
          Nitesh Maheshwari
        7. PHOENIX-5654.4.x-HBase-1.3.v1.patch
          21 kB
          Nitesh Maheshwari

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            ntshmah Nitesh Maheshwari
            ntshmah Nitesh Maheshwari
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 2h 20m
                2h 20m

                Slack

                  Issue deployment