Skip to content

feat: main_loop_status mainly for debugging

Georgy Moshkin requested to merge gmoshkin/main-loop-status into master

Summary

  • feat: main_loop_status mainly for debugging and testing

Raft status struct now has an additional field: main_loop_status. It's just a string with info explaining, why the main loop has yielded. So most of the time this is going to be just "idle" meaning that all of the raft stuff is handled and it's waiting fot the next tick. But sometimes this is going to be "sending raft messages", "persisting raft entries".

This is very useful for debugging and for testing, this is used in !673 (merged)

Ensure that

  • New code is covered by tests
  • API is documented
  • Changelog is up to date
  • (if Lua API changed) Lua API version is bumped in luamod.rs
  • (if necessary) A follow-up doc issue is created in picodata/docs and linked here

Merge request reports