Skip to content

Conversation

lsytj0413
Copy link
Contributor

@lsytj0413 lsytj0413 commented Jun 20, 2025

fix: #3284

@lsytj0413 lsytj0413 force-pushed the fix3284 branch 2 times, most recently from 7fc356c to 241450f Compare June 21, 2025 15:10
@lsytj0413
Copy link
Contributor Author

@muhamadazmy ptal

@AhmedSoliman AhmedSoliman requested a review from muhamadazmy June 23, 2025 11:51
Copy link
Contributor

@muhamadazmy muhamadazmy left a comment

Choose a reason for hiding this comment

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

Dear @lsytj0413, Thank you so much for taking care of this. It is definitely much better.

I only left only 2 comments to clean up few things. Then we can merge.

Another thing that you might have missed is cleaning up the dependencies in the partition-store/Cargo.toml for example to remove

[build-dependencies]
prost-build = { workspace = true }

And any other prost dependencies that is no longer needed

Once those changes are done, we can proceed with the merge

@@ -0,0 +1 @@
pub mod protobuf_types;
Copy link
Contributor

Choose a reason for hiding this comment

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

Wondering why do we need the "partition_store" module. Can we instead include the protobuf_types.rs directly under the storage-api so it's storage_api::protobuf_types instead of storage_api::partition_store::protobuf_types?

Completed, Free, Inboxed, Invoked, Suspended,
};
use crate::protobuf_types::v1::invocation_status_v2::JournalTrimPoint;
use crate::protobuf_types::v1::journal_entry::completion_result::{
use crate::partition_store::protobuf_types::v1::invocation_status_v2::JournalTrimPoint;
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe it's a good idea to clean up this. It's easier to read without this long prefix since it's a sub-module

Suggested change
use crate::partition_store::protobuf_types::v1::invocation_status_v2::JournalTrimPoint;
use invocation_status_v2::JournalTrimPoint;

This suggestion applies to all sub-modules here

@lsytj0413
Copy link
Contributor Author

@muhamadazmy I have fixed most of it, expect below:

  1. we can't remove prost from partition-store's dependency, because it was used at https://github.com/restatedev/restate/blob/main/crates/partition-store/src/keys.rs#L16
  2. i change crate::partition_store::protobuf_types::v1::invocation_status_v2::JournalTrimPoint to super::invocation_status_v2::JournalTrimPoint,because it's invalid with dedup_sequence_number::Variant, currently i didn't know why invocation_status_v2::JournalTrimPoint works but dedup_sequence_number::Variant not

@muhamadazmy
Copy link
Contributor

Thanks @lsytj0413 for the quick fix. That is totally fine. I wasn't sure if prost still used or not. Same for the use path.

I will merge once the CI passes. Thanks again for your fine work :)

@muhamadazmy muhamadazmy merged commit 41735fc into restatedev:main Jun 25, 2025
38 of 39 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Jun 25, 2025
@lsytj0413 lsytj0413 deleted the fix3284 branch June 25, 2025 08:39
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[follow up] remove dependency on restate-partition-store from wal-protocol
2 participants