Manually Recovering Events from Streamed Event Files
Use the create_event_files_from_txn_logs.py script to manually recover events from a Streamed Event File (SEF). This script creates an output file containing events from a given Global Transaction Counter (GTC) range for SEFs.
By default, files are saved to the current directory. The file output location is configurable.
You use this script to recover events after receiving error messages that call for manual
recoveries, like
these:
LM_ERROR 12565|4110 2020-02-06 21:52:41.463720 [event_stream_server_2:2:1:1(5200.72299)] |
EventStreamReader::EventStreamReader::loadGtcsFromFile: Detected missing GTCs: 148256176 ...
148256176. Manual recovery is required.
LM_ERROR 12565|4110 2020-02-06 21:52:42.978290 [event_stream_server_2:2:1:1(5200.72299)] |
EventStreamReader::EventStreamReader::loadGtcsFromFile: Detected missing GTCs: 148256176 ...
148256176. Manual recovery is required
To recover events manually from the Event Streaming Framework:
- Record the lowest GTC in the first error message.
- Record the lowest GTC from the next (good) SEF file.
- Run
create_event_files_from_txn_logs.py
while using the two GTCs you recorded as the StartingGTC and EndingGTC. You must manually create the output directory.For more information, see the discussion about create_event_files_from_txn_logs.py.
- Fail over the standby publishing pod.
Note: Events are recovered from SEF files in MATRIXX Event File (MEF) streaming
environments. If the automatic recovery of events is disabled or fails for any reason, you can
still use the manual recovery process.