Reduce log spam
This commit is contained in:
parent
6dcb97af9e
commit
411f154827
|
@ -1231,8 +1231,8 @@ fn test_dropped_handoff_recovery() {
|
||||||
node_exits.push(next_leader.run(Some(rotation_sender)));
|
node_exits.push(next_leader.run(Some(rotation_sender)));
|
||||||
|
|
||||||
info!("Wait for 'next leader' to assume leader role");
|
info!("Wait for 'next leader' to assume leader role");
|
||||||
error!("TODO: FIX https://github.com/solana-labs/solana/issues/2482");
|
// TODO: Once https://github.com/solana-labs/solana/issues/2482" is fixed,
|
||||||
// TODO: Once fixed restore the commented out code below
|
// restore the commented out code below
|
||||||
/*
|
/*
|
||||||
loop {
|
loop {
|
||||||
let transition = _rotation_receiver.recv().unwrap();
|
let transition = _rotation_receiver.recv().unwrap();
|
||||||
|
@ -1802,6 +1802,7 @@ fn test_fullnode_rotate(
|
||||||
let mut validator_should_be_leader = !leader_should_be_leader;
|
let mut validator_should_be_leader = !leader_should_be_leader;
|
||||||
let mut validator_tick_height_of_next_rotation = leader_tick_height_of_next_rotation;
|
let mut validator_tick_height_of_next_rotation = leader_tick_height_of_next_rotation;
|
||||||
|
|
||||||
|
let mut log_spam = 0;
|
||||||
let max_tick_height = 8;
|
let max_tick_height = 8;
|
||||||
while leader_tick_height_of_next_rotation < max_tick_height
|
while leader_tick_height_of_next_rotation < max_tick_height
|
||||||
&& validator_tick_height_of_next_rotation < max_tick_height
|
&& validator_tick_height_of_next_rotation < max_tick_height
|
||||||
|
@ -1902,12 +1903,15 @@ fn test_fullnode_rotate(
|
||||||
sleep(Duration::from_millis(100));
|
sleep(Duration::from_millis(100));
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
log_spam += 1;
|
||||||
|
if log_spam % 10 == 0 {
|
||||||
if include_validator {
|
if include_validator {
|
||||||
trace!("waiting for leader and validator to reach max tick height...");
|
trace!("waiting for leader and validator to reach max tick height...");
|
||||||
} else {
|
} else {
|
||||||
trace!("waiting for leader to reach max tick height...");
|
trace!("waiting for leader to reach max tick height...");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
tick_step_receiver.recv().expect("tick step");
|
tick_step_receiver.recv().expect("tick step");
|
||||||
info!("tick step received");
|
info!("tick step received");
|
||||||
}
|
}
|
||||||
|
@ -1945,22 +1949,22 @@ fn test_fullnode_rotate(
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_one_fullnode_rotate_every_tick() {
|
fn test_one_fullnode_rotate_every_tick_without_transactions() {
|
||||||
test_fullnode_rotate(1, 1, false, false);
|
test_fullnode_rotate(1, 1, false, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_one_fullnode_rotate_every_second_tick() {
|
fn test_one_fullnode_rotate_every_second_tick_without_transactions() {
|
||||||
test_fullnode_rotate(2, 1, false, false);
|
test_fullnode_rotate(2, 1, false, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_two_fullnodes_rotate_every_tick() {
|
fn test_two_fullnodes_rotate_every_tick_without_transactions() {
|
||||||
test_fullnode_rotate(1, 1, true, false);
|
test_fullnode_rotate(1, 1, true, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_two_fullnodes_rotate_every_second_tick() {
|
fn test_two_fullnodes_rotate_every_second_tick_without_transactions() {
|
||||||
test_fullnode_rotate(2, 1, true, false);
|
test_fullnode_rotate(2, 1, true, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue