Build Forge persistent query resulting in Table Lock
![]()
There is a query that is stuck in the "preparing" state in our Build Forge MySQL database. It appears that the query itself is truncated:
UPDATE bf_buildenventry SET bf_default_id=NULL where bf_env_id IN (SELECT bf_id FROM bf_buildenv WHE I tried restarting our Build Forge instance but the query reappears. I tried killing the query on the database but it reappears after a couple of seconds. This query is causing table locks to appear when trying to interface with Build Forge e.g. deleting a schedule. I verified this by trying to delete a schedule through the management console and it returned: CRRBF0558I: Failed SQL query: [org.apache.commons.dbcp.DelegatingPreparedStatement@14aa14aa] => [java.sql.SQLException: Lock wait timeout exceeded; try restarting transaction After killing the suspect query. I was able to delete the schedule. I took a look at our Build Forge logs and found this occurring at regular intervals: Feb 16, 2012 10:54:51 AM com.buildforge.services.server.db.DBConnection errorQueryFailed I have no idea where this query is coming from nor why Build Forge is trying to pass a syntactically incorrect query to the MySQL database. Any suggestions or requests for additional information are welcome. Need help! |
One answer
![]()
You should contact support.
If buildforge is not passing the entire query to your DB, then there is something wrong with your instance of BF. |
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.