cherry pick from #40356 --------- Co-authored-by: hui lai <1353307710@qq.com>
This commit is contained in:
@ -153,7 +153,7 @@ Status DeltaWriterV2::write(const vectorized::Block* block, const std::vector<ui
|
||||
SCOPED_RAW_TIMER(&_wait_flush_limit_time);
|
||||
auto memtable_flush_running_count_limit = config::memtable_flush_running_count_limit;
|
||||
DBUG_EXECUTE_IF("DeltaWriterV2.write.back_pressure",
|
||||
{ memtable_flush_running_count_limit = 0; });
|
||||
{ std::this_thread::sleep_for(std::chrono::milliseconds(10 * 1000)); });
|
||||
while (_memtable_writer->flush_running_count() >= memtable_flush_running_count_limit) {
|
||||
if (_state->is_cancelled()) {
|
||||
return Status::Cancelled(_state->cancel_reason());
|
||||
|
||||
@ -70,7 +70,6 @@ excludeSuites = "000_the_start_sentinel_do_not_touch," + // keep this line as th
|
||||
"test_spark_load," +
|
||||
"test_broker_load_func," +
|
||||
"test_stream_stub_fault_injection," +
|
||||
"test_delta_writer_v2_back_pressure_fault_injection," +
|
||||
"zzz_the_end_sentinel_do_not_touch" // keep this line as the last line
|
||||
|
||||
// this directories will not be executed
|
||||
|
||||
@ -98,9 +98,11 @@ suite("test_delta_writer_v2_back_pressure_fault_injection", "nonConcurrent") {
|
||||
}
|
||||
} catch(Exception e) {
|
||||
logger.info(e.getMessage())
|
||||
} finally {
|
||||
GetDebugPoint().disableDebugPointForAllBEs("DeltaWriterV2.write.back_pressure")
|
||||
}
|
||||
|
||||
sql """ DROP TABLE IF EXISTS `baseall` """
|
||||
sql """ DROP TABLE IF EXISTS `test` """
|
||||
sql """ set enable_memtable_on_sink_node=false """
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user