XRPLF / clio

An XRP Ledger API Server
https://xrpl.org
ISC License
57 stars 48 forks source link

Stop Clio when cache has error #1354

Open cindyyan317 opened 2 months ago

cindyyan317 commented 2 months ago

If successor table contains incorrect data:

  1. contains deleted object in list
  2. does not contain existing object in list

We should detect this ASAP and act before wrong data gets written to the DB.

For case 1, we can detect error here.

We shall stop Clio or disable cache to avoid writing more wrong data to successor table.

For case 2, we need shamap library to detect the corruption.

kennyzlei commented 1 month ago

After we have shamap library in libxrpl then we can work on addressing case 2. @cindyyan317 can you create a github issue on rippled side for the shamap library in libxrpl? 🙏

cindyyan317 commented 1 month ago

Feature requested: https://github.com/XRPLF/rippled/issues/5038