[ https://issues.apache.org/jira/browse/HIVE-25900?focusedWorklogId=752075&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-752075 ]
ASF GitHub Bot logged work on HIVE-25900: ----------------------------------------- Author: ASF GitHub Bot Created on: 04/Apr/22 00:17 Start Date: 04/Apr/22 00:17 Worklog Time Spent: 10m Work Description: github-actions[bot] commented on PR #2984: URL: https://github.com/apache/hive/pull/2984#issuecomment-1086983586 This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Feel free to reach out on the d...@hive.apache.org list if the patch is in need of reviews. Issue Time Tracking ------------------- Worklog Id: (was: 752075) Time Spent: 2h (was: 1h 50m) > Materialized view registry does not clean non existing views at refresh > ----------------------------------------------------------------------- > > Key: HIVE-25900 > URL: https://issues.apache.org/jira/browse/HIVE-25900 > Project: Hive > Issue Type: Bug > Components: Materialized views > Reporter: Krisztian Kasa > Assignee: Krisztian Kasa > Priority: Major > Labels: pull-request-available > Time Spent: 2h > Remaining Estimate: 0h > > CBO plans of materialized views which are enabled for query rewrite are > cached in HS2 (MaterializedViewsCache, HiveMaterializedViewsRegistry) > The registry is refreshed periodically from HMS: > {code:java} > set hive.server2.materializedviews.registry.refresh.period=1500s; > {code} > This functionality is required when multiple HS2 instances are used in a > cluster: MV drop operation is served by one of the HS2 instances and the > registry is updated at that time in that instance. However other HS2 > instances still cache the non-existent view and need to be refreshed by the > updater thread. > Currently the updater thread adds new entries, refresh existing ones but does > not remove the outdated entries. -- This message was sent by Atlassian Jira (v8.20.1#820001)