deniskuzZ commented on code in PR #6379:
URL: https://github.com/apache/hive/pull/6379#discussion_r3001131500
##########
llap-server/src/java/org/apache/hadoop/hive/llap/io/api/impl/LlapIoImpl.java:
##########
@@ -324,8 +324,12 @@ public long
evictEntity(LlapDaemonProtocolProtos.EvictEntityRequestProto protoRe
if (LOG.isDebugEnabled()) {
StringBuilder sb = new StringBuilder();
sb.append(markedBytes).append(" bytes marked for eviction from LLAP
cache buffers that belong to table(s): ");
- for (String table :
request.getEntities().get(request.getSingleDbName()).keySet()) {
- sb.append(table).append(" ");
+ String catalog = request.getSingleCatalogName();
+ String db = request.getSingleDbName();
+ if (catalog != null && db != null) {
Review Comment:
maybe
````
request.getEntities()
.getOrDefault(catalog, Map.of())
.getOrDefault(db, Set.of())
.forEach(table -> sb.append(table).append(" "));
````
--
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]