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.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@drill.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to