Polkassembly Logo

Head 1
Head 3
Head 4
Create Pencil IconCreate
TRACKS
ORIGINS
Report an issueNeed help with something?
Foot 2
Foot 3
Foot 4
OpenGov
View All Discussion

[Kusama] Slash of COSMOON validator

user88c1369d8e604f2f8a965623f
5 years ago

Image
Hello, I'm gregorst, the owner of COSMOON validator.

During the night of 16 february, it occurred a critical bug on Kusama node which caused my validator to slash.

[Why it occurred only now?]

I always used rocksdb as db storage, recently I made the switch on paritydb.

[Exaplain the bug]

Normally, when we use RocksDb on kusama, when we start the polkadot process, it creates inside the db storage, (ex: .local/share/polkadot/chains/ksmcc3/db) a file called LOCK, which avoids other polkadot instances be running on the same machine.

Let's assume, if the process is not responding, there are situations where the process is not killed properly, thanks to the LOCK file, if the process restarts , when the old is still active, the LOCK file kills the execution.

A critical bug, is currently active in the all last releases of polkadot where, WHEN using paritydb, it doesn't create this really important LOCK file; so this is what happens:
The Polkadot process, not seeing the LOCK file, assumes the instance has been terminated successfully when this is not true, so it continues the starting phase of polkadot process, allowing two or more instances to run.

In my case, the second instance started due to the missing LOCK file, corrupting my paritydb, and sending a bad block, causing my slash.

Image

I ask the remotion of this slash due to the critical bug affecting paritydb

Polkadot version : Polkdot 0.8.28.1

[Debug]

Debugged on a new node, using screen

Kusama running with ParityDb:
Image

Kusama running with RockDb
Image

Comments (0)

PleaseLogin to comment

Help Center

Report an Issue
Feedback
Terms and Conditions
Github

Our Services

Docs
Terms of Website
Privacy Policy

A House of Commons Initiative.

Polka Labs Private Limited 2025

All rights reserved.

Terms and ConditionsTerms of Website
Privacy Policy