Skip to content

Commit

Permalink
[#26258] build: Fix Java compile
Browse files Browse the repository at this point in the history
Summary:
Java build currently fails with:
```
yugabyte-db/java/yb-pgsql/src/test/java/org/yb/pgsql/TestYbQueryDiagnostics.java:[1426,13] method waitForBundleCompletion in class org.yb.pgsql.TestYbQueryDiagnostics cannot be applied to given types;
[2025-03-03T15:56:19.034Z]   required: java.lang.String,java.sql.Statement,int
[2025-03-03T15:56:19.034Z]   found: java.lang.String,java.sql.Statement
[2025-03-03T15:56:19.034Z]   reason: actual and formal argument lists differ in length
```

0260740 added a duplicate definition of waitForBundleCompletion from merge, which was removed in 9744a98 and added back in in add35db.
Jira: DB-15601

Test Plan: Jenkins: urgent, compile only, compiler: gcc

Reviewers: mlillibridge

Reviewed By: mlillibridge

Subscribers: mlillibridge, yql, ybase

Tags: #jenkins-ready

Differential Revision: https://phorge.dev.yugabyte.com/D42256
  • Loading branch information
es1024 committed Mar 3, 2025
1 parent 72484a6 commit 42c3155
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,10 @@ private Path runQueryDiagnostics(Statement statement, String queryId,
return Paths.get(resultSet.getString("yb_query_diagnostics"));
}

private void waitForBundleCompletion(String queryId, Statement statement) throws Exception {
waitForBundleCompletion(queryId, statement, 0);
}

/*
* Waits for the bundle to complete by checking the yb_query_diagnostics_status view.
*/
Expand Down

0 comments on commit 42c3155

Please sign in to comment.