-
Notifications
You must be signed in to change notification settings - Fork 332
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(log_store): remove associated type
Namespace
and Entry
i…
…n `LogStore` (#4038) * refactor(log_store): remove associated type `Namespace` in `LogStore` * fix(test): filter entries * refactor: ignore incomplete parts * refactor: simplify `RawEntryReaderFilter` * chore: avoid cloning * test: add tests for `maybe_emit_entry` * refactor: remove `Namespace` trait and rename `LogStoreNamespace` to `Namespace` * chore: apply suggestions from CR * refactor: refine `entry` method signature * feat: ingore any potential incomplete parts * refactor: rename `namespace` to `provider` * chore: add debug assertion * refactor: associated type `Entry` in `LogStore` * refactor: renamse `namespace` to `provider` * refactor: remove unwrap * refactor: let `remaining_entries` return a optional vector * test: add basic tests for kafka logstore * refactor: move `append` method under `cfg(test)` * refactor: rename `RawEntry` to `Entry` * refactor: rename `CorruptedLogEntry` to `CorruptedEntry` * test: add tests for handling corrupted raw entry stream * refactor: rename `ns` to `provider` * refactor: remove `entry_stream.rs` file * chore: remove unused code * chore: update comments * chore: apply suggestions from CR * chore: update comments * chore: apply suggestions from CR * chore: remove Deref * chore: add comments * fix: ignores tail corrupted data * chore: add comments * fix: add `MIN_BATCH_SIZE` limit
- Loading branch information
Showing
27 changed files
with
1,491 additions
and
1,622 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.