Affects Version/s: 7.0.X EE
Component/s: Dynamic Data Mapping
A ClassCastException occurs for the DDMStructureIndexerBackgroundTaskExecutor when attempting to modify a custom DDM structure that is used by a lot of asset types (Web Content, DDL, etc.)
Steps to reproduce:
1) Setup a unicast cluster.
2) On Node 1, create a custom Web Content Structure. 'testStructure123'
3) On Node 1, create a lot of articles using the structure from Step 2. In my testing, I created roughly 400+ articles.
4) On node 1, edit 'testStructure123' - add or remove a field. Save.
5) On node 2, edit 'testStructure123' - add or remove a field. Save.
Updating a custom structure should not cause a ClassCastException.
Upon updating a structure, a ClassCastException occurs.
Reproduced in ee-7.0.x (8e5c6ec09156d00ec2014bd7f45555141fceffb0).
Issue is not reproduced because of a new commit made to the Story ticket
The issue appears to be tied into how we handle the the Background Tasks:
We should not be able to assume it is a long. At best our assumption can be that it is a number.