[ https://issues.apache.org/jira/browse/HDDS-11187?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
ASF GitHub Bot updated HDDS-11187: ---------------------------------- Labels: pull-request-available (was: ) > Fix Event Handling Corruption in OMDBUpdatesHandler to Prevent > ClassCastException in Recon Server > ------------------------------------------------------------------------------------------------- > > Key: HDDS-11187 > URL: https://issues.apache.org/jira/browse/HDDS-11187 > Project: Apache Ozone > Issue Type: Bug > Components: Ozone Recon > Reporter: Arafat Khan > Assignee: Arafat Khan > Priority: Major > Labels: pull-request-available > Fix For: 1.5.0 > > > A *ClassCastException* occurs in the Recon server during the > FileSizeCountTask, where RepeatedOmKeyInfo is incorrectly cast to OmKeyInfo, > causing task processing to fail. > > {code:java} > 2024-06-11 10:40:03,700 INFO > org.apache.hadoop.ozone.recon.tasks.FileSizeCountTask: Completed a 'process' > run of FileSizeCountTask. > 2024-06-11 10:40:03,700 ERROR > org.apache.hadoop.ozone.recon.tasks.ReconTaskControllerImpl: Unexpected error > : > java.util.concurrent.ExecutionException: java.lang.ClassCastException: class > org.apache.hadoop.ozone.om.helpers.RepeatedOmKeyInfo cannot be cast to class > org.apache.hadoop.ozone.om.helpers.OmKeyInfo > (org.apache.hadoop.ozone.om.helpers.RepeatedOmKeyInfo and > org.apache.hadoop.ozone.om.helpers.OmKeyInfo are in unnamed module of loader > 'app') > at java.base/java.util.concurrent.FutureTask.report(FutureTask.java:122) > at java.base/java.util.concurrent.FutureTask.get(FutureTask.java:191) > at > org.apache.hadoop.ozone.recon.tasks.ReconTaskControllerImpl.processTaskResults(ReconTaskControllerImpl.java:247) > at > org.apache.hadoop.ozone.recon.tasks.ReconTaskControllerImpl.consumeOMEvents(ReconTaskControllerImpl.java:118) > at > org.apache.hadoop.ozone.recon.spi.impl.OzoneManagerServiceProviderImpl.syncDataFromOM(OzoneManagerServiceProviderImpl.java:511) > at > org.apache.hadoop.ozone.recon.spi.impl.OzoneManagerServiceProviderImpl.lambda$startSyncDataFromOM$0(OzoneManagerServiceProviderImpl.java:258) > at > java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) > at > java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305) > at > java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305) > at > java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) > at > java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) > at java.base/java.lang.Thread.run(Thread.java:834) > Caused by: java.lang.ClassCastException: class > org.apache.hadoop.ozone.om.helpers.RepeatedOmKeyInfo cannot be cast to class > org.apache.hadoop.ozone.om.helpers.OmKeyInfo > (org.apache.hadoop.ozone.om.helpers.RepeatedOmKeyInfo and > org.apache.hadoop.ozone.om.helpers.OmKeyInfo are in unnamed module of loader > 'app') > at > org.apache.hadoop.ozone.recon.tasks.NSSummaryTaskWithFSO.processWithFSO(NSSummaryTaskWithFSO.java:90) > at > org.apache.hadoop.ozone.recon.tasks.NSSummaryTask.process(NSSummaryTask.java:97) > at > org.apache.hadoop.ozone.recon.tasks.ReconTaskControllerImpl.lambda$consumeOMEvents$0(ReconTaskControllerImpl.java:113) > at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) > ... 3 more {code} -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@ozone.apache.org For additional commands, e-mail: issues-h...@ozone.apache.org