sarankk commented on code in PR #145:
URL: https://github.com/apache/cassandra-sidecar/pull/145#discussion_r1837544314
##########
server/src/main/java/org/apache/cassandra/sidecar/acl/IdentityToRoleCache.java:
##########
@@ -47,11 +46,18 @@ public IdentityToRoleCache(Vertx vertx,
systemAuthDatabaseAccessor::findRoleFromIdentity,
systemAuthDatabaseAccessor::findAllIdentityToRoles,
sidecarConfiguration.accessControlConfiguration().permissionCacheConfiguration());
- this.systemAuthDatabaseAccessor = systemAuthDatabaseAccessor;
}
public boolean containsKey(String identity)
{
- return cache != null && get(identity) != null;
+ try
+ {
+ return cache() != null && get(identity) != null;
+ }
+ catch (IllegalStateException e)
Review Comment:
Named it `SchemaUnavailableException`
--
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]