You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by "swaminathanmanish (via GitHub)" <gi...@apache.org> on 2023/09/05 16:54:23 UTC

[GitHub] [pinot] swaminathanmanish commented on a diff in pull request #11490: Ensure dataStream is closed even when offsetStream fails to flush

swaminathanmanish commented on code in PR #11490:
URL: https://github.com/apache/pinot/pull/11490#discussion_r1316152953


##########
pinot-core/src/main/java/org/apache/pinot/core/segment/processing/genericrow/GenericRowFileWriter.java:
##########
@@ -66,7 +65,10 @@ public void write(GenericRow genericRow)
   @Override
   public void close()
       throws IOException {
-    _offsetStream.close();
-    _dataStream.close();
+    try {

Review Comment:
   Yes, we need the exception, but at the same time close resources. I prefer the current way, unless you strongly feel otherwise. 



-- 
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: commits-unsubscribe@pinot.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org