Skip to content
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 distributed_kv_stm_tests on raft fixture #18425

Conversation

bashtanov
Copy link
Contributor

@bashtanov bashtanov commented May 13, 2024

As part of deprecating simple_raft_fixture in favour of raft_fixture, making distributed_kv_stm_tests to use the latter.

To avoid code duplication here and in future when porting further tests, a new test fixture template was created. It is a raft fixture equipped with one or multiple replicated STMs, and it provides a helper function to call STM functions on the leader node.

A minor change was made to the tested code in a separate commit.

Backports Required

  • none - not a bug fix
  • none - this is a backport
  • none - issue does not exist in previous branches
  • none - papercut/not impactful enough to backport
  • v24.1.x
  • v23.3.x
  • v23.2.x

Release Notes

  • none

Since list() returns kv_data_t it would make sense to make it public
@bashtanov bashtanov force-pushed the base-distributed_kv_stm_tests-on-raft_fixture branch from b7c47cb to 67f534a Compare May 13, 2024 14:09
@bashtanov
Copy link
Contributor Author

/dt

@bashtanov bashtanov marked this pull request as ready for review May 14, 2024 07:40
Create a raft stm fixture, make distributed_kv_stm_tests
and id_allocator_stm_test use it
@bashtanov bashtanov force-pushed the base-distributed_kv_stm_tests-on-raft_fixture branch from 67f534a to bc9c4f0 Compare May 14, 2024 08:24
@vbotbuildovich
Copy link
Collaborator

@bharathv bharathv merged commit 229aab0 into redpanda-data:dev May 16, 2024
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants