kadirozde commented on a change in pull request #839:
URL: https://github.com/apache/phoenix/pull/839#discussion_r459109140
##########
File path:
phoenix-core/src/it/java/org/apache/phoenix/end2end/IndexRebuildTaskIT.java
##########
@@ -178,11 +178,15 @@ public static void waitForTaskState(Connection conn,
PTable.TaskType taskType, S
String taskData = "";
do {
Thread.sleep(2000);
- ResultSet rs = conn.createStatement().executeQuery("SELECT * " +
+ String stmt = "SELECT * " +
" FROM " + PhoenixDatabaseMetaData.SYSTEM_TASK_NAME +
- " WHERE " + PhoenixDatabaseMetaData.TABLE_NAME + "='" +
expectedTableName + "' AND " +
Review comment:
Let's keep the table name in the query. When the task table is used for
other use cases, there might be other entries from some other tables in the
task table even during this IT
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]