You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@uniffle.apache.org by "zuston (via GitHub)" <gi...@apache.org> on 2023/06/02 09:57:11 UTC
[GitHub] [incubator-uniffle] zuston commented on a diff in pull request #775: [#757] feat(server): separate flush thread pools for different storage types
zuston commented on code in PR #775:
URL: https://github.com/apache/incubator-uniffle/pull/775#discussion_r1214170101
##########
server/src/main/java/org/apache/uniffle/server/buffer/ShuffleBuffer.java:
##########
@@ -107,7 +107,10 @@ public synchronized ShuffleDataFlushEvent toFlushEvent(
spBlocks,
isValid,
this);
- event.addCleanupCallback(() -> this.clearInFlushBuffer(event.getEventId()));
+ event.addCleanupCallback(() -> {
+ this.clearInFlushBuffer(event.getEventId());
+ spBlocks.forEach(spb -> spb.getData().release());
Review Comment:
> spBlocks.forEach(spb -> spb.getData().release());
This is for netty?
##########
server/src/main/java/org/apache/uniffle/server/storage/LocalStorageManager.java:
##########
@@ -181,6 +181,7 @@ public Storage selectStorage(ShuffleDataFlushEvent event) {
storage.getBasePath(), event);
}
} else {
+ event.setUnderStorage(storage);
Review Comment:
This is to check the storage is hdfs or localfile to put its corresponding thread pool ? Right?
--
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: issues-unsubscribe@uniffle.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For additional commands, e-mail: issues-help@uniffle.apache.org