Uploaded image for project: 'CarbonData'
  1. CarbonData
  2. CARBONDATA-4098

NullPointerException will be thrown during query if at the time carbon table cache is being expired

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 2.1.0
    • None
    • sql
    • None

    Description

      CARBONDATA-4088 introduce the expiring map to expire the carbon table cache by time. But it will have one problem: during query, if cache is being expired, queries on the table may fail with NullPointerException.

      If users don't want their queries to be failed, they need to choose a proper value for the configuration carbon.metacache.expiration.seconds: at the time of cache expired, the table will never be queried. For example, customer will have a new table every day, and this table will be queried only at that day. So he can choose 1 week as the property value so that this table cache will only leak for one week and after one week will be cleared.

      So mostly this nullpointerexception will not happen if user chooses the proper value of carbon.metacache.expiration.seconds. But still we will have one Jira to track this seldom issue and maybe will fix it in future.

      Attachments

        Activity

          People

            Unassigned Unassigned
            jack86596 Yahui Liu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: