You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Apache Doris 4.0.6 is a maintenance release in the 4.0 series. It focuses on stability and operational experience. All 4.0.x users are advised to upgrade, and users running the compute-storage decoupled (cloud) mode benefit the most.
Highlights of this release include:
Compute-storage decoupling enhancements: support read-write separation for Compaction, optimize Tablet scheduling and FE-side memory usage, and reduce RPC pressure on the Meta Service.
Operational observability: add Compaction task tracking (System Table and HTTP API), a dynamic enable_recycler switch, online adjustment of the memtable flush thread pool, and several brpc / bvar metrics.
Data lineage: introduce a Lineage SPI collection framework.
Many correctness and stability fixes: cover incorrect query results, load data loss (such as Broker Load loading only the first file, and PostgreSQL DML being silently dropped), crashes, hangs, and resource leaks.
Before upgrading, read the Behavior Changes section below, which contains several adjustments to default values and privileges.
These notes focus on user-visible and operations-visible changes, and omit some purely-internal refactoring and fixes with no external symptoms. For the complete commit history, refer to the PR list for 4.0.6 in the apache/doris repository on GitHub.
4.0.5 release notes
Apache Doris 4.0.6 is a maintenance release in the 4.0 series. It focuses on stability and operational experience. All 4.0.x users are advised to upgrade, and users running the compute-storage decoupled (cloud) mode benefit the most.
Highlights of this release include:
enable_recyclerswitch, online adjustment of the memtable flush thread pool, and several brpc / bvar metrics.Behavior Changes
enable_strict_consistency_dmlis now disabled by default (branch-4.0: [opt](load) disable enable_strict_consistency_dml by default in cloud mode #61891). If your workload relies on strict-consistency DML, explicitly enable this configuration after upgrading.segments_key_bounds_truncation_thresholdis changed to 36 ([enhancement](config) Change segments_key_bounds_truncation_threshold default to 36 #61984).New Features & Improvements
Functions & Types
mmhash3_u64_v2hash function ([Enhancement](mmhash) Support mmhash3_u64_v2 #61846).json_object_flattenscalar function for flattening nested JSON ([feature](jsonb) add json_object_flatten scalar function #62825).array_sortthat supports custom sorting logic ([enhance](function) add a lambda functor version for array_sort #57828).max/minaggregate functions now support the Array type, andmax_by/min_bysupport some complex types ([enhance](agg) Support max/min agg functions for type_array #58490, [enhance](agg) Support max_by/min_by agg functions for some complex type #58736).Query Optimization
num_nullscolumn statistic proportionally after partition pruning to improve row-count estimation accuracy ([opt](nereids) scale num_nulls in col stats when partition pruned #62265).Storage & Compaction
Compute-Storage Decoupling (Cloud Mode)
test_balance_metricsdocker case (#7885) #61562).get_tablet_statsRPC calls to the Meta Service to lower metadata-service pressure ([improve](cloud) cloud reduce get_tablet_stats rpc to meta_service #60543).enable_recyclerconfiguration to dynamically skip the Recycler ([improvement](cloud) Add enable_recycler config to skip recycler dynamically #63286).Lakehouse
Data Lineage
Observability & Operations
--drop_backendsparameter tostart_fe.sh([fix](fe) add --drop_backends param to start_fe.sh #63306).Security & Authentication
Important Bug Fixes
Query Result Correctness
INTERSECT/EXCEPTlosing NULL rows during predicate pushdown ([fix](fe) Fix PullUpPredicates losing NULL rows in INTERSECT/EXCEPT #62299).count(null)being incorrectly treated ascount(*)([fix](fe) Fix isCountStar incorrectly treating count(null) as count(*) #62548).countcontains aMATCH_ALLexpression ([fix](fe) Fix NoSuchElementException when count with MATCH_ALL expression #62172).IN_LISTRuntime Filter predicate in Key Range scenarios ([Bug](scan) Preserve IN_LIST runtime filter predicates when key range… #62115).no_use_cbo_ruleHint being silently ignored ([fix](fe) Fix no_use_cbo_rule hint being silently ignored in EliminateLogicalSelectHint #62358).Views
ALTER VIEWdefinitions not being synchronized to Follower FEs when a COMMENT is specified ([fix](view) ALTER VIEW definition not synced to follower FE when COMMENT is specified #61670).Functions & Types
allow_zero_datefunction ([fix](date) fix allow_zero_date function incorrect result issue #61900).from_olap_stringthrowing an exception when it fails to parse a datetime; it now returns NULL instead ([fix](parse) No longer throws exceptions when parse datetime failed infrom_olap_string#63035).Variant Type
Load & Streaming
Data Loss / Integrity
Hangs / Leaks
close_waithang ([fix](load)fix VNodeChannel close_wait hang #58024).Restart & Metadata
SHOW LOADafter an FE restart ([fix](insert) fix INSERT job statistics lost in show load after FE restart #62331).Routine Load / Parsing
to_load_error_http_pathreturning an incorrect URL in HTTPS mode ([fix](https) fix be to_load_error_http_path return url in https mode #61785).Storage & Compaction
Compute-Storage Decoupling (Cloud Mode)
add_rowsets, fill Version holes before running, normalize the Rowset graph before Delete Bitmap Capture, and add anSC_COMPACTION_CONFLICTerror code to retry failures across V1 Compaction ([fix](cloud) Delete local rowsets before add_rowsets in cloud schema change #62256, [fix](cloud) Fill schema change version holes before running #63443, branch-4.0: [fix](cloud) Normalize SC rowset graph before delete bitmap capture #63981, [fix](cloud) Add SC_COMPACTION_CONFLICT error code to retry cross-V1 compaction failures #62272).balanced_tablets_shardsmemory leak and a Warmup inflight counting issue ([fix](cloud) Fix balanced_tablets_shards leak memory and fix some file cache case #59093, [fix](cloud) Fix warmup inflight count not decremented on early return #60480).CREATE MATERIALIZED VIEW((cloud) Hold table write lock across first-time dynamic partition setup to prevent CREATE MV race #62755).KV_TXN_MAYBE_COMMITTEDstate to clients ([fix](cloud) Hide KV_TXN_MAYBE_COMMITTED from clients #62244).SHOW PROCnot showing the Cached Version of partitions ([fix](cloud) show proc should display partition cached version #60807).Lakehouse & External Data Sources
SHOW PARTITIONSand the partitions TVF for external Catalogs ([bugfix] fix show partitions command for external catalog validations incompatible with partitions tvf #62134).File Cache & IO
Metadata & Job System
CANCEL ALTERwith an empty job list being mistakenly treated as canceling all Rollup jobs ([fix](sync) Treat empty cancel alter job list as all rollup jobs #62712).RestoreCommandthrowing an UnsupportedOperationException ([fix](backup) Fix UnsupportedOperationException in RestoreCommand by copying properties before modification #61890).retention_countnot being correctly registered with the scheduler after a restart ([fix](auto-partition) Register auto-partition tables with retention_count in DynamicPartitionScheduler on restart #61954).metadata_failure_recoverymode ([fix](fe) fix host not match if start fe in metadata_failure_recovery #62748).SHOW TABLETwhen no database is selected ([fix](fe) Allow show tablet without selected database #63280).SHOW BACKENDS([fix](fe) Fix SHOW BACKENDS field order mismatch #62207).start_fe.sh --console([bugfix](k8s) fix fe.out not generated when start_fe.sh --console #61807).INSERT OVERWRITE([fix](errmsg) Fix wrong error message of insert overwrite #62555).Security & Authentication
Stability & Misc
jetty_server_max_http_header_sizenot taking effect under Jetty 12 ([fix](http) Fix jetty_server_max_http_header_size not applied in Jetty 12 #61197).