Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
Signed-off-by: Richard Chien <[email protected]>
  • Loading branch information
stdrc committed Apr 8, 2024
1 parent f68bb80 commit bfffd6a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
14 changes: 7 additions & 7 deletions src/stream/src/executor/dispatch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -349,13 +349,13 @@ impl DispatchExecutor {
metrics: Arc<StreamingMetrics>,
chunk_size: usize,
) -> Self {
// if crate::consistency::insane() {
// // make some trouble before dispatching to avoid generating invalid dist key.
// let mut info = input.info().clone();
// info.identity = format!("{} (embedded trouble)", info.identity);
// let troublemaker = TroublemakerExecutor::new(input, chunk_size);
// input = (info, troublemaker).into();
// }
if false && crate::consistency::insane() {
// make some trouble before dispatching to avoid generating invalid dist key.
let mut info = input.info().clone();
info.identity = format!("{} (embedded trouble)", info.identity);
let troublemaker = TroublemakerExecutor::new(input, chunk_size);
input = (info, troublemaker).into();
}

let actor_id_str = actor_id.to_string();
let fragment_id_str = fragment_id.to_string();
Expand Down
5 changes: 4 additions & 1 deletion src/stream/src/executor/troublemaker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,10 @@ struct Vars {
impl TroublemakerExecutor {
pub fn new(input: Executor, chunk_size: usize) -> Self {
assert!(insane(), "we should only make trouble in insane mode");
tracing::info!("we got a troublemaker");
tracing::info!(
"we got a troublemaker following executor {:?}",
input.info()
);
Self {
input,
inner: Inner { chunk_size },
Expand Down
2 changes: 1 addition & 1 deletion src/stream/src/from_proto/stream_scan.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ impl ExecutorBuilder for StreamScanExecutorBuilder {
node.rate_limit.map(|x| x as _),
);

if crate::consistency::insane() {
if false && crate::consistency::insane() {
let mut info = params.info.clone();
info.identity = format!("{} (troubled)", info.identity);
Ok((
Expand Down

0 comments on commit bfffd6a

Please sign in to comment.