commit
3000a2c34a
|
@ -0,0 +1,5 @@
|
||||||
|
mod r#trait;
|
||||||
|
pub(crate) use r#trait::*;
|
||||||
|
|
||||||
|
#[cfg(test)]
|
||||||
|
pub(crate) mod mock_sink;
|
|
@ -20,6 +20,8 @@
|
||||||
mod arcmap;
|
mod arcmap;
|
||||||
pub(crate) mod compact;
|
pub(crate) mod compact;
|
||||||
pub mod data;
|
pub mod data;
|
||||||
|
mod deferred_load;
|
||||||
|
mod dml_sink;
|
||||||
pub mod handler;
|
pub mod handler;
|
||||||
mod job;
|
mod job;
|
||||||
pub mod lifecycle;
|
pub mod lifecycle;
|
||||||
|
@ -28,7 +30,5 @@ pub mod querier_handler;
|
||||||
pub(crate) mod query_adaptor;
|
pub(crate) mod query_adaptor;
|
||||||
pub mod server;
|
pub mod server;
|
||||||
pub(crate) mod stream_handler;
|
pub(crate) mod stream_handler;
|
||||||
|
|
||||||
mod deferred_load;
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
pub(crate) mod test_util;
|
pub(crate) mod test_util;
|
||||||
|
|
|
@ -9,7 +9,7 @@ use observability_deps::tracing::*;
|
||||||
use thiserror::Error;
|
use thiserror::Error;
|
||||||
use tonic::{Request, Response};
|
use tonic::{Request, Response};
|
||||||
|
|
||||||
use crate::{data::DmlApplyAction, stream_handler::DmlSink};
|
use crate::{data::DmlApplyAction, dml_sink::DmlSink};
|
||||||
|
|
||||||
// A list of error states when handling an RPC write request.
|
// A list of error states when handling an RPC write request.
|
||||||
//
|
//
|
||||||
|
@ -177,7 +177,7 @@ mod tests {
|
||||||
Column, DatabaseBatch, TableBatch,
|
Column, DatabaseBatch, TableBatch,
|
||||||
};
|
};
|
||||||
|
|
||||||
use crate::stream_handler::mock_sink::MockDmlSink;
|
use crate::dml_sink::mock_sink::MockDmlSink;
|
||||||
|
|
||||||
use super::*;
|
use super::*;
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
//! A handler of streamed ops from a write buffer.
|
//! A handler of streamed ops from a write buffer.
|
||||||
|
|
||||||
use super::DmlSink;
|
|
||||||
use crate::{
|
use crate::{
|
||||||
data::DmlApplyAction,
|
data::DmlApplyAction,
|
||||||
|
dml_sink::DmlSink,
|
||||||
lifecycle::{LifecycleHandle, LifecycleHandleImpl},
|
lifecycle::{LifecycleHandle, LifecycleHandleImpl},
|
||||||
};
|
};
|
||||||
use data_types::{SequenceNumber, ShardId, ShardIndex};
|
use data_types::{SequenceNumber, ShardId, ShardIndex};
|
||||||
|
@ -510,8 +510,8 @@ fn metric_attrs(
|
||||||
mod tests {
|
mod tests {
|
||||||
use super::*;
|
use super::*;
|
||||||
use crate::{
|
use crate::{
|
||||||
|
dml_sink::mock_sink::MockDmlSink,
|
||||||
lifecycle::{LifecycleConfig, LifecycleManager},
|
lifecycle::{LifecycleConfig, LifecycleManager},
|
||||||
stream_handler::mock_sink::MockDmlSink,
|
|
||||||
};
|
};
|
||||||
use assert_matches::assert_matches;
|
use assert_matches::assert_matches;
|
||||||
use async_trait::async_trait;
|
use async_trait::async_trait;
|
||||||
|
|
|
@ -16,17 +16,13 @@
|
||||||
//! [`WriteBufferReading`]: write_buffer::core::WriteBufferReading
|
//! [`WriteBufferReading`]: write_buffer::core::WriteBufferReading
|
||||||
//! [`LifecycleManager`]: crate::lifecycle::LifecycleManager
|
//! [`LifecycleManager`]: crate::lifecycle::LifecycleManager
|
||||||
//! [`LifecycleHandle::can_resume_ingest()`]: crate::lifecycle::LifecycleHandle::can_resume_ingest()
|
//! [`LifecycleHandle::can_resume_ingest()`]: crate::lifecycle::LifecycleHandle::can_resume_ingest()
|
||||||
|
//! [`DmlSink`]: crate::dml_sink::DmlSink
|
||||||
|
|
||||||
pub(crate) mod handler;
|
pub(crate) mod handler;
|
||||||
mod periodic_watermark_fetcher;
|
mod periodic_watermark_fetcher;
|
||||||
mod sink;
|
|
||||||
|
|
||||||
#[cfg(test)]
|
|
||||||
pub mod mock_sink;
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
pub mod mock_watermark_fetcher;
|
pub mod mock_watermark_fetcher;
|
||||||
pub(crate) mod sink_adaptor;
|
pub(crate) mod sink_adaptor;
|
||||||
pub(crate) mod sink_instrumentation;
|
pub(crate) mod sink_instrumentation;
|
||||||
|
|
||||||
pub(crate) use periodic_watermark_fetcher::*;
|
pub(crate) use periodic_watermark_fetcher::*;
|
||||||
pub(crate) use sink::*;
|
|
||||||
|
|
|
@ -6,9 +6,9 @@ use async_trait::async_trait;
|
||||||
use data_types::ShardId;
|
use data_types::ShardId;
|
||||||
use dml::DmlOperation;
|
use dml::DmlOperation;
|
||||||
|
|
||||||
use super::DmlSink;
|
|
||||||
use crate::{
|
use crate::{
|
||||||
data::{DmlApplyAction, IngesterData},
|
data::{DmlApplyAction, IngesterData},
|
||||||
|
dml_sink::DmlSink,
|
||||||
lifecycle::LifecycleHandleImpl,
|
lifecycle::LifecycleHandleImpl,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -9,9 +9,7 @@ use iox_time::{SystemProvider, TimeProvider};
|
||||||
use metric::{Attributes, DurationHistogram, U64Counter, U64Gauge};
|
use metric::{Attributes, DurationHistogram, U64Counter, U64Gauge};
|
||||||
use trace::span::{SpanExt, SpanRecorder};
|
use trace::span::{SpanExt, SpanRecorder};
|
||||||
|
|
||||||
use crate::data::DmlApplyAction;
|
use crate::{data::DmlApplyAction, dml_sink::DmlSink};
|
||||||
|
|
||||||
use super::DmlSink;
|
|
||||||
|
|
||||||
/// A [`WatermarkFetcher`] abstracts a source of the write buffer high watermark
|
/// A [`WatermarkFetcher`] abstracts a source of the write buffer high watermark
|
||||||
/// (max known offset).
|
/// (max known offset).
|
||||||
|
@ -237,8 +235,9 @@ where
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests {
|
mod tests {
|
||||||
use super::*;
|
use super::*;
|
||||||
use crate::stream_handler::{
|
use crate::{
|
||||||
mock_sink::MockDmlSink, mock_watermark_fetcher::MockWatermarkFetcher,
|
dml_sink::mock_sink::MockDmlSink,
|
||||||
|
stream_handler::mock_watermark_fetcher::MockWatermarkFetcher,
|
||||||
};
|
};
|
||||||
use assert_matches::assert_matches;
|
use assert_matches::assert_matches;
|
||||||
use data_types::{NamespaceId, Sequence, SequenceNumber, ShardId, TableId};
|
use data_types::{NamespaceId, Sequence, SequenceNumber, ShardId, TableId};
|
||||||
|
|
Loading…
Reference in New Issue