mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-05-25 17:30:41 +00:00
feat: implement the OrderedBatchProducer (#4134)
* feat: implement the `OrderedBatchProducer` * test: add test of cancel safety * chore: apply suggestions from CR * chore: apply suggestions from CR * refactor: simplify the `BackgroundProducerWorker` * feat: implement the OrderedBatchProducer v2 * refactor: switch to `OrderedBatchProducer` * chore: rename to `MAX_FLUSH_QUEUE_SIZE` * refactor: switch to `OrderedBatchProducerV2` * refactor: remove `OrderedBatchProducerV1` * test: add tests * refactor: make config configurable * refactor: minor refactor * chore: remove unused code * chore: remove `benchmarks` crate * chore: update config doc * chore: remove unused comment * refactor: refactor client registry * refactor: rename `max_batch_size` to `max_batch_bytes` * chore: use constant value * chore: ensure serialized meta < ESTIMATED_META_SIZE * chore: apply suggestions from CR * chore: remove the `CHANNEL_SIZE` * chore: apply suggestions from CR * fix: ensure serialized meta < ESTIMATED_META_SIZE * chore: apply suggestions from CR * chore: apply suggestions from CR
This commit is contained in:
@@ -18,7 +18,7 @@ use std::sync::Arc;
|
||||
use crate::storage::RegionId;
|
||||
|
||||
// The Provider of kafka log store
|
||||
#[derive(Debug, Clone, PartialEq, Eq)]
|
||||
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
|
||||
pub struct KafkaProvider {
|
||||
pub topic: String,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user