advancedxy commented on code in PR #435:
URL: https://github.com/apache/incubator-uniffle/pull/435#discussion_r1053946497


##########
proto/src/main/proto/Rss.proto:
##########
@@ -77,6 +77,7 @@ message GetLocalShuffleDataRequest {
   int64 offset = 6;
   int32 length = 7;
   int64 timestamp = 8;
+  int32 storageId = 9;

Review Comment:
   Couldn't we just reuse the meta data in 
   `private final Map<PartitionUnionKey, ChainableLocalStorage> 
partitionsOfLocalStorage;`?
   
   Or another way would be that look up all the disk dirs to find the correct 
storage path?



##########
proto/src/main/proto/Rss.proto:
##########
@@ -77,6 +77,7 @@ message GetLocalShuffleDataRequest {
   int64 offset = 6;
   int32 length = 7;
   int64 timestamp = 8;
+  int32 storageId = 9;

Review Comment:
   I don't think this is a good design choice. It's leaking too much details to 
client.
   And there're other storage types that doesn't need local storage, such as 
`memory` and `memory_hdfs`.



-- 
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