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

[PR] PHOENIX-7695 : ParallelPhoenixResultSet keeps the unused result set open for too long [phoenix]

rahulLiving opened a new pull request, #2293:
URL: https://github.com/apache/phoenix/pull/2293

   (no comment)


-- 
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@phoenix.apache.org

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


Re: [PR] PHOENIX-7695 : ParallelPhoenixResultSet keeps the unused result set open for too long [phoenix]

Posted by "rahulLiving (via GitHub)" <gi...@apache.org>.
rahulLiving commented on PR #2293:
URL: https://github.com/apache/phoenix/pull/2293#issuecomment-3367996546

   >There are some failures in FailoverPhoenixConnection2IT. Possibly related ?
   
   I thought so too. But all tests of `FailoverPhoenixConnection2IT` are passing in local. Ran it couple of times.


-- 
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@phoenix.apache.org

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


Re: [PR] PHOENIX-7695 : ParallelPhoenixResultSet keeps the unused result set open for too long [phoenix]

Posted by "tkhurana (via GitHub)" <gi...@apache.org>.
tkhurana commented on code in PR #2293:
URL: https://github.com/apache/phoenix/pull/2293#discussion_r2402847149


##########
phoenix-core-client/src/main/java/org/apache/phoenix/jdbc/ParallelPhoenixResultSet.java:
##########
@@ -147,6 +153,24 @@ public void resetMetrics() {
     context.resetMetrics();
   }
 
+  /**
+   * Closes the idle result set to release server resources immediately. This is called after we've
+   * bound to the winning result set.
+   */
+  private void closeIdleResultSet(CompletableFuture<ResultSet> idleFuture) {
+    idleFuture.whenComplete((resultSet, throwable) -> {
+      if (throwable == null && resultSet != null) {
+        try {
+          if (!resultSet.isClosed()) {

Review Comment:
   I think this check is redundant. The `close()` is a no-op if it is already 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@phoenix.apache.org

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


Re: [PR] PHOENIX-7695 : ParallelPhoenixResultSet keeps the unused result set open for too long [phoenix]

Posted by "tkhurana (via GitHub)" <gi...@apache.org>.
tkhurana commented on PR #2293:
URL: https://github.com/apache/phoenix/pull/2293#issuecomment-3366697024

   @rahulLiving There are some failures in FailoverPhoenixConnection2IT. Possibly related ?


-- 
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@phoenix.apache.org

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


Re: [PR] PHOENIX-7695 : ParallelPhoenixResultSet keeps the unused result set open for too long [phoenix]

Posted by "rahulLiving (via GitHub)" <gi...@apache.org>.
rahulLiving commented on PR #2293:
URL: https://github.com/apache/phoenix/pull/2293#issuecomment-3376498487

   @tkhurana Can you PTAL again ? Thanks


-- 
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@phoenix.apache.org

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


Re: [PR] PHOENIX-7695 : ParallelPhoenixResultSet keeps the unused result set open for too long [phoenix]

Posted by "tkhurana (via GitHub)" <gi...@apache.org>.
tkhurana merged PR #2293:
URL: https://github.com/apache/phoenix/pull/2293


-- 
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@phoenix.apache.org

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