SRM 5.0: Optimize-tables Task Does Not Complete on SRM Backend Servers After Upgrade to SRM 5.0

Summary: Optimize-tables-apgX tasks fail with status 15 after upgrade of SRM to version 5.0.

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Symptoms

Taskrun logs for the optimized tables task showed the following errors:
yymmdd 09:51:38 : Starting task optimize-tables-apg2.
yymmdd 09:51:38 : Starting execution of subtask number 1.
yymmdd 09:51:38 : Terminate method (terminate) could not be found within the class. Task execution won't be notified if destroyed.
yymmdd 09:51:38 : 
yymmdd 09:51:39 : May 01, 2024 9:51:39 AM com.watch4net.apg.v2.mysql.utils.MySqlCommandRunner main
yymmdd 09:51:39 : INFO: Executing 'query' ...
yymmdd 09:51:39 : May 01, 2024 9:51:39 AM com.watch4net.apg.v2.mysql.utils.MySqlCommandRunner main
yymmdd 09:51:39 : INFO: MysqlcommandRunner:: main -connection obj- <<mysql8>>:com.watch4net.apg.v2.mysql.utils.data.MySqlConfiguration@19e1023e
yymmdd 09:51:40 : Loading class `com.mysql.jdbc.Driver'. This is deprecated. The new driver class is `com.mysql.cj.jdbc.Driver'. The driver is automatically registered via the SPI and manual loading of the driver class is generally unnecessary.
yymmdd 09:51:40 : May 01, 2024 9:51:40 AM com.watch4net.apg.v2.mysql.utils.runner.LogQueryRunner update
yymmdd 09:51:40 : INFO: LogQueryRunner::update conn <<mysql8>>: com.mysql.cj.jdbc.ConnectionImpl@29176cc1
yymmdd 09:51:40 : May 01, 2024 9:51:40 AM com.watch4net.apg.v2.mysql.utils.runner.LogQueryRunner update
yymmdd 09:51:40 : INFO: LogQueryRunner::update sql <<mysql8>>: OPTIMIZE TABLE data_variable
yymmdd 09:51:40 : May 01, 2024 9:51:40 AM com.watch4net.apg.v2.mysql.utils.runner.LogQueryRunner update
yymmdd 09:51:40 : INFO: LogQueryRunner::update params <<mysql8>>: null
yymmdd 09:51:40 : May 01, 2024 9:51:40 AM com.watch4net.apg.v2.mysql.utils.runner.LogQueryRunner update
yymmdd 09:51:40 : INFO: OPTIMIZE TABLE data_variable -> 0.012 (0.012)
yymmdd 09:51:40 : May 01, 2024 9:51:40 AM com.watch4net.apg.v2.mysql.utils.command.SqlQuery execute
yymmdd 09:51:40 : SEVERE: error executing query: OPTIMIZE TABLE data_variable
yymmdd 09:51:40 : java.sql.SQLException: Can not issue executeUpdate() or executeLargeUpdate() with statements that produce result sets Query: OPTIMIZE TABLE data_variable Parameters: []
yymmdd 09:51:40 :     at org.apache.commons.dbutils.QueryRunner.rethrow(QueryRunner.java:359)
yymmdd 09:51:40 :     at org.apache.commons.dbutils.QueryRunner.update(QueryRunner.java:428)
yymmdd 09:51:40 :     at com.watch4net.apg.v2.mysql.utils.runner.LogQueryRunner.update(LogQueryRunner.java:68)
yymmdd 09:51:40 :     at org.apache.commons.dbutils.QueryRunner.update(QueryRunner.java:484)
yymmdd 09:51:40 :     at org.apache.commons.dbutils.QueryRunner.update(QueryRunner.java:449)
yymmdd 09:51:40 :     at com.watch4net.apg.v2.mysql.utils.command.SqlQuery.execute(SqlQuery.java:49)
yymmdd 09:51:40 :     at com.watch4net.apg.v2.mysql.utils.MySqlCommandRunner.main(MySqlCommandRunner.java:236)
yymmdd 09:51:40 :     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
yymmdd 09:51:40 :     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
yymmdd 09:51:40 :     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
yymmdd 09:51:40 :     at java.lang.reflect.Method.invoke(Method.java:498)
yymmdd 09:51:40 :     at com.watch4net.component.loader.util.ComponentLauncher.invoke(ComponentLauncher.java:108)
yymmdd 09:51:40 :     at com.watch4net.component.loader.util.ComponentLauncher.main(ComponentLauncher.java:49)
yymmdd 09:51:40 :     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
yymmdd 09:51:40 :     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
yymmdd 09:51:40 :     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
yymmdd 09:51:40 :     at java.lang.reflect.Method.invoke(Method.java:498)
yymmdd 09:51:40 :     at com.watch4net.apg.scheduler.executor.JavaTaskProcessMain.callExecuteMethod(JavaTaskProcessMain.java:538)
yymmdd 09:51:40 :     at com.watch4net.apg.scheduler.executor.JavaTaskProcessMain.main(JavaTaskProcessMain.java:130)
yymmdd 09:51:40 : 
yymmdd 09:51:40 : Execute method (main) exited with a failure error code of -1
yymmdd 09:51:40 : Execution of subtask number 1 failed with status 15.
yymmdd 09:51:40 : Execution of task sequence with name optimize-tables-apg2 did not complete. Only 1 subtasks out of 2 were executed.
yymmdd 09:51:40 : Task optimize-tables-apg2 failed with status 15.

Cause

The SRM 5.0 upgrade process requires an update of the MySQL engine from myISAM to InnoDB. To that end, this task is no longer required and can be disabled. The task is not disabled out of the box and must be disabled manually. The optimize-tables.task is no longer required for InnoDB tables.

The situation is documented on the Dell Support SRM Product Page, in the M&R 8.0.0.0 Release Notes; HTLM or PDF format.

Resolution

To disable the optimized tables task, go to the SRM UI and follow the steps below:
  1. Log in to the SRM Frontend UI and go to Admin page
  2. Under Home > Physical Overview, click the Primary backend host
  3. Click Tasks mysql-maintenance-tool/Default/optimize-tables.task
  4. Click Disable to disable the task
  5. Click Home again, and click each additional backend
  6. Click Tasks > Disable the tasks for each backend
    • mysql-maintenance-tool/apg1/optimize-tables.task
    • mysql-maintenance-tool/apg2/optimize-tables.task
    • mysql-maintenance-tool/apg3/optimize-tables.task
    • mysql-maintenance-tool/apg4/optimize-tables.task
Article Properties
Article Number: 000225706
Article Type: Solution
Last Modified: 05 Jun 2024
Version:  1
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.