[MDEV-28741] Disable query cache on Spider tables to avoid cache inconsistency Created: 2022-06-03  Updated: 2022-06-05  Resolved: 2022-06-05

Status: Closed
Project: MariaDB Server
Component/s: Storage Engine - Spider
Affects Version/s: None
Fix Version/s: N/A

Type: Bug Priority: Major
Reporter: Nayuta Yanagisawa (Inactive) Assignee: Nayuta Yanagisawa (Inactive)
Resolution: Won't Do Votes: 0
Labels: None


 Description   

If there are multiple (writable) Spider nodes, the content of the query cache of each node would be inconsistent. We simply disable the query cache on Spider tables to avoid inconsistency.

Setting thd->query_cache_is_applicable= 0 in ha_spider::register_query_cache_table() would fix the problem. To see how the function is used, check Query_cache::ask_handler_allowance().



 Comments   
Comment by Nayuta Yanagisawa (Inactive) [ 2022-06-05 ]

Already disabled by the following code:

uint8 ha_spider::table_cache_type()
{
  DBUG_ENTER("ha_spider::table_cache_type");
  DBUG_PRINT("info",("spider this=%p", this));
  DBUG_RETURN(HA_CACHE_TBL_NOCACHE);
}

Generated at Thu Feb 08 10:03:07 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.