Bad event partition error in Spectrum Report Manager (SRM)
search cancel

Bad event partition error in Spectrum Report Manager (SRM)

book

Article ID: 122262

calendar_today

Updated On:

Products

Spectrum

Issue/Introduction

Some of our clients are having issues running reports consistently. We recently ran a mysql check against our SRM database in PROD and seeing a bad partition. 

/ca/spectrum/mysql/bin 
./mysqlcheck --defaults-file=../my-spectrum.cnf -uroot -proot reporting 

reporting.event 
error : Partition EVENT_P98 returned error 
error : Unknown - internal error 147 during operation

Can this be resolved without initializing or rebuilding the SRM database?

Environment

Linux OS
Spectrum Any

Cause

It may be possible that low memory settings in the MySQL config file my-spectrum.cnf is preventing the mysqlcheck from reading larger table partitions. The table partition may not actually be corrupt. 

Resolution

Try increasing innodb_buffer_pool_size memory setting and run mysqlcheck again: 

1. Edit <SPECROOT>/mysql/my-spectrum.cnf file

Locate memory settings: 

innodb_file_per_table
innodb_buffer_pool_size = 256M
innodb_log_file_size = 256M
innodb_log_buffer_size = 4M

You can increase innodb_buffer_pool_size to 50% of available RAM. For example if there is 16GB of RAM available, the innodb_buffer_pool_size can be set to 8096M. For example: 

innodb_buffer_pool_size = 8096M

2. Once the file has been edited, you must restart MySQL for the change to take effect: 

cd to <SPECROOT>/bin

To stop MySQL: 

./cmdC localhost 2 MYSQL MYSQL.OUT

To start MySQL back up: 

./launchinstdbapp localhost MYSQL y MYSQL.OUT