SRM Synchronization for the some landscapes is not taking place. From the Spectrum WEB GUI -> Administration -> SPECTRUM Status, the Last Event Time for some landscapes is stuck to several days before.
The following exception is generated repeatedly in the Spectrum Tomcat log file:
Aug 16, 2021 19:14:17.601 (SRM/EventPoller/<LANDSCAPE>) (SRM_Events) - (ERROR) - Expection occurs while retrieving events for <LANDSCAPE>. retrying in cycle
Caused by: exception com.aprisma.spectrum.core.idl.CsCException.CsCSpectrumException {
com.aprisma.spectrum.core.idl.CsCError.CsCError_e error=DOES_NOT_EXIST,
java.lang.String messageFormatID="CsCEventDomain.getNextEventListByAttrFilter.requestID.DOES_NOT_EXIST",
com.aprisma.spectrum.core.idl.CsCAttribute.CsCValue[] messageValueList={union com.aprisma.spectrum.core.idl.CsCAttribute.CsCValue {
java.lang.String textString="CsEventDSrvc.cc"
},union com.aprisma.spectrum.core.idl.CsCAttribute.CsCValue {
java.lang.String textString="%I% %G% %U%"
},union com.aprisma.spectrum.core.idl.CsCAttribute.CsCValue {
int intValue=962
},union com.aprisma.spectrum.core.idl.CsCAttribute.CsCValue {
java.lang.String textString="<LANDSCAPE>"
},union com.aprisma.spectrum.core.idl.CsCAttribute.CsCValue {
int intValue=0
},union com.aprisma.spectrum.core.idl.CsCAttribute.CsCValue {
java.lang.String textString="<LANDSCAPE>/CsCEventDomain"
},union com.aprisma.spectrum.core.idl.CsCAttribute.CsCValue {
int intValue=1843
}}
}
at com.aprisma.spectrum.core.idl.CsCException.CsCSpectrumExceptionHelper.read(CsCSpectrumExceptionHelper.java:40)
at com.aprisma.spectrum.core.idl._CsCEventDomainStub.getNextEventListByAttrFilter(_CsCEventDomainStub.java:1458)
at com.aprisma.spectrum.app.repmgr.dc.event.EventDataModel.getEvents(EventDataModel.java:452)
at com.aprisma.spectrum.app.repmgr.dc.event.EventPoller.doHandleEvents(EventPoller.java:910)
at com.aprisma.spectrum.app.repmgr.dc.event.EventPoller.handleEvents(EventPoller.java:801)
at com.aprisma.spectrum.app.repmgr.dc.event.EventPollerTask.run(EventPollerTask.java:100)
at com.aprisma.util.TimerThread.mainLoop(TimerEx.java:617)
at com.aprisma.util.TimerThread.run(TimerEx.java:535)
Even after applying changes advised in KB : Event sync between Archive Manager & SRM very slow with CORBA "DOES_NOT_EXIST" exception found in Spectrum Tomcat log however the SRM event synchronization remains extremely slow.
Release : 20.2,21.2
Component : Spectrum Core / SpectroSERVER
This is generally indicative of performance issues with regard to SRM on the OneClick server. The following are some techniques that may alleviate the issue:
$SPECROOT/tomcat/webapps/spectrum/WEB-INF/web.xml
<context-param xmlns="">
<param-name>com.aprisma.reportmanager.MaxLandscapeThreads</param-name>
<param-value>6</param-value>
<description>
The maximum number of landscapes that will be read in parallel.
</description>
</context-param>
mysql> SELECT HEX(type), COUNT(*) AS cnt FROM event GROUP BY type ORDER BY cnt DESC LIMIT 10;
+-----------+-----------+
| HEX(type) | cnt |
+-----------+-----------+
| 10802 | 429879784 |
| 210D88 | 111465994 |
...
DELETE FROM event WHERE type=<EVENT_TYPE>;
$SPECROOT/SS/DDM/db_optimize.pl
a. Copy the event-processing-filter.xml and event-processing-filter-schema.xsd files to the 'custom' directory. For example, see the following syntax:
cp <$SPECROOT>/tomcat/webapps/spectrum/WEB-INF/repmgr/config/event-processing-filter-schema.xsd <$SPECROOT>/custom/repmgr/config/
cp <$SPECROOT>/tomcat/webapps/spectrum/WEB-INF/repmgr/config/events/event-processing-filter.xml <$SPECROOT>/custom/repmgr/config/
b. Edit the event-processing-filter.xml to reflect your selected filtering strategy.
For example, see the following syntax:
<ignore>
<event-type>0x10802</event-type>
<model>0x00d40010</model>
</ignore>
Note: You can only ignore events that are associated with specific models or event types.
c. Restart the Tomcat service.
The specified event processing filters are now in effect.
Note: Events code listed in Appendix A. DX NetOps Spectrum Events Used by Report Manager (broadcom.com) should not be added in the event-processing-filter.xml file.If the number of events to delete (select count(*) from event where type=0x10802;) is very huge, you could delete only a subset specifying a time range of one week at time.
eg.
delete from event where type=0x10802 and from_unixtime(utime) > '2020-05-01 00:00:00' and from_unixtime(utime) < '2020-05-07 00:00:00';
delete from event where type=0x10802 and from_unixtime(utime) > '2020-05-08 00:00:00' and from_unixtime(utime) < '2020-05-15 00:00:00';
...