I have a situation, where we introduced new event and then released application. Unfortunately we need to rollback this application version so it means that we need to get rid completely of that newly introduced event (we removed that class from our app). Some of the customer used that event and it has been serialized to event store. Now, when applying new events on aggregate, deserialization fails, because java class does not exists anymore.
I would like to know if there is a way to ignore unknown events. There is option in XStream to ignoreElements however this option as i see ignore only fields, not whole classes. I was thinking if upcasting could do that job for me, but not sure how it can be achieved in code. Does anyone had similiar experience ? I need to add that i’m using default XStreamSerializer, nad using old 3.0.x axon framework version