You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by yi...@apache.org on 2023/01/12 04:10:57 UTC
[doris] branch master updated: [enhancement](unique key) disable concurrent flush memtable for unique key (#15802)
This is an automated email from the ASF dual-hosted git repository.
yiguolei pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new 92dd7c442a [enhancement](unique key) disable concurrent flush memtable for unique key (#15802)
92dd7c442a is described below
commit 92dd7c442a793fcd2ae97f507fb8069dc812abd3
Author: zhannngchen <48...@users.noreply.github.com>
AuthorDate: Thu Jan 12 12:10:50 2023 +0800
[enhancement](unique key) disable concurrent flush memtable for unique key (#15802)
---
be/src/olap/delta_writer.cpp | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/be/src/olap/delta_writer.cpp b/be/src/olap/delta_writer.cpp
index 1dd22c6e6c..cd7178e1b4 100644
--- a/be/src/olap/delta_writer.cpp
+++ b/be/src/olap/delta_writer.cpp
@@ -143,9 +143,9 @@ Status DeltaWriter::init() {
_reset_mem_table();
// create flush handler
- // unique key merge on write should flush serial cause calc delete bitmap should load segment serial
- bool should_serial = (_tablet->keys_type() == KeysType::UNIQUE_KEYS &&
- _tablet->enable_unique_key_merge_on_write());
+ // unique key should flush serial because we need to make sure same key should sort
+ // in the same order in all replica.
+ bool should_serial = _tablet->keys_type() == KeysType::UNIQUE_KEYS;
RETURN_NOT_OK(_storage_engine->memtable_flush_executor()->create_flush_token(
&_flush_token, _rowset_writer->type(), should_serial, _req.is_high_priority));
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org