ArafatKhan2198 opened a new pull request, #5043:
URL: https://github.com/apache/ozone/pull/5043
## What changes were proposed in this pull request?
This patch aims to address the following bug:
Recon encounters an error with the message:
`org.apache.hadoop.ozone.om.helpers.RepeatedOmKeyInfo cannot be cast to
org.apache.hadoop.ozone.om.helpers.OmKeyInfo`
The error occurs during event processing in the Recon server, specifically
within the `NSSummaryTaskWithFSO` class at
`line 91`. It appears to be a class casting issue, where an object of type
`RepeatedOmKeyInfo` is mistakenly cast as `OmKeyInfo`.
To resolve this bug, the recommended approach is to ignore events that
provide incorrect object types, as these are considered invalid. This approach
should be implemented in all the classes that handle updates for the KeyTable
and FileTable, ensuring that the incorrect events are properly filtered out
when applying updates to the snapshots in Recon via the omUpdate events.
The Classes that have these changes include :-
1. ContainerKeyMapperTask
2. NSSummaryTaskWithLegacy
3. NSSummaryTaskWithFSO
4. FileSizeCountTask
## What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-8310
## How was this patch tested?
The Existing UT's passed successfully
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]