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

feat: add consumer storage to spu #3915

Merged
merged 7 commits into from
Mar 29, 2024
Merged

feat: add consumer storage to spu #3915

merged 7 commits into from
Mar 29, 2024

Conversation

galibey
Copy link
Contributor

@galibey galibey commented Mar 22, 2024

Added SPU private API (between SPUs) and public (except fetch list, will be added later) for Offset Mng.

@galibey galibey added SPU SPU related kv-storage labels Mar 22, 2024
@galibey galibey self-assigned this Mar 22, 2024
@galibey galibey requested a review from digikata March 22, 2024 10:25
@ajhunyady ajhunyady requested a review from sehz March 22, 2024 14:48
Copy link
Contributor

@sehz sehz left a comment

Choose a reason for hiding this comment

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

first set of comments

crates/fluvio-controlplane/src/lib.rs Outdated Show resolved Hide resolved
crates/fluvio-spu-schema/src/server/api.rs Outdated Show resolved Hide resolved
crates/fluvio-spu/src/core/global_context.rs Outdated Show resolved Hide resolved
crates/fluvio-spu/src/kv/consumer.rs Outdated Show resolved Hide resolved
crates/fluvio-spu/src/kv/consumer.rs Outdated Show resolved Hide resolved
crates/fluvio-spu/src/kv/consumer.rs Outdated Show resolved Hide resolved
crates/fluvio-spu/src/kv/consumer.rs Outdated Show resolved Hide resolved
crates/fluvio-spu/src/kv/consumer.rs Outdated Show resolved Hide resolved
@sehz
Copy link
Contributor

sehz commented Mar 22, 2024

It would be better also break this into smaller PR

Copy link
Contributor

@sehz sehz left a comment

Choose a reason for hiding this comment

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

more comments

crates/fluvio-spu/src/kv/consumer.rs Outdated Show resolved Hide resolved
crates/fluvio-spu/src/kv/consumer.rs Show resolved Hide resolved
crates/fluvio-spu/src/kv/consumer.rs Show resolved Hide resolved
crates/fluvio-spu/src/kv/consumer.rs Outdated Show resolved Hide resolved
crates/fluvio-spu/src/kv/consumer.rs Show resolved Hide resolved
@sehz
Copy link
Contributor

sehz commented Mar 26, 2024

Should separate out SPUSchema related changes into it's PR so can start merging that

Ok(ReplicaRevStream::new(self.replica.clone()))
}

async fn append_batch(&mut self, entries: Vec<Vec<u8>>) -> Result<()> {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we crate some abstraction for for key value which I assume this is for. Just adding bytes seems to be bit raw

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think we have enough abstractions here. Not sure I understand your questions.

Copy link
Contributor

Choose a reason for hiding this comment

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

Try to add more description which hope to clarify purpose

@galibey
Copy link
Contributor Author

galibey commented Mar 26, 2024

Should separate out SPUSchema related changes into it's PR so can start merging that

Created #3918

@galibey
Copy link
Contributor Author

galibey commented Mar 28, 2024

TTL has been removed


let consumers_replica_id =
ReplicaKey::new(CONSUMER_STORAGE_TOPIC, <PartitionId as Default>::default());

Copy link
Contributor

Choose a reason for hiding this comment

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

add more description on what's being done here

Copy link
Contributor

@sehz sehz left a comment

Choose a reason for hiding this comment

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

Couple of minor clarification but no show stopper. LGTM to proceed

@galibey galibey added this pull request to the merge queue Mar 29, 2024
Merged via the queue into infinyon:master with commit cc6b3a2 Mar 29, 2024
102 checks passed
@galibey galibey deleted the feat/kv-storage-on-spu branch March 29, 2024 08:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants