Skip to content

Exception occurred when synchronizing blocks #6279

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
jakamobiii opened this issue Apr 7, 2025 · 6 comments
Open

Exception occurred when synchronizing blocks #6279

jakamobiii opened this issue Apr 7, 2025 · 6 comments
Assignees

Comments

@jakamobiii
Copy link

Software Versions

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

Expected behavior

The node is running normally and no exception should be thrown.

Actual behavior

An SR is deployed and only connected to fullnode A. After fullnode A is started, it had been synchronizing blocks normally for a while, but later it threw an exception. Does it have any impact on the system,and whether it will affect block synchronization?

Image

Frequency

Only appeared once.

@xxo1shine
Copy link
Contributor

@jakamobiii According to the log information, getBlockChainHashesOnFork failed, which may be related to your special network.

When Fullnode goes offline, SR is isolated, and it will generate blocks by itself and fork from the main chain.

After FullNode is started, it will synchronize blocks from SR and the main network at the same time. It is possible that as the main network blocks are processed and solidified, the blocks below the solidified blocks will be removed from KhaosDatabase. When processing the synchronization message from SR, it is possible that the parent blocks of the two chains may be removed from KhaosDatabase, resulting in the failure of getBlockChainHashesOnFork.

The connection will be disconnected after the exception, and it will return to normal when the connection is established again. The impact on the system is minimal and will not affect the synchronization and broadcast of blocks.

@jakamobiii
Copy link
Author

@xxo1shine OK, I got it, thanks. Is there any plan to fix this issue?

@xxo1shine
Copy link
Contributor

@jakamobiii Yes, considering that it has little impact on the system, it is planned to be fixed in the next version.

@fyyhtx
Copy link
Contributor

fyyhtx commented Apr 8, 2025

@xxo1shine Is it possible for the scenario you described to occur in the production environment of TRON? After all, the possibility of SR being isolated in the production environment is relatively low.

@xxo1shine
Copy link
Contributor

@fyyhtx In a production environment, the number of connections to an SR node is generally more than one, so it is not easy to be isolated. Therefore, in a production environment, this problem generally does not exist.

@xxo1shine
Copy link
Contributor

Milestone Update(2025-05-22)

  • Current Statusin-progress
  • Next Steps
    • Full-chain testing expected to be completed in late June
    • Submit code for review in late June
  • Responsible Persons@xxo1shine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: In Progress
Development

No branches or pull requests

4 participants