You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Devesh Kumar Singh (Jira)" <ji...@apache.org> on 2023/02/09 04:29:00 UTC

[jira] [Assigned] (HDDS-7926) [hsync] Recon throws ClassCastException

     [ https://issues.apache.org/jira/browse/HDDS-7926?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Devesh Kumar Singh reassigned HDDS-7926:
----------------------------------------

    Assignee: Mohammad Arafat Khan

> [hsync] Recon throws ClassCastException
> ---------------------------------------
>
>                 Key: HDDS-7926
>                 URL: https://issues.apache.org/jira/browse/HDDS-7926
>             Project: Apache Ozone
>          Issue Type: Sub-task
>            Reporter: Wei-Chiu Chuang
>            Assignee: Mohammad Arafat Khan
>            Priority: Major
>
> Recon server doesn't show the correct number of files/keys.
> Found this error in Recon server:
> {noformat}
> 2023-02-08 14:30:30,774 ERROR org.apache.hadoop.ozone.recon.tasks.FileSizeCountTask: Unexpected exception while processing key /vol1/bucket1/hbase/MasterData/WALs/weic
> hiu-1.weichiu.root.hwx.site,22001,1675748204950/weichiu-1.weichiu.root.hwx.site%2C22001%2C1675748204950.1675865324614.
> java.lang.ClassCastException: org.apache.hadoop.ozone.om.helpers.RepeatedOmKeyInfo cannot be cast to org.apache.hadoop.ozone.om.helpers.OmKeyInfo
>         at org.apache.hadoop.ozone.recon.tasks.FileSizeCountTask.process(FileSizeCountTask.java:144)
>         at org.apache.hadoop.ozone.recon.tasks.ReconTaskControllerImpl.lambda$consumeOMEvents$0(ReconTaskControllerImpl.java:113)
>         at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
>         at java.lang.Thread.run(Thread.java:748)
> 2023-02-08 14:30:30,775 ERROR org.apache.hadoop.ozone.recon.tasks.ReconTaskControllerImpl: Unexpected error :
> java.util.concurrent.ExecutionException: java.lang.ClassCastException: org.apache.hadoop.ozone.om.helpers.RepeatedOmKeyInfo cannot be cast to org.apache.hadoop.ozone.om.helpers.OmKeyInfo
>         at java.util.concurrent.FutureTask.report(FutureTask.java:122)
>         at java.util.concurrent.FutureTask.get(FutureTask.java:192)
>         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:503)
>         at org.apache.hadoop.ozone.recon.spi.impl.OzoneManagerServiceProviderImpl.lambda$startSyncDataFromOM$0(OzoneManagerServiceProviderImpl.java:258)
>         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
>         at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
>         at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
>         at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
>         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
>         at java.lang.Thread.run(Thread.java:748)
> Caused by: java.lang.ClassCastException: org.apache.hadoop.ozone.om.helpers.RepeatedOmKeyInfo cannot be cast to org.apache.hadoop.ozone.om.helpers.OmKeyInfo
>         at org.apache.hadoop.ozone.recon.tasks.NSSummaryTaskWithLegacy.processWithLegacy(NSSummaryTaskWithLegacy.java:93)
>         at org.apache.hadoop.ozone.recon.tasks.NSSummaryTask.process(NSSummaryTask.java:99)
>         at org.apache.hadoop.ozone.recon.tasks.ReconTaskControllerImpl.lambda$consumeOMEvents$0(ReconTaskControllerImpl.java:113)
>         at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>         ... 3 more{noformat}
> I suspect this is because the value of the deletedTable OMMetadataManager.getDeletedTable() is RepeatedOmKeyInfo, unlike like other tables where the value is OmKeyInfo.
>  
> We need to do better type check here.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org