Skip to content

Ra v3 #494

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

Draft
wants to merge 72 commits into
base: main
Choose a base branch
from
Draft

Ra v3 #494

wants to merge 72 commits into from

Conversation

kjnilsson
Copy link
Contributor

PR for visibility of v3 work.

See: https://github.com/rabbitmq/ra/milestone/7

Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR brings test suites in line with the v3 work by updating snapshot and log APIs, renaming backends, and removing obsolete tests.

  • Rename ra_log_reader to ra_log_segments in unit tests
  • Refactor ra_snapshot_SUITE to use the new bg_work pattern and updated pending/complete_snapshot signatures
  • Update WAL and memory tests to expect lists of indexes instead of tuple ranges, and remove the legacy property-based suite

Reviewed Changes

Copilot reviewed 52 out of 55 changed files in this pull request and generated no comments.

Show a summary per file
File Description
test/unit_SUITE.erl Replace ra_log_reader with ra_log_segments
test/ra_snapshot_SUITE.erl Migrate snapshot tests to new begin_snapshot/pending API
test/ra_log_wal_SUITE.erl Adapt await_written to expect lists of indexes
test/ra_log_memory.erl Change install_snapshot/4 to match new live‐indexes signature
test/ra_machine_ets_SUITE.erl Remove Common Test include (ct.hrl)
test/ra_log_props_SUITE.erl Delete entire deprecated property-based suite
Comments suppressed due to low confidence (2)

test/ra_log_memory.erl:174

  • The new install_snapshot/4 clause returns {ok, State, []} but the expected return is {State, List}. Remove the ok atom so it matches the spec and callers ({State, []}).
    {ra_log_memory_state(), list()}.

test/ra_machine_ets_SUITE.erl:12

  • The Common Test macros (e.g. ct:pal) are used elsewhere in this file. Removing the ct.hrl include may cause undefined macro errors. Re-add the Common Test include if CT macros are still used.
-export([

@kjnilsson kjnilsson force-pushed the v3 branch 3 times, most recently from 611ab22 to e368de3 Compare July 4, 2025 15:11
@kjnilsson kjnilsson force-pushed the v3 branch 2 times, most recently from 60d81e4 to c5ebfca Compare July 17, 2025 16:01
kjnilsson and others added 5 commits July 22, 2025 12:14
Without that, all values were read from the leader.
When a get is performed on a member, the value is read locally
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants