DescriptionSandro Bonazzola
2013-03-14 13:17:01 UTC
While testing bug #877749 it has been noted that rhevm-upgrade fails detecting running async tasks.
It seems that the output from "select * from fn_db_get_async_tasks()" is changed and upgrade-engine can't detect active tasks correctly.
It searched for the string RECORD in the output of the query but it seems that the keyword is not present anymore.
No, this is not a dup.
The problem is in a wrong parsing of the output of the SELECT command.
The suggested solution:
1. Run the SELECT query with COUNT() statement and compare to 0.
2. If >0, run again without COUNT and display the results.
3. If ==0, return ''.
This way we won't have to really parse the text output from the SQL query.
(In reply to comment #5)
> The suggested solution:
>
> 1. Run the SELECT query with COUNT() statement and compare to 0.
> 2. If >0, run again without COUNT and display the results.
> 3. If ==0, return ''.
Looks good to me. The same solution should be applied also to compensations.