gokceni commented on a change in pull request #550: PHOENIX-5348: Fix flaky
test: testIndexRebuildTask
URL: https://github.com/apache/phoenix/pull/550#discussion_r312677886
##########
File path:
phoenix-core/src/main/java/org/apache/phoenix/coprocessor/tasks/IndexRebuildTask.java
##########
@@ -162,7 +163,9 @@ private String getJobID(String data) {
Cluster cluster = new Cluster(configuration);
Job job =
cluster.getJob(org.apache.hadoop.mapreduce.JobID.forName(jobID));
-
+ if (job == null) {
Review comment:
When you kick the task and it runs index tool, cluster.getJob doesn't return
a job immediately sometimes. We have to come back and requery the job status
when we find the job from cluster.getJob
----------------------------------------------------------------
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