Skip to content

Conversation

timothycoleman
Copy link
Contributor

@timothycoleman timothycoleman commented May 13, 2025

  1. PrepareAck -> UncommittedPrepareChased

UncommittedPrepareChased is sent by the StorageChaser when it reads uncommitted prepares

  1. CommitAck -> CommitChased

CommitChased is sent by the storage chaser when it reads a commit log record or a self committing prepare that ends an implicit transaction

1. PrepareAck -> UncommittedPrepareChased

UncommittedPrepareChased is sent by the StorageChaser when it reads uncommitted prepares

2. CommitAck -> CommitChased

CommitChased is sent by the storage chaser when it reads a commit log record or a self commiting prepare that ends an implicit transaction
@timothycoleman timothycoleman requested a review from Copilot May 13, 2025 09:45
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 renames storage message types in tests to improve clarity on the uncommitted prepare and commit scenarios. Key changes include:

  • Replacing StorageMessage.PrepareAck with StorageMessage.UncommittedPrepareChased.
  • Replacing StorageMessage.CommitAck with StorageMessage.CommitChased.
  • Updating subscriptions and published messages accordingly in various test files.

Reviewed Changes

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

Show a summary per file
File Description
src/KurrentDB.Core.Tests/Services/RequestManagement/WriteStreamMgr/when_write_stream_gets_timeout_after_cluster_commit.cs Renamed prepare message to UncommittedPrepareChased and kept commit messages unchanged.
src/KurrentDB.Core.Tests/Services/RequestManagement/WriteStreamMgr/when_write_stream_gets_already_committed_and_log_is_committed.cs Updated prepare message type to UncommittedPrepareChased.
src/KurrentDB.Core.Tests/Services/RequestManagement/WriteStreamMgr/when_write_stream_gets_already_committed.cs Replaced PrepareAck with UncommittedPrepareChased.
src/KurrentDB.Core.Tests/Services/RequestManagement/TransactionMgr/* Updated all PrepareAck occurrences to UncommittedPrepareChased and CommitAck to CommitChased across various transaction test scenarios.
src/KurrentDB.Core.Tests/Services/RequestManagement/Service/RequestManagerServiceSpecification.cs Modified subscriptions to use UncommittedPrepareChased instead of PrepareAck.
src/KurrentDB.Core.Tests/Services/RequestManagement/RequestManagerSpecification.cs Adjusted subscription for the new prepare message type.
src/KurrentDB.Core.Tests/Services/IndexCommitter/* Revised commit message type from CommitAck to CommitChased in multiple index committer test files.
Comments suppressed due to low confidence (1)

src/KurrentDB.Core.Tests/Services/IndexCommitter/when_index_commiter_service_receives_replicated_to_prepare_post_position.cs:1

  • The filename 'when_index_commiter_service_receives_replicated_to_prepare_post_position.cs' appears to have a typographical error; it should likely be 'when_index_committer_service_receives_replicated_to_prepare_post_position.cs' to match the naming consistency of other files.
Filename: when_index_commiter_service_receives_replicated_to_prepare_post_position.cs

@timothycoleman timothycoleman changed the title Rename storage messages for clarity [KDB-764] Rename storage messages for clarity May 13, 2025
Copy link
Contributor

Qodana for .NET

It seems all right 👌

No new problems were found according to the checks applied

💡 Qodana analysis was run in the pull request mode: only the changed files were checked
☁️ View the detailed Qodana report

Contact Qodana team

Contact us at qodana-support@jetbrains.com

@timothycoleman timothycoleman merged commit 17d5253 into master May 20, 2025
12 of 17 checks passed
@timothycoleman timothycoleman deleted the timothycoleman/rename-storage-messages branch May 20, 2025 11:13
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