You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@uniffle.apache.org by "maobaolong (via GitHub)" <gi...@apache.org> on 2025/01/04 13:23:43 UTC

[PR] [MINOR] improvement(server): LocalFileNioWriter support writeIndex api [incubator-uniffle]

maobaolong opened a new pull request, #2320:
URL: https://github.com/apache/incubator-uniffle/pull/2320

   ### What changes were proposed in this pull request?
   
   Support WriteIndex api for LocalFileNioWriter.
   
   ### Why are the changes needed?
   
   - Finish the suggestion left in https://github.com/apache/incubator-uniffle/pull/2223#discussion_r1818333247 
   - Introduce the `LocalFileNullDeviceWriter` in the follow up PR.
   
   ### Does this PR introduce _any_ user-facing change?
   
   No.
   
   ### How was this patch tested?
   
   No need.
   


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


Re: [PR] [MINOR] improvement(server): LocalFileNioWriter support writeIndex api [incubator-uniffle]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #2320:
URL: https://github.com/apache/incubator-uniffle/pull/2320#issuecomment-2571310208

   ## Test Results
    2 966 files  ±0   2 966 suites  ±0   6h 28m 8s ⏱️ +50s
    1 100 tests ±0   1 098 ✅ ±0   2 💤 ±0  0 ❌ ±0 
   13 774 runs  ±0  13 744 ✅ ±0  30 💤 ±0  0 ❌ ±0 
   
   Results for commit 58dd3a29. ± Comparison against base commit 3b0521ab.
   
   [test-results]:data:application/gzip;base64,H4sIAGo8eWcC/02MSQ7DIBAEv2JxzgEzrPlMhFkkFNtEGE5W/h5wvB2rZrpW5MPoFvTsiOL80aGlhHxnW5LOIc7NAJGyqnrP7aPvMT7wtRRjmsNKXu4dPm13Cq/DWMW1cinFtJtU5q0KQtAdzyoIerl/FY7NvbrxPWriNIVcATFpLWiiFDPOeumxoRoGTikTknLs2AAMD71D3x+RMSvSFAEAAA==
   


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


Re: [PR] [MINOR] improvement(server): LocalFileNioWriter support writeIndex api [incubator-uniffle]

Posted by "rickyma (via GitHub)" <gi...@apache.org>.
rickyma commented on code in PR #2320:
URL: https://github.com/apache/incubator-uniffle/pull/2320#discussion_r1903605934


##########
storage/src/main/java/org/apache/uniffle/storage/handler/impl/LocalFileNioWriter.java:
##########
@@ -61,7 +66,12 @@ public void writeData(ByteBuf buf) throws IOException {
 
   @Override
   public void writeIndex(FileBasedShuffleSegment segment) throws IOException {
-    throw new UnsupportedOperationException("LocalFileNioWriter does not support index");
+    dataOutputStream.writeLong(segment.getOffset());

Review Comment:
   When will `dataOutputStream` be closed?



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


Re: [PR] [MINOR] improvement(server): LocalFileNioWriter support writeIndex api [incubator-uniffle]

Posted by "maobaolong (via GitHub)" <gi...@apache.org>.
maobaolong commented on PR #2320:
URL: https://github.com/apache/incubator-uniffle/pull/2320#issuecomment-2572431849

   @rickyma Appreciate for your review! I'm so careless to forget close `dataOutputStream` in the previous commit, and I corrected it by the newest commit, PTAL.


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


Re: [PR] [MINOR] improvement(server): LocalFileNioWriter support writeIndex api [incubator-uniffle]

Posted by "maobaolong (via GitHub)" <gi...@apache.org>.
maobaolong commented on PR #2320:
URL: https://github.com/apache/incubator-uniffle/pull/2320#issuecomment-2571479658

   @rickyma Would you like to take a look at this PR?


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


Re: [PR] [MINOR] improvement(server): LocalFileNioWriter support writeIndex api [incubator-uniffle]

Posted by "maobaolong (via GitHub)" <gi...@apache.org>.
maobaolong commented on PR #2320:
URL: https://github.com/apache/incubator-uniffle/pull/2320#issuecomment-2572821970

   @rickyma Thanks for your review! Merged.


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


Re: [PR] [MINOR] improvement(server): LocalFileNioWriter support writeIndex api [incubator-uniffle]

Posted by "maobaolong (via GitHub)" <gi...@apache.org>.
maobaolong merged PR #2320:
URL: https://github.com/apache/incubator-uniffle/pull/2320


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