Hello,
On top of our database, we have an application that, at startup, tries to reorganize partitions on the tables that we want to do housekeeping on.
We do this with queries such as :
ALTER TABLE "SCHEMA"."TABLE" PARTITION BY EXTRACT(MINUTE FROM TASK_START_TIME) + EXTRACT(HOUR FROM TASK_START_TIME) * 100 + EXTRACT(DAY FROM TASK_START_TIME) * 10000 + EXTRACT(MONTH FROM TASK_START_TIME) * 1000000 + EXTRACT(YEAR FROM TASK_START_TIME) * 100000000 REORGANIZE
This used to work well when the database was "empty", but as the database grows, we almost systematically gets error like:
ERROR: Unavailable: [Txn 0xa0000003cfe36f] O lock table - timeout error Timed out O locking Table:SCHEMA.TABLE
And the application fails to start.
Any advise on what we could try to avoid this ?
Thanks
Sign up
Already have an account? Login
Welcome to the Rocket Forum!
Please log in or register:
Employee Login | Registration Member Login | RegistrationEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.