lukasz-antoniak commented on code in PR #340:
URL: https://github.com/apache/cassandra-sidecar/pull/340#discussion_r3137334951


##########
server/src/main/java/org/apache/cassandra/sidecar/handlers/validations/ValidateTableExistenceHandler.java:
##########
@@ -97,7 +103,14 @@ protected void handleInternal(RoutingContext context,
             }
 
             TableMetadata tableMetadata = keyspaceMetadata.getTable(table);
-            if (tableMetadata == null)
+            boolean tableExists = tableMetadata != null;
+            if (!tableExists)
+            {
+                tableExists = driverUnsupportedSchemaCache.getTableSchema(new 
Name(keyspaceMetadata.getName()),
+                                                                          new 
Name(table),
+                                                                          
false) != null;

Review Comment:
   Do not refresh if table schema is not present in cache (prevent blocking due 
to CQL query).



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to