sarankk commented on code in PR #220: URL: https://github.com/apache/cassandra-sidecar/pull/220#discussion_r2114938834
########## server/src/main/java/org/apache/cassandra/sidecar/db/SystemAuthDatabaseAccessor.java: ########## @@ -146,11 +156,26 @@ public Map<String, Boolean> findAllRolesToSuperuserStatus() { BoundStatement statement = tableSchema.allRoles().bind(); ResultSet result = execute(statement); - Map<String, Boolean> roles = new HashMap<>(); - for (Row row : result) + List<Row> rows = result.all(); + Map<String, Boolean> roleToSuperUser = rows.stream() Review Comment: we cache it temporarily. For authorization we cache the super user status -- 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: pr-unsubscr...@cassandra.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: pr-unsubscr...@cassandra.apache.org For additional commands, e-mail: pr-h...@cassandra.apache.org