Skip to content

[Bug]Event cache not cleared on reorg causing duplicate and inconsistent event delivery #6678

@xxo1shine

Description

@xxo1shine

Software Versions

OS: Linux
JVM: Oracle Corporation 1.8.0_161 amd64
Version: 4.8.1

Expected Behavior

After a transaction is executed and events are generated, external subscription systems should receive unique finalized event data that is consistent with the chain.

Actual Behavior

In a private network deployment, when the event service is using version 0, the event cache of the old fork chain is not cleared when a chain reorg occurs.

As a result, event data from both the forked chain and the new main chain are written into the database simultaneously. External subscribers may therefore receive duplicate or inconsistent event data.

Image

Frequency

This issue may occur whenever a chain reorganization happens and contract event solidification (finalization) is enabled.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions