commit 87658dc4cc59f7c87d5631fbd6132b98384d396c
Author: Petr Malik <email address hidden>
Date: Thu Mar 10 22:41:59 2016 -0500
Pass optional timeout to service commands
Service commands may take some time to return.
The current code does not pass any timeout value into the execute
function resulting in the default 30s value being used.
That value turns out to be too short for certain datastores
(Cassandra) on slower/heavily-loaded systems.
Trove already has a timeout (default=3min) for instance state changes that
should be used instead (this timeout has already been used when
polling for database states).
The service command execute function have been updated to accept an
optional timeout kwargs (like the shell command execute function).
The state change timeout is now being passed in from DB
start/stop/restart calls.
Reviewed: https:/ /review. openstack. org/291941 /git.openstack. org/cgit/ openstack/ trove/commit/ ?id=87658dc4cc5 9f7c87d5631fbd6 132b98384d396c
Committed: https:/
Submitter: Jenkins
Branch: master
commit 87658dc4cc59f7c 87d5631fbd6132b 98384d396c
Author: Petr Malik <email address hidden>
Date: Thu Mar 10 22:41:59 2016 -0500
Pass optional timeout to service commands
Service commands may take some time to return. heavily- loaded systems.
The current code does not pass any timeout value into the execute
function resulting in the default 30s value being used.
That value turns out to be too short for certain datastores
(Cassandra) on slower/
Trove already has a timeout (default=3min) for instance state changes that
should be used instead (this timeout has already been used when
polling for database states).
The service command execute function have been updated to accept an stop/restart calls.
optional timeout kwargs (like the shell command execute function).
The state change timeout is now being passed in from DB
start/
Change-Id: I1ef45b95d9238a 52a26f630961657 755216786cb
Closes-Bug: 1556314