<@U0A71G31CDV> Is there any breaking changes if we...
# questions-and-troubleshooting
m
@Rocky Is there any breaking changes if we would like to upgrade from 4.0.10 to 4.1.7
r
<||DSML|| calls> <||DSML|| invoke name="search_starrocks_doc"> <||DSML|| parameter name="query" string="true">skip_pindex_l1_l2_check_in_insert shared-nothing primary key duplicate key check release notes behavior change</||DSML|| parameter> </||DSML|| invoke> <||DSML|| invoke name="search_starrocks_doc"> <||DSML|| parameter name="query" string="true">query_queue_v2 enabled by default behavior change upgrade external catalog Hive metastore cache</||DSML|| parameter> </||DSML|| invoke> </||DSML|| calls> References • release_notes/release-4.1.md • deployment/feature-support-shared-data.md • administration/configuration/BE_parameters/shared_lake_other.md • introduction/Architecture.md • knowledge/qa/primary_key_tables_shared_data_memory.md (StarRocks knowledge base) • knowledge/known_issues/shared_data.md (StarRocks knowledge base)
m
@Rocky Are there any breaking changes if we would like to upgrade from 4.0.10 to 4.1.7
r
There's no separate "breaking changes" list in the docs — what you get are the Behavior Changes sections in the 4.1.x release notes. Going 4.0.10 → 4.1.7 is one minor-version step, and nothing documented requires a special migration. But several changes alter defaults or results, and a few can break automation. Most likely to break tooling • 4.1.7: FE HTTP endpoints
/service_id
,
/dump
,
/dump_starmgr
now require an admin user; credential values are masked in
ADMIN SHOW FRONTEND CONFIG
, FE
/variable
, BE
/varz
,
information_schema.be_configs
and HTTP logs. • 4.1.7:
CAST(x AS CHAR(N))
now truncates to N characters (MySQL-consistent) instead of erroring/behaving as before. • 4.1.3: `FLOOR`/`CEIL` became non-reserved keywords;
LIKE
constant-folding now follows MySQL 8 backslash-escape semantics (patterns like
'a\\b'
can flip results). Data/result-affecting • 4.1.3: `FILES()`/broker/stream load no longer apply the session timezone shift to
INT64
Parquet timestamps written with
isAdjustedToUTC=false
. The notes explicitly say data loaded before v4.1.3 may differ from after — reload if consistency matters. This is the closest thing to a real breaking change. • 4.1.3: Routine Load default start offset for partitions discovered after the job has progress changes from
OFFSET_END
to
OFFSET_BEGINNING
(affects all auto-discovery jobs, not just ones using the new
kafka_partition_discovery
property). • 4.1.1: Query rewrite over INCREMENTAL/AUTO materialized views is disabled, and `FORCE`/partition refresh is rejected for them. • 4.1.2: When an Iceberg/external base table has schema drift, dependent MVs are now inactive at next refresh instead of silently returning NULLs. • 4.1.7: Local (shared-nothing) Primary Key inserts no longer check L1/L2 persistent index files for duplicate keys by default (`skip_pindex_l1_l2_check_in_insert=true`; L0/memtable still checked). Set it to
false
to restore the old behavior if you rely on that rejection. Default flips worth knowing • 4.1.0: ETL execution mode on by default (INSERT INTO SELECT, CTAS);
query_queue_v2
on by default; FULL OUTER JOIN USING follows SQL-standard semantics. • 4.1.2:
pipeline_enable_large_column_checker
on; Hive partition stats no longer auto-refreshed per key on a timer. • 4.1.6:
enable_online_optimize_table=false
, so
ALTER TABLE ... DISTRIBUTED BY ...
blocks writes again; jemalloc oversize arena on (changes BE/CN memory distribution across arenas); AWS SDK back to its own HTTP client (
enable_poco_client_for_aws_sdk=false
). • 4.1.7:
spill_max_dir_bytes_ratio
0.8 → 0.5;
enable_jvm_metrics
on;
lake_replication_file_copy_threads
16. Operational notes • Upgrade order is BE/CN first, then FEs (Followers, then Leader), with tablet clone/balance disabled beforehand. • Don't upgrade to 4.1.0 in containers (unstable load order); 4.1.7 is unaffected. • Downgrade from 4.1 is only supported back to v4.0.6 or later, so returning to 4.0.10 is allowed — but it's worth knowing the constraint exists. Details and PR links are in the 4.1 release notes; the upgrade/downgrade procedures are in the deployment docs. References • release_notes/release-4.1.md • release_notes/release-4.0.md • knowledge/reference/system_variables_from_source.md (StarRocks knowledge base) • deployment/manage_deployment/downgrade.md • release_notes/release-3.4.md • release_notes/release-3.3.md