Unable to execute queries due to atomic block
Condition
You may see the following error after submitting a query from Hue, while logging into Hue, or while saving documents and workflows: "TransactionManagementError: An error occurred in the current transaction. You can't execute queries until the end of the 'atomic' block."
Cause
If there is a load on Hue's backend database and slower processing of operations
such as saving documents or workflows, running INSERT or UPDATE queries from
multiple users, then the database puts an atomic block on the table rows. If you
are using MySQL or MariaDB as the backend database for Hue, then you can
increase the value of the innodb-lock-wait-timeout
parameter
along with a few other timeout parameters in the my.cnf file.