Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
Description
A ClassCastException occurs in the Recon server during the FileSizeCountTask, where RepeatedOmKeyInfo is incorrectly cast to OmKeyInfo, causing task processing to fail.
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