fix(compactor2): Update other locations of the TRANSITION_SHARD_INDEX (#6736)
parent
ab643ffa8b
commit
f6e7724d19
|
@ -259,7 +259,7 @@ impl SkippedCompactionBuilder {
|
|||
}
|
||||
}
|
||||
|
||||
const SHARD_INDEX: i32 = 1;
|
||||
const SHARD_INDEX: i32 = 1234;
|
||||
const PARTITION_THRESHOLD: Duration = Duration::from_secs(10 * 60); // 10min
|
||||
const MAX_DESIRE_FILE_SIZE: u64 = 100 * 1024;
|
||||
const PERCENTAGE_MAX_FILE_SIZE: u16 = 5;
|
||||
|
|
|
@ -54,7 +54,7 @@ pub enum BufferError {
|
|||
/// During the testing of ingest replica, the catalog will require a ShardIndex for
|
||||
/// various operations. This is a const value for these occasions. Look up the ShardId for this
|
||||
/// ShardIndex when needed.
|
||||
const TRANSITION_SHARD_INDEX: ShardIndex = ShardIndex::new(1);
|
||||
const TRANSITION_SHARD_INDEX: ShardIndex = ShardIndex::new(1234);
|
||||
|
||||
/// Acquire opaque handles to the IngestReplica RPC service implementations.
|
||||
///
|
||||
|
|
|
@ -27,7 +27,7 @@ use trace::TraceCollector;
|
|||
|
||||
// There is only one shard with index 1
|
||||
const TOPIC: &str = "iox-shared";
|
||||
const SHARD_INDEX: i32 = 1;
|
||||
const TRANSITION_SHARD_INDEX: i32 = 1234; // see ingester2 crate
|
||||
|
||||
pub struct Compactor2ServerType {
|
||||
compactor: Compactor2,
|
||||
|
@ -142,7 +142,7 @@ pub async fn create_compactor2_server_type(
|
|||
Arc::clone(&catalog),
|
||||
backoff_config.clone(),
|
||||
TOPIC.to_string(),
|
||||
SHARD_INDEX,
|
||||
TRANSITION_SHARD_INDEX,
|
||||
)
|
||||
.await;
|
||||
let compactor = Compactor2::start(Config {
|
||||
|
|
Loading…
Reference in New Issue