[ https://issues.apache.org/jira/browse/DRILL-8504?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17888474#comment-17888474 ]
ASF GitHub Bot commented on DRILL-8504: --------------------------------------- cgivre commented on code in PR #2929: URL: https://github.com/apache/drill/pull/2929#discussion_r1796231758 ########## contrib/storage-splunk/src/main/java/org/apache/drill/exec/store/splunk/SplunkSchema.java: ########## @@ -94,6 +109,10 @@ public CreateTableEntry createNewTable(String tableName, List<String> partitionC .message(plugin.getName() + " is not writable.") .build(logger); } + // Clear the index cache. + if (useCache) { + cache.invalidate(getNameForCache()); Review Comment: @jnturton I think that's exactly what it does. The `invalidate` is just the delete method, so the code there removes any cache entries with that entry. Also as an FYI, the cache adds the username to the index name so that if user translation is enabled, users will not see other users' cache. > Add Schema Caching to Splunk Plugin > ----------------------------------- > > Key: DRILL-8504 > URL: https://issues.apache.org/jira/browse/DRILL-8504 > Project: Apache Drill > Issue Type: Improvement > Components: Storage - Splunk > Affects Versions: 1.21.2 > Reporter: Charles Givre > Assignee: Charles Givre > Priority: Major > Fix For: 1.22.0 > > > See PR -- This message was sent by Atlassian Jira (v8.20.10#820010)