The data aggregator crashes when attempting to restart after the data repository nodes fail
Restarting DA does not make a difference, an error similar to the following in the karaf,out on the Data Aggregator:
ERROR | xtenderThread-26 | <TIMESTAMP> | ContextLoaderListener | BundleApplicationContextListener 50 | gframework.osgi.extender | | Application context refresh failed (OsgiBundleXmlApplicationContext(bundle=com.ca.im.data-manager.core.aggregator.checkdbstate, config=osgibundle:/META-INF/spring/*.xml))
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean#0': Invocation of init method failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dbStateManager': Invocation of init method failed; nested exception is java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
...
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dbStateManager': Invocation of init method failed; nested exception is java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
Release : 20.2
Component : PM Data Aggregator
Defect: DE508436
This issue is corrected in DX Netops Performance Management 21.2.4 and later.
Symptom: The data aggregator crashes when attempting to restart after the data repository nodes fail.
Resolution: Added empty list check to query for active data aggregator.
(21.2.4, DE508436, 32766888)
Workaround:
Stop the Data Aggregator.
On the Data Repository run:
/opt/vertica/bin/vsql -Udradmin -wdradminpassword -e " SELECT clear_data_collector();"
Replace dradmin/dradminpassword with the DR admin username/password.
3. Verify the Data Aggregator can be started again.