fix(compactor2): Update other locations of the TRANSITION_SHARD_INDEX (#6736)

pull/24376/head
Marko Mikulicic 2023-01-27 17:59:24 +01:00 committed by GitHub
parent ab643ffa8b
commit f6e7724d19
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -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.
///

View File

@ -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 {