rabbitmq / ra

A Raft implementation for Erlang and Elixir that strives to be efficient and make it easier to use multiple Raft clusters in a single system.
Other
813 stars 96 forks source link

fix ra:overview/1 wal status entry #280

Closed flaviogrossi closed 2 years ago

flaviogrossi commented 2 years ago

fix ra:overview/1 to get wal status from the configured name in the system config, instead of using ra_log_wal, which is only valid for the default system

Proposed Changes

Currently ra:overview/1 gets wal status by calling sys:get_status(ra_log_wal), which is only valid for the default system, and it fails with noproc if the default system is not started. The proposed fix uses the names section from the system info to get the right name, exactly as it is already done for the segment writer, etc.

Types of Changes

What types of changes does your code introduce to this project? Put an x in the boxes that apply

Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask on the mailing list. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

Further Comments

If this is a relatively large or complex change, kick off the discussion by explaining why you chose the solution you did and what alternatives you considered, etc.

michaelklishin commented 2 years ago

Thank you!