ChinmaySKulkarni commented on a change in pull request #550: PHOENIX-5348: Fix
flaky test: testIndexRebuildTask
URL: https://github.com/apache/phoenix/pull/550#discussion_r307901612
##########
File path: phoenix-core/src/main/java/org/apache/phoenix/schema/task/Task.java
##########
@@ -230,7 +231,13 @@ public static void deleteTask(PhoenixConnection conn,
PTable.TaskType taskType,
taskQuery += " AND " + PhoenixDatabaseMetaData.TASK_DATA + "
LIKE '%" + indexName + "%'";
}
- return populateTasks(connection, taskQuery);
+ List<TaskRecord> result = populateTasks(connection, taskQuery);
+ if (ts != null) {
+ // Adding TASK_TS to the where clause did not work. It returns
empty when directly querying with the timestamp.
+ result.removeIf(p -> !p.getTimeStamp().equals(ts));
Review comment:
This might complain for some branches which need to be source compatible
with Java 7 instead of 8
----------------------------------------------------------------
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]
With regards,
Apache Git Services