-
Notifications
You must be signed in to change notification settings - Fork 101
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
base: main
Are you sure you want to change the base?
Conversation
dbb90ff
to
08610a0
Compare
70b7e6e
to
3e50dd2
Compare
f8a3bed
to
177855c
Compare
53636ed
to
0f65f08
Compare
b13920d
to
360eb77
Compare
d3a23c9
to
ab1281f
Compare
e83b688
to
b4c1959
Compare
There was a problem hiding this 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
tora_log_segments
in unit tests - Refactor
ra_snapshot_SUITE
to use the newbg_work
pattern and updatedpending
/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 theok
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 thect.hrl
include may cause undefined macro errors. Re-add the Common Test include if CT macros are still used.
-export([
611ab22
to
e368de3
Compare
60d81e4
to
c5ebfca
Compare
1. kill_wal/kill_member picks a random value between 1 and MAX_NODES, not the current number of members. These prevents very frequent kills if there's a small number of nodes 2. restore read_all_keys_loop and stop it when the tests stop
Without that, all values were read from the leader. When a get is performed on a member, the value is read locally
PR for visibility of v3 work.
See: https://github.com/rabbitmq/ra/milestone/7