hashgraph / hedera-services

Crypto, token, consensus, file, and smart contract services for the Hedera public ledger
Apache License 2.0
313 stars 136 forks source link

PCLI `event-stream recover` broken on `develop` #14048

Closed tinker-michaelj closed 3 months ago

tinker-michaelj commented 4 months ago

Description

I tried to replay events for diff testing from v0.50.1 state (round 175159002) and got,

2024-06-25 20:15:03.648 8        INFO  STARTUP          <main> EventRecoveryWorkflow: Applying 478 events from round 175159003
java.lang.ClassCastException: class com.swirlds.platform.event.PlatformEvent cannot be cast to class com.swirlds.platform.system.events.DetailedConsensusEvent (com.swirlds.platform.event.PlatformEvent and com.swirlds.platform.system.events.DetailedConsensusEvent are in unnamed module of loader 'app')
    at com.swirlds.platform.recovery.EventRecoveryWorkflow.handleNextRound(EventRecoveryWorkflow.java:381)
    at com.swirlds.platform.recovery.EventRecoveryWorkflow.reapplyTransactions(EventRecoveryWorkflow.java:337)
    at com.swirlds.platform.recovery.EventRecoveryWorkflow.recoverState(EventRecoveryWorkflow.java:173)
    at com.swirlds.platform.cli.EventStreamRecoverCommand.call(EventStreamRecoverCommand.java:129)
    at com.swirlds.platform.cli.EventStreamRecoverCommand.call(EventStreamRecoverCommand.java:34)
    at picocli.CommandLine.executeUserObject(CommandLine.java:1953)

Steps to reproduce

Run PCLI event-stream recover starting from round 175159002.

Additional context

No response

Hedera network

other

Version

develop

Operating system

None