task-list can hang if the 'published' field is big enough

Bug #1709308 reported by Kupai József
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
python-mistralclient
Fix Committed
Undecided
Kupai József

Bug Description

'mistral taks-list' can hang if any of the 'longtext' fields contains relatively big data.

In my particular case the size of the published field contained ~3MB sized json data on average, and even with the default limit (100 entries), this can hang and possibly cause timeouts.

It is unnecessary to query all of the fields, instead the client should specify the fields that are about to be displayed. I verified the case with these queries:

curl http://localhost:8989/v2/tasks?fields=id
curl http://localhost:8989/v2/tasks?fields=published

The first one was nearly instant, while the latter took minutes to complete.

Kupai József (kupsef)
Changed in python-mistralclient:
assignee: nobody → Kupai József (kupsef)
Revision history for this message
Andras Kovi (akovi) wrote :

This bug has been addressed in https://review.openstack.org/#/c/491780/. We can set the status to fix committed.

Changed in python-mistralclient:
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.