---
title: "What's new in the YugabyteDB v2024.1 STS release series"
url: "https://docs.yugabyte.com/stable/releases/ybdb-releases/end-of-life/v2024.1/"
---

# What's new in the YugabyteDB v2024.1 STS release series

Enhancements, changes, and resolved issues in the YugabyteDB v2024.1 STS release series recommended for production deployments.

- [![Server Icon](/icons/database.svg)YugabyteDB](/stable/releases/ybdb-releases/end-of-life/v2024.1/)
- [![Server Icon](/icons/server.svg)YugabyteDB Anywhere](/stable/releases/ybdb-releases/end-of-life/v2024.1-anywhere/)

What follows are the release notes for the YugabyteDB 2024.1 release series.

Changes to supported operating systems

YugabyteDB 2024.1.0.0 and newer releases do not support v7 Linux versions (CentOS7, Red Hat Enterprise Linux 7, Oracle Enterprise Linux 7.x), Amazon Linux 2, and Ubuntu 18. If you're currently using one of these Linux versions, upgrade to a supported OS version before installing YugabyteDB v2024.1.0. Refer to [Operating system support](/stable/reference/configuration/operating-systems/ "Operating system support") for the complete list of supported operating systems.

New memory division settings available

YugabyteDB uses [memory division flags](/stable/reference/configuration/yb-master/#memory-division-flags "memory division flags") to specify how memory should be divided between different processes (for example, [YB-TServer](/stable/architecture/yb-tserver/ "YB-TServer") versus [YB-Master](/stable/architecture/yb-master/ "YB-Master")) on a YugabyteDB node as well as within processes. Using these flags, you can better allocate memory for PostgreSQL, making it more suitable for a wider range of use cases.

For *new* v2024.1.x universes, if you are expecting to use any nontrivial amount of [YSQL](/stable/api/ysql/ "YSQL"), it is strongly recommended to set [‑‑use\_memory\_defaults\_optimized\_for\_ysql](/stable/reference/configuration/yb-tserver/#use-memory-defaults-optimized-for-ysql "‑‑use_memory_defaults_optimized_for_ysql"). This changes the memory division defaults to better values for YSQL usage, and optimizes memory for the node size.

If you are *upgrading* a universe, you may want to instead review your memory division settings and adjust them if desired; see [best practices](/stable/develop/best-practices-develop/data-modeling-perf/#minimize-the-number-of-tablets-you-need "best practices").

In future releases, the memory division settings will be used to determine how many tablet replicas a YB-TServer can safely support; this information will power new alerts warning you about overloading nodes with too many tablet replicas and allow blocking operations that would create too many tablet replicas.

## Release announcements

- [Introducing YugabyteDB with Enhanced Postgres Compatibility: Postgres Without Limits](https://www.yugabyte.com/blog/yugabytedb-enhanced-postgres-compatibility/ "Introducing YugabyteDB with Enhanced Postgres Compatibility: Postgres Without Limits")

## v2024.1.6.1 - July 23, 2025

**Build:** `2024.1.6.1-b2`

**Third-party licenses:** [YugabyteDB](https://downloads.yugabyte.com/releases/2024.1.6.1/yugabytedb-2024.1.6.1-b2-third-party-licenses.html "YugabyteDB"), [YugabyteDB Anywhere](https://downloads.yugabyte.com/releases/2024.1.6.1/yugabytedb-anywhere-2024.1.6.1-b2-third-party-licenses.html "YugabyteDB Anywhere")

### Downloads

- [macOS x86](https://software.yugabyte.com/releases/2024.1.6.1/yugabyte-2024.1.6.1-b2-darwin-x86_64.tar.gz)
- [macOS ARM](https://software.yugabyte.com/releases/2024.1.6.1/yugabyte-2024.1.6.1-b2-darwin-arm64.tar.gz)
- [Linux x86](https://software.yugabyte.com/releases/2024.1.6.1/yugabyte-2024.1.6.1-b2-linux-x86_64.tar.gz)
- [Linux ARM](https://software.yugabyte.com/releases/2024.1.6.1/yugabyte-2024.1.6.1-b2-el8-aarch64.tar.gz)

**Docker:**

```sh
docker pull yugabytedb/yugabyte:2024.1.6.1-b2
```

### Bug fix

#### DocDB

- Ensures accurate replication for transactional writes on xCluster range partitioned tables. [#27380](https://github.com/yugabyte/yugabyte-db/issues/27380)

## v2024.1.6.0 - April 25, 2025

**Build:** `2024.1.6.0-b53`

**Third-party licenses:** [YugabyteDB](https://downloads.yugabyte.com/releases/2024.1.6.0/yugabytedb-2024.1.6.0-b53-third-party-licenses.html "YugabyteDB"), [YugabyteDB Anywhere](https://downloads.yugabyte.com/releases/2024.1.6.0/yugabytedb-anywhere-2024.1.6.0-b53-third-party-licenses.html "YugabyteDB Anywhere")

### Downloads

- [macOS x86](https://software.yugabyte.com/releases/2024.1.6.0/yugabyte-2024.1.6.0-b53-darwin-x86_64.tar.gz)
- [macOS ARM](https://software.yugabyte.com/releases/2024.1.6.0/yugabyte-2024.1.6.0-b53-darwin-arm64.tar.gz)
- [Linux x86](https://software.yugabyte.com/releases/2024.1.6.0/yugabyte-2024.1.6.0-b53-linux-x86_64.tar.gz)
- [Linux ARM](https://software.yugabyte.com/releases/2024.1.6.0/yugabyte-2024.1.6.0-b53-el8-aarch64.tar.gz)

**Docker:**

```sh
docker pull yugabytedb/yugabyte:2024.1.6.0-b53
```

### Change log

View the detailed changelog

### Improvements

#### YSQL

- Adds new flags for role management in YSQL backups and restores. [#20972](https://github.com/yugabyte/yugabyte-db/issues/20972)
- Enables viewing TCMalloc heap snapshots for PG backend processes via new YSQL functions. [#21851](https://github.com/yugabyte/yugabyte-db/issues/21851)
- Enhances `yb_servers` function to include `universe_uuid` for better cluster identification. [#25818](https://github.com/yugabyte/yugabyte-db/issues/25818)

#### DocDB

- Enhances handling of expired snapshots by retrying deletion tasks automatically. [#25628](https://github.com/yugabyte/yugabyte-db/issues/25628)

#### CDC

- Reduces logging frequency for certain CDC errors to avoid clutter. [#26148](https://github.com/yugabyte/yugabyte-db/issues/26148)

### Bug fixes

#### YSQL

- Ensures Batched Nested Loop joins correctly check for hashable join clauses. [#25917](https://github.com/yugabyte/yugabyte-db/issues/25917)
- Reduces XID usage by generating one per `REFRESH MATERIALIZED VIEW CONCURRENTLY` operation. [#26205](https://github.com/yugabyte/yugabyte-db/issues/26205)
- Fixes potential negative cost calculations for large table scans by using `double` for estimates. [#25862](https://github.com/yugabyte/yugabyte-db/issues/25862)
- Enhances estimation of result tuple size in edge cases, preventing division by zero errors. [#21828](https://github.com/yugabyte/yugabyte-db/issues/21828)
- Fixes incorrect role name quoting in `ysql_dumpall`. [#25701](https://github.com/yugabyte/yugabyte-db/issues/25701)
- Fixes `\d` command for indexes with spaces in their names. [#25711](https://github.com/yugabyte/yugabyte-db/issues/25711)
- Modifies `ysql_dumpall` to combine `CREATE ROLE` and `ALTER ROLE` for effective role management. [#25608](https://github.com/yugabyte/yugabyte-db/issues/25608)
- Enhances index scans and partition pruning for BOOLEAN conditions. [#26266](https://github.com/yugabyte/yugabyte-db/issues/26266)
- Enhances accuracy of seek-next estimation for index scans and paged results. [#22087](https://github.com/yugabyte/yugabyte-db/issues/22087)
- Refines cost model tuning using server-side execution times for more accurate query optimization. [#23709](https://github.com/yugabyte/yugabyte-db/issues/23709)
- Prevents crashes by handling non-variable expressions in single-row updates or deletes. [#26536](https://github.com/yugabyte/yugabyte-db/issues/26536)
- Prevents relcache reference leaks in `yb_get_ybctid_width`. [#24819](https://github.com/yugabyte/yugabyte-db/issues/24819)
- Optimizes cost modeling for primary index scans to assume sequential disk block fetching. [#26235](https://github.com/yugabyte/yugabyte-db/issues/26235)
- Enhances `yb_index_check` to verify materialized view indexes' consistency. [#26639](https://github.com/yugabyte/yugabyte-db/issues/26639)
- Corrects estimations for inner table scans in Batched Nested Loop Joins. [#26462](https://github.com/yugabyte/yugabyte-db/issues/26462)
- Fixes integer overflow in BNL cost estimation, preventing negative values. [#26463](https://github.com/yugabyte/yugabyte-db/issues/26463)

#### DocDB

- Adds mtime and checksum to block cache key prefix to prevent conflicts. [#20852](https://github.com/yugabyte/yugabyte-db/issues/20852)
- Enhances transactional xCluster accuracy by using majority replicated OpId for ApplySafeTime calculations. [#26043](https://github.com/yugabyte/yugabyte-db/issues/26043)
- Ensures accurate `WaitForReplicationDrain` behavior by not mislabeling tablets as drained. [#25457](https://github.com/yugabyte/yugabyte-db/issues/25457)
- Prevents false conflict detection in snapshot isolation operations. [#26142](https://github.com/yugabyte/yugabyte-db/issues/26142)

#### yugabyted

- Preserves the universe key locally after enabling EAR for recovery scenarios. [#26552](https://github.com/yugabyte/yugabyte-db/issues/26552)

## v2024.1.5.0 - February 18, 2025

**Build:** `2024.1.5.0-b26`

**Third-party licenses:** [YugabyteDB](https://downloads.yugabyte.com/releases/2024.1.5.0/yugabytedb-2024.1.5.0-b26-third-party-licenses.html "YugabyteDB"), [YugabyteDB Anywhere](https://downloads.yugabyte.com/releases/2024.1.5.0/yugabytedb-anywhere-2024.1.5.0-b26-third-party-licenses.html "YugabyteDB Anywhere")

### Downloads

- [macOS x86](https://software.yugabyte.com/releases/2024.1.5.0/yugabyte-2024.1.5.0-b26-darwin-x86_64.tar.gz)
- [macOS ARM](https://software.yugabyte.com/releases/2024.1.5.0/yugabyte-2024.1.5.0-b26-darwin-arm64.tar.gz)
- [Linux x86](https://software.yugabyte.com/releases/2024.1.5.0/yugabyte-2024.1.5.0-b26-linux-x86_64.tar.gz)
- [Linux ARM](https://software.yugabyte.com/releases/2024.1.5.0/yugabyte-2024.1.5.0-b26-el8-aarch64.tar.gz)

**Docker:**

```sh
docker pull yugabytedb/yugabyte:2024.1.5.0-b26
```

### Change log

View the detailed changelog

### Improvements

#### YSQL

- Enhances initdb logging, correctly handles process termination, and fixes memory leaks on abort signals. [#24813](https://github.com/yugabyte/yugabyte-db/issues/24813)

#### yugabyted

- Ensures cached plans correctly depend on user roles, addressing [CVE-2024-10976](https://www.cve.org/CVERecord?id=CVE-2024-10976). [#25330](https://github.com/yugabyte/yugabyte-db/issues/25330)
- Adds support for IPv6. [#24665](https://github.com/yugabyte/yugabyte-db/issues/24665)

#### CDC

- Limits CDC GetConsistentChanges response by byte size, allowing toggling with `cdc_use_byte_threshold_for_vwal_changes`. [#25572](https://github.com/yugabyte/yugabyte-db/issues/25572)

### Bug fixes

#### YSQL

- Reduces memory usage during YugabyteDB connection startup. [#24925](https://github.com/yugabyte/yugabyte-db/issues/24925)
- Removes an erroneous log entry that appeared in crashes or errors. [#24533](https://github.com/yugabyte/yugabyte-db/issues/24533)
- Enables `pg_authid` table pre-fetching during login to reduce RPC calls and prevent errors. [#25776](https://github.com/yugabyte/yugabyte-db/issues/25776)
- Ensures correct row order for queries with IN clauses. [#25559](https://github.com/yugabyte/yugabyte-db/issues/25559)
- Fixes data race in regex pushdown by using thread-local variables. [#24237](https://github.com/yugabyte/yugabyte-db/issues/24237)
- Automatically restarts the postmaster to prevent stuck processes when a background worker crashes. [#24706](https://github.com/yugabyte/yugabyte-db/issues/24706)
- Reduces scope of `ALTER DATABASE` impact to only the targeted database. [#25392](https://github.com/yugabyte/yugabyte-db/issues/25392)
- Ensures DDL operations continue smoothly by retrying background tasks on polling errors. [#25708](https://github.com/yugabyte/yugabyte-db/issues/25708)
- Reverts `ALTER DATABASE RENAME` and `ALTER DATABASE OWNER` to global impact. [#25742](https://github.com/yugabyte/yugabyte-db/issues/25742)
- Fixes incorrect aggregate column references in flattened subqueries. [#24512](https://github.com/yugabyte/yugabyte-db/issues/24512)

#### DocDB

- Prevents crash during transaction abort by adjusting lock handling. [#25689](https://github.com/yugabyte/yugabyte-db/issues/25689)
- Prevents crashes during catalog reloads by safely handling null `cluster_config_`. [#21775](https://github.com/yugabyte/yugabyte-db/issues/21775)
- Prevents xCluster failures caused by same-name table re-creation during non-DBScoped DR. [#25709](https://github.com/yugabyte/yugabyte-db/issues/25709)

#### CDC

- Ensures newly created tables in logical replication are retained correctly during cleanup. [#25206](https://github.com/yugabyte/yugabyte-db/issues/25206)

## v2024.1.4.0 - January 9, 2025

**Build:** `2024.1.4.0-b108`

**Third-party licenses:** [YugabyteDB](https://downloads.yugabyte.com/releases/2024.1.4.0/yugabytedb-2024.1.4.0-b108-third-party-licenses.html "YugabyteDB"), [YugabyteDB Anywhere](https://downloads.yugabyte.com/releases/2024.1.4.0/yugabytedb-anywhere-2024.1.4.0-b108-third-party-licenses.html "YugabyteDB Anywhere")

### Downloads

- [macOS x86](https://software.yugabyte.com/releases/2024.1.4.0/yugabyte-2024.1.4.0-b108-darwin-x86_64.tar.gz)
- [macOS ARM](https://software.yugabyte.com/releases/2024.1.4.0/yugabyte-2024.1.4.0-b108-darwin-arm64.tar.gz)
- [Linux x86](https://software.yugabyte.com/releases/2024.1.4.0/yugabyte-2024.1.4.0-b108-linux-x86_64.tar.gz)
- [Linux ARM](https://software.yugabyte.com/releases/2024.1.4.0/yugabyte-2024.1.4.0-b108-el8-aarch64.tar.gz)

**Docker:**

```sh
docker pull yugabytedb/yugabyte:2024.1.4.0-b108
```

### New features

#### CDC

- Enables tablet splitting on tables under CDCSDK stream by default using the flag `enable_tablet_split_of_cdcsdk_streamed_tables`. [#24190](https://github.com/yugabyte/yugabyte-db/issues/24190)

### Change log

View the detailed changelog

### Improvements

#### YSQL

- Updates advisory lock error message with a workaround hint instead of `not yet implemented.` [#23881](https://github.com/yugabyte/yugabyte-db/issues/23881)
- Allows preloading of foreign key lists in relcache, avoiding on-demand master fetches, controlled by `yb_enable_fkey_catcache`. [#23686](https://github.com/yugabyte/yugabyte-db/issues/23686)
- Streamlines sys table prefetching by automatically resetting catalog read time. [#23502](https://github.com/yugabyte/yugabyte-db/issues/23502)
- Prevents catalog version bumps on no-op `ALTER ROLE` commands, saving system resources. [#24390](https://github.com/yugabyte/yugabyte-db/issues/24390)

#### YCQL

- Resolves timestamp precision mismatches in YCQL, aligning inserts and index scans to millisecond precision. Enables users to optionally revert to microsecond precision using the flag `cql_revert_to_partial_microsecond_support=false`. [#11052](https://github.com/yugabyte/yugabyte-db/issues/11052), [#23476](https://github.com/yugabyte/yugabyte-db/issues/23476)
- Tracks microsecond precision timestamps in YCQL with new metric `cql_microseconds_timestamps_used`. This tracking occurs if the `cql_revert_to_partial_microsecond_support` flag is true. [#24776](https://github.com/yugabyte/yugabyte-db/issues/24776)

#### DocDB

- Blocks writes based on total bytes being flushed, not just memtable count. [#22571](https://github.com/yugabyte/yugabyte-db/issues/22571)
- Enhances load balancer to prioritize under-replicated tablets first. [#20263](https://github.com/yugabyte/yugabyte-db/issues/20263)
- Limits concurrent remote bootstraps per TServer using `load_balancer_max_inbound_remote_bootstraps_per_tserver` flag. [#2426](https://github.com/yugabyte/yugabyte-db/issues/2426)
- Reduces unnecessary attribute map creations during Prometheus metric aggregation. [#24405](https://github.com/yugabyte/yugabyte-db/issues/24405)
- Disables db\_max\_flushing\_bytes logic to enhance write-stalling based on memtable size. [#22571](https://github.com/yugabyte/yugabyte-db/issues/22571)
- Upgrades non-FIPS OpenSSL to 3.0.15 and removes CentOS 7 builds. [#24436](https://github.com/yugabyte/yugabyte-db/issues/24436)
- Prevents overloading by correctly categorizing bootstrapping tablets in load balancing. [#23487](https://github.com/yugabyte/yugabyte-db/issues/23487)
- Enhances RBS throttling by focusing on active fetch sessions and adjusts expiration logic. [#21563](https://github.com/yugabyte/yugabyte-db/issues/21563), [#24031](https://github.com/yugabyte/yugabyte-db/issues/24031)
- Enhances stability by fixing a missing null check in tablet lookup processes. [#25145](https://github.com/yugabyte/yugabyte-db/issues/25145)

#### CDC

- Disables automatic tablet splitting for CDC stream tables by default. [#25148](https://github.com/yugabyte/yugabyte-db/issues/25148)
- Enables dynamic table addition in logical replication by default. [#25413](https://github.com/yugabyte/yugabyte-db/issues/25413)
- Automatically removes metrics when a CDC stream is deleted. [#24876](https://github.com/yugabyte/yugabyte-db/issues/24876)

#### yugabyted

- Ensures accurate CPU usage metrics in the YCQL table by updating `prev_ticks_` each iteration. [#22910](https://github.com/yugabyte/yugabyte-db/issues/22910)

### Bug fixes

#### YSQL

- Modifies backup/restore process to skip column name checks for indexes, allowing for successful restoration even with renamed columns. [#24207](https://github.com/yugabyte/yugabyte-db/issues/24207)
- Enhances Postgres restart stability by refining shutdown handling and lock file management. Includes killing only Postgres-associated PIDs, using `SIGQUIT` for immediate shutdowns to reduce hang-ups, and monitoring for stuck processes on macOS [#24396](https://github.com/yugabyte/yugabyte-db/issues/24396)
- Streamlines `ysql_dump` process by eliminating faulty statements for colocated table unique constraint, enhancing database reliability. [#24057](https://github.com/yugabyte/yugabyte-db/issues/24057)
- Fixes the flaw in the current DDL atomicity workflow where only the first table's schema was compared, even if it doesn't change after a schema version increment. [#23988](https://github.com/yugabyte/yugabyte-db/issues/23988)
- Alters encoding setup order to ensure `UTF8` use instead of `SQL_ASCII` and adds `pg_collation` to preloaded tables to prevent specific errors. [#24149](https://github.com/yugabyte/yugabyte-db/issues/24149)
- Prevent incorrect loading of pg\_collation catalog caches, eliminating associated performance issues. [#24149](https://github.com/yugabyte/yugabyte-db/issues/24149)
- Adds HELP and TYPE metadata to each metrics onto the YSQL Prometheus metrics endpoint for better metrics accessibility. [#23578](https://github.com/yugabyte/yugabyte-db/issues/23578)
- Blocks `REINDEX` and `TRUNCATE` on system tables using table rewrite. [#24356](https://github.com/yugabyte/yugabyte-db/issues/24356)
- Fixes out-of-bound memory access during index scan cost estimation ensuring stable query execution on system catalogs and expression-based indexes when using the `yb_enable_base_scans_cost_model` configuration [#24246](https://github.com/yugabyte/yugabyte-db/issues/24246)
- Ensures parent partitioned tables correctly rewrite during operations, preventing backup/restore errors. [#24458](https://github.com/yugabyte/yugabyte-db/issues/24458)
- Assumes indexes contain 1000 rows when statistics are unavailable, ensuring better query planning. [#24496](https://github.com/yugabyte/yugabyte-db/issues/24496)
- Enhances performance during nested loop joins by ensuring correct limit resets in colocated index scans. [#24560](https://github.com/yugabyte/yugabyte-db/issues/24560)
- Enhances indexing by allowing batching of `PlaceHolderVar` in parameterized conditions. [#24186](https://github.com/yugabyte/yugabyte-db/issues/24186)
- Reduces assert strictness in YSQL, preventing crashes when only some index key columns have unbatchable clauses. [#22911](https://github.com/yugabyte/yugabyte-db/issues/22911)
- Fixes foreign key checks to avoid errors with unique indexes. [#24663](https://github.com/yugabyte/yugabyte-db/issues/24663)
- Accurately estimates the cost of partial index scans by including index conditions. [#24916](https://github.com/yugabyte/yugabyte-db/issues/24916)
- Reduces memory usage spikes by using a new memory context for `RelationBuildTriggers`. [#24951](https://github.com/yugabyte/yugabyte-db/issues/24951)
- Allows Batch Nested Loop (BNL) joins on partitioned tables in outer joins. [#25080](https://github.com/yugabyte/yugabyte-db/issues/25080), [#25078](https://github.com/yugabyte/yugabyte-db/issues/25078)
- Ensures accurate catalog version tracking during concurrent index creation. [#24775](https://github.com/yugabyte/yugabyte-db/issues/24775)
- Fixes inconsistency in index entries during concurrent writes in the backfill phase. [#25250](https://github.com/yugabyte/yugabyte-db/issues/25250)

#### YCQL

- Allows users to control error suppression for `GROUP BY` in YCQL using `ycql_ignore_group_by_error` flag. [#25030](https://github.com/yugabyte/yugabyte-db/issues/25030)
- Eliminates unexpected error during shell type definition update across multiple sessions. [#24217](https://github.com/yugabyte/yugabyte-db/issues/24217)
- Prevents TServer crashes on executing specific queries by handling NULL pointers effectively. [#23004](https://github.com/yugabyte/yugabyte-db/issues/23004)

#### DocDB

- Prevents tablet bootstrap from getting stuck when replaying a truncate operation. [#23243](https://github.com/yugabyte/yugabyte-db/issues/23243)
- Allows the packed row size to exceed its limit during repacking, preventing TServer crash after `alter table add column` commands with a default value. [#24050](https://github.com/yugabyte/yugabyte-db/issues/24050)
- Ensures heartbeat processing now checks sequence numbers, avoiding overwrites that could corrupt metadata during remote bootstrapping of new tablets. This change prevents loss of leader tracking and enhances data consistency. [#21836](https://github.com/yugabyte/yugabyte-db/issues/21836)
- TServers now reject remote bootstrap requests for previously deleted tablets. [#24574](https://github.com/yugabyte/yugabyte-db/issues/24574)
- Sets a default 10MB max size for RocksDB MANIFEST files, now configurable via flags. [#11117](https://github.com/yugabyte/yugabyte-db/issues/11117)
- Enhances visibility for unexpected rate limiter sleep times in RBS threads. [#24342](https://github.com/yugabyte/yugabyte-db/issues/24342)
- Prevents crashes when calling `ListMasterServers` RPC on a master by returning an error. [#20372](https://github.com/yugabyte/yugabyte-db/issues/20372)
- Ensures continuous xCluster task operation even if the master temporarily loses the lease but retains leadership. [#25480](https://github.com/yugabyte/yugabyte-db/issues/25480)
- Prevents crashes during compaction when `ysql_enable_packed_row` is off and existing packed rows are present. [#24545](https://github.com/yugabyte/yugabyte-db/issues/24545)
- Fixes error for select queries in large tables by adjusting backward scan bounds. [#24824](https://github.com/yugabyte/yugabyte-db/issues/24824)
- Ensures consistency between `Slice::Less` and `Slice::compare` methods. [#25319](https://github.com/yugabyte/yugabyte-db/issues/25319)
- Fixes shutdown path issues to prevent fatal errors during RPC completion. [#24524](https://github.com/yugabyte/yugabyte-db/issues/24524)
- Resolves scheduling of contentious waiters to the correct, larger RPC threadpool. [#24478](https://github.com/yugabyte/yugabyte-db/issues/24478)
- Reduces latency by enhancing early resume of RPCs blocked on aborted transactions. [#24799](https://github.com/yugabyte/yugabyte-db/issues/24799)
- Enables ASAN builds to use a specific older third party version to ensure compatibility and unblock backports. [#17404](https://github.com/yugabyte/yugabyte-db/issues/17404)

#### CDC

- Fixes memory leaks in the walsender's handling of transactions and file nodes. [#24788](https://github.com/yugabyte/yugabyte-db/issues/24788)
- Enables removal of dropped tables from the replica identity map to prevent replication errors. [#24308](https://github.com/yugabyte/yugabyte-db/issues/24308)
- Excludes expired or irrelevant entries from metrics calculations for more accurate reporting. [#24975](https://github.com/yugabyte/yugabyte-db/issues/24975)
- Ensures accurate history retention for various replica identities in CDC. [#25193](https://github.com/yugabyte/yugabyte-db/issues/25193)

## v2024.1.3.1 - November 20, 2024

**Build:** `2024.1.3.1-b8`

**Third-party licenses:** [YugabyteDB](https://downloads.yugabyte.com/releases/2024.1.3.1/yugabytedb-2024.1.3.1-b8-third-party-licenses.html "YugabyteDB"), [YugabyteDB Anywhere](https://downloads.yugabyte.com/releases/2024.1.3.1/yugabytedb-anywhere-2024.1.3.1-b8-third-party-licenses.html "YugabyteDB Anywhere")

### Downloads

- [macOS x86](https://software.yugabyte.com/releases/2024.1.3.1/yugabyte-2024.1.3.1-b8-darwin-x86_64.tar.gz)
- [macOS ARM](https://software.yugabyte.com/releases/2024.1.3.1/yugabyte-2024.1.3.1-b8-darwin-arm64.tar.gz)
- [Linux x86](https://software.yugabyte.com/releases/2024.1.3.1/yugabyte-2024.1.3.1-b8-linux-x86_64.tar.gz)
- [Linux ARM](https://software.yugabyte.com/releases/2024.1.3.1/yugabyte-2024.1.3.1-b8-el8-aarch64.tar.gz)

**Docker:**

```sh
docker pull yugabytedb/yugabyte:2024.1.3.1-b8
```

### Bug fixes

#### YSQL

- Enhances Postgres restarts by better handling lock files, identifying stuck processes and uses `SIGQUIT` for immediate shutdowns [#24396](https://github.com/yugabyte/yugabyte-db/issues/24396)
- Fixes a crash during cost estimation of indexes on system columns and expressions when using the new cost model [#24246](https://github.com/yugabyte/yugabyte-db/issues/24246)

## v2024.1.3.0 - October 8, 2024

**Build:** `2024.1.3.0-b105`

**Third-party licenses:** [YugabyteDB](https://downloads.yugabyte.com/releases/2024.1.3.0/yugabytedb-2024.1.3.0-b105-third-party-licenses.html "YugabyteDB"), [YugabyteDB Anywhere](https://downloads.yugabyte.com/releases/2024.1.3.0/yugabytedb-anywhere-2024.1.3.0-b105-third-party-licenses.html "YugabyteDB Anywhere")

### Downloads

- [macOS x86](https://software.yugabyte.com/releases/2024.1.3.0/yugabyte-2024.1.3.0-b105-darwin-x86_64.tar.gz)
- [macOS ARM](https://software.yugabyte.com/releases/2024.1.3.0/yugabyte-2024.1.3.0-b105-darwin-arm64.tar.gz)
- [Linux x86](https://software.yugabyte.com/releases/2024.1.3.0/yugabyte-2024.1.3.0-b105-linux-x86_64.tar.gz)
- [Linux ARM](https://software.yugabyte.com/releases/2024.1.3.0/yugabyte-2024.1.3.0-b105-el8-aarch64.tar.gz)

**Docker:**

```sh
docker pull yugabytedb/yugabyte:2024.1.3.0-b105
```

### New features

- [Bitmap scan support](/stable/reference/configuration/yb-tserver/#enable-bitmapscan "Bitmap scan support"). Combine multiple indexes for more efficient scans. [EA](/stable/releases/versioning/#feature-maturity)
- [Voyager assessment visualisation in yugabyted UI](/stable/yugabyte-voyager/migrate/assess-migration/ "Voyager assessment visualisation in yugabyted UI"). Updates to the migrations screens - "Schema Migrate page" to better capture the schema issues, and "Data Migrations UX" to readily provide voyager commands to users.
- [Disk full scenarios](/stable/troubleshoot/nodes/disk-full/ "Disk full scenarios"). Fail writes on nodes, if the free disk space on the nodes becomes low.

### Change log

View the detailed changelog

### Improvements

#### YSQL

- Introduces the `yb_make_next_ddl_statement_nonincrementing` configuration parameter to reduce catalog version increments during many consecutive DDLs, lowering memory and latency spikes. [#23786](https://github.com/yugabyte/yugabyte-db/issues/23786)
- Added yb\_make\_next\_ddl\_statement\_nonincrementing to YbDbAdminVariables for yb\_db\_admin role. [#23786](https://github.com/yugabyte/yugabyte-db/issues/23786)

#### YCQL

- Updates YCQL tables `system_schema.functions` and `system_schema.aggregates` to align with Cassandra, aiding Cortex migration. [#3893](https://github.com/yugabyte/yugabyte-db/issues/3893)

#### DocDB

- Enables reduction of duplicate code and custom flag filtering through `GetFlagInfos` relocation. [#23632](https://github.com/yugabyte/yugabyte-db/issues/23632)
- Allows reduction of thread stack size to avoid Linux hugepage backing. [#23927](https://github.com/yugabyte/yugabyte-db/issues/23927)
- Adds `emergency_repair_mode` flag and yb-admin commands `dump_sys_catalog_entries` and `write_sys_catalog_entry` to address CatalogEntity data corruption issues. [#23098](https://github.com/yugabyte/yugabyte-db/issues/23098)
- Introduces a new flag `max_disk_throughput_mbps` for automated control of write rejections when disk is full, replacing `reject_writes_min_disk_space_aggressive_check_mb`. [#23373](https://github.com/yugabyte/yugabyte-db/issues/23373)
- Allows explicit addition of flags to `gflag_allowlist.txt` for secure call home data collection, plus `version_info` in TServer data. [#24103](https://github.com/yugabyte/yugabyte-db/issues/24103)

#### CDC

- Allows dynamic table addition alongside table removal from CDC streams without needing to disable or restart. [#23581](https://github.com/yugabyte/yugabyte-db/issues/23581)
- Adds a yb-admin option to disable dynamic table addition when creating new streams. [#23482](https://github.com/yugabyte/yugabyte-db/issues/23482)
- Allows automatic cleanup for ineligible tables on CDC streams and improves the removal process by fetching tablet list from a local copy instead of the state table, improving performance. Updates include removal of flag protection for Step-1 and the replacement of the preview flag. [#23806](https://github.com/yugabyte/yugabyte-db/issues/23806)
- Syncs table removal from a CDC stream to a more performant async process, allowing both manual and automatic removal via the `RemoveUserTableFromCDCSDKStream` and `RemoveTablesFromCDCSDKStream` RPCs respectively. This change utilizes a background thread to enhance user table deletion while preserving data consistency. [#23700](https://github.com/yugabyte/yugabyte-db/issues/23700)
- Enables asynchronous removal of user tables from CDC streams by adjusting how background threads process and persist stream metadata. [#23700](https://github.com/yugabyte/yugabyte-db/issues/23700)
- Disables `wal_level` checks for logical replication in YSQL as PG WAL is not used. [#23661](https://github.com/yugabyte/yugabyte-db/issues/23661)
- Changes the default `wal_level` to `logical` to ensure compatibility with logical replication clients. [#23661](https://github.com/yugabyte/yugabyte-db/issues/23661)

#### yugabyted

- Enables bitmap scans and removes size-based fetching in the PostgreSQL Parity feature by updating flags. [#23777](https://github.com/yugabyte/yugabyte-db/issues/23777)
- Enhances `yugabyted configure_read_replica` commands with checks to gracefully handle failures when `data_placement_constraint` lacks `:<num_of_replicas>`. [#23273](https://github.com/yugabyte/yugabyte-db/issues/23273)
- Allows yugabyted UI metrics to display correctly when deployed with Kubernetes OSS operator. [#22532](https://github.com/yugabyte/yugabyte-db/issues/22532)
- Reduces data redundancy by stopping the sending of flag information from yugabyted in callhome diagnostics. [#24029](https://github.com/yugabyte/yugabyte-db/issues/24029)

### Bug fixes

#### YSQL

- Fixes an issue related to regular expression pushdown causing inconsistency and crashes by introducing thread local cache. [#22989](https://github.com/yugabyte/yugabyte-db/issues/22989)
- Resets catalog read time after table prefetching to prevent outdated readings for on-demand loading from a master. [#23421](https://github.com/yugabyte/yugabyte-db/issues/23421)
- Corrects IndexScan's indextlist to improve accuracy of variable references in subquery scenarios. [#22533](https://github.com/yugabyte/yugabyte-db/issues/22533)
- Fixes crashes caused by using a RowComparisonExpression on a reordered primary key index. [#23824](https://github.com/yugabyte/yugabyte-db/issues/23824)
- Fixes repeated calls in `DeleteTableInternal`, preventing `YbAdminSnapshotScheduleTest.SysCatalogRetention` failure on asan builds. [#23459](https://github.com/yugabyte/yugabyte-db/issues/23459)
- Resolves potential memory corruption by mutating pushdown expressions outside the per tuple context. [#23461](https://github.com/yugabyte/yugabyte-db/issues/23461)
- Eliminates the publishing of empty metrics from the `statementType` enum on the YSQL Metrics endpoint. [#23557](https://github.com/yugabyte/yugabyte-db/issues/23557)
- Revamped `Storage Read Requests` metric now better reflects true RPC count in `PrecastRequestSender` usage. [#23396](https://github.com/yugabyte/yugabyte-db/issues/23396), [#18785](https://github.com/yugabyte/yugabyte-db/issues/18785)
- Adds more logs to aid in debugging a transaction status mismatch issue. [#23669](https://github.com/yugabyte/yugabyte-db/issues/23669)
- Addresses a bug in YSQL that caused crashes while costing an index scan on a hash index with included columns using CBO. [#22772](https://github.com/yugabyte/yugabyte-db/issues/22772)
- Fixes the hanging issue when creating a colocated table by correcting the unconditional reading of the `relkind` column. [#23708](https://github.com/yugabyte/yugabyte-db/issues/23708)
- Fixes a bug that caused incorrect deducing of commit/abort status for transactions which do not change the table's schema. [#23669](https://github.com/yugabyte/yugabyte-db/issues/23669)
- Replaces deprecated function `shared_ptr::unique` to resolve compilation errors on macOS. [#24012](https://github.com/yugabyte/yugabyte-db/issues/24012)
- Improves cache re-invalidation for `ALTER TABLE` commands to avoid schema version mismatch errors in the same session. [#23882](https://github.com/yugabyte/yugabyte-db/issues/23882)
- Adds a new flag `TEST_check_catalog_version_overflow` that can detect and prevent catalog version overflow issues. [#24021](https://github.com/yugabyte/yugabyte-db/issues/24021)
- Removes unnecessary DCHECK for smoother rolling upgrades from release 2.20, enhancing `ysql_enable_db_catalog_version_mode` flag functionality. [#23462](https://github.com/yugabyte/yugabyte-db/issues/23462)
- Enables a node to successfully join using the `join` flag by implementing a retry mechanism. [#23898](https://github.com/yugabyte/yugabyte-db/issues/23898)

#### DocDB

- Limits response size by omitting per-object details from SysSnapshotEntryPB in ListSnapshotSchedules RPC. [#23518](https://github.com/yugabyte/yugabyte-db/issues/23518)
- Reduces the risk of deadlocks when making active read/write requests to a table right after a tablet-split. [#23747](https://github.com/yugabyte/yugabyte-db/issues/23747)
- Simplifies handling of large RPC responses by catching errors earlier and appropriately using `narrow_cast`. [#22301](https://github.com/yugabyte/yugabyte-db/issues/22301)
- Switches write query duration from `CoarseMonoClock` to `MonoClock` for precise nanosecond granularity. [#20335](https://github.com/yugabyte/yugabyte-db/issues/20335)
- Refactors to remove an assumption that every TServer hosts tablets, preventing crashes in certain circumstances. [#20230](https://github.com/yugabyte/yugabyte-db/issues/20230)
- Sets the `close_timestamp_micros` field for partially copied log segments to prevent time-based policy violation. [#23335](https://github.com/yugabyte/yugabyte-db/issues/23335)
- Eliminates persistent logging issue after dropping a colocated table by removing unnecessary logs. [#22037](https://github.com/yugabyte/yugabyte-db/issues/22037)
- Corrects leader balancing for geopartitioned tables to prevent early exits and ensure accurate global leader sorting. [#23886](https://github.com/yugabyte/yugabyte-db/issues/23886)
- Enables batching of metric updates for YCQL reads to prevent performance slowdowns. [#21832](https://github.com/yugabyte/yugabyte-db/issues/21832)
- Ensures "create table" requests for colocated tables don't fail due to mistaken tablet limit checks. [#23922](https://github.com/yugabyte/yugabyte-db/issues/23922)
- Ensures node restarts successfully with `secure` enabled by introducing a timeout framework. [#23447](https://github.com/yugabyte/yugabyte-db/issues/23447)
- Promotes cluster start-up when master\_webserver\_port is customized by considering user input during the `validate_and_set_configs` step. [#23629](https://github.com/yugabyte/yugabyte-db/issues/23629)

#### CDC

- Prevents TServer crash by giving each thread its own copy of `SchemaDetailsMap` during concurrent `GetChanges` calls. [#23394](https://github.com/yugabyte/yugabyte-db/issues/23394), [#22962](https://github.com/yugabyte/yugabyte-db/issues/22962)
- Refactors CDCSDK to prevent data loss during workload with single shard transactions by ensuring WAL messages are committed before being replicated. [#19294](https://github.com/yugabyte/yugabyte-db/issues/19294)
- Reduces disk IO overhead by optimizing the tablet-meta update process in CDCService. [#22805](https://github.com/yugabyte/yugabyte-db/issues/22805)
- Introduces three new yb-admin commands for managing user tables in a CDC stream and addresses a race condition issue by removing an optimization in the `UpdateCheckpointForTabletEntriesInCDCState` method. [#22876](https://github.com/yugabyte/yugabyte-db/issues/22876), [#22835](https://github.com/yugabyte/yugabyte-db/issues/22835), [#22773](https://github.com/yugabyte/yugabyte-db/issues/22773)
- Obsoletes expired or unpolled tables from CDC stream and state table, reducing unnecessary resource retention and potential blocking of split tablet deletion. [#23367](https://github.com/yugabyte/yugabyte-db/issues/23367)
- Filters out records related to index tables in colocated databases to prevent GetChanges call failures. [#23809](https://github.com/yugabyte/yugabyte-db/issues/23809)
- Ensures old-tuples for updates are only sent when replica identity is FULL, matching PostgreSQL behavior. [#23353](https://github.com/yugabyte/yugabyte-db/issues/23353)

#### yugabyted

- Offers corrected DB OID in the function `calculate_table_size`, now matching `YBCGetDatabaseOid(rel)` for improved reliability. [#20030](https://github.com/yugabyte/yugabyte-db/issues/20030)

## v2024.1.2.0 - September 3, 2024

**Build:** `2024.1.2.0-b77`

**Third-party licenses:** [YugabyteDB](https://downloads.yugabyte.com/releases/2024.1.2.0/yugabytedb-2024.1.2.0-b77-third-party-licenses.html "YugabyteDB"), [YugabyteDB Anywhere](https://downloads.yugabyte.com/releases/2024.1.2.0/yugabytedb-anywhere-2024.1.2.0-b77-third-party-licenses.html "YugabyteDB Anywhere")

### Downloads

- [macOS x86](https://software.yugabyte.com/releases/2024.1.2.0/yugabyte-2024.1.2.0-b77-darwin-x86_64.tar.gz)
- [macOS ARM](https://software.yugabyte.com/releases/2024.1.2.0/yugabyte-2024.1.2.0-b77-darwin-arm64.tar.gz)
- [Linux x86](https://software.yugabyte.com/releases/2024.1.2.0/yugabyte-2024.1.2.0-b77-linux-x86_64.tar.gz)
- [Linux ARM](https://software.yugabyte.com/releases/2024.1.2.0/yugabyte-2024.1.2.0-b77-el8-aarch64.tar.gz)

**Docker:**

```sh
docker pull yugabytedb/yugabyte:2024.1.2.0-b77
```

### New features

- [Semi-automatic transactional xCluster setup](/stable/deploy/multi-dc/async-replication/async-replication-transactional/ "Semi-automatic transactional xCluster setup"). Provides operationally simpler setup and management of YSQL transactional xCluster replication, as well as simpler steps for performing DDL changes. [EA](/stable/releases/versioning/#feature-maturity)
- [Kubernetes readiness probe](/stable/deploy/kubernetes/single-zone/oss/helm-chart/#readiness-probes "Kubernetes readiness probe"). Added readiness probes for TServer and Master pods in YugabyteDB, supporting custom or default configurations, thereby enhancing stability by ensuring YSQL/YCQL and YB-Master pods are ready before traffic is routed. [EA](/stable/releases/versioning/#feature-maturity)
- yugabyted
  
  - [Voyager assessment visualisation in yugabyted UI](/stable/yugabyte-voyager/migrate/assess-migration/ "Voyager assessment visualisation in yugabyted UI"). Yugabyted UI provides a dashboard to allow the users to effectively plan the migrations based on the complexity and also be able to monitor the progress of each migration
  - [Backup/restore support with TLS enabled](/stable/reference/configuration/yugabyted/#backup "Backup/restore support with TLS enabled"). In secure mode, yugabyted cluster supports taking full backup/restores. [EA](/stable/releases/versioning/#feature-maturity)
  - [xCluster support](/stable/reference/configuration/yugabyted/#set-up-xcluster-replication-between-clusters "xCluster support"). yugabyted enables native support for setting up xCluster between two yugabyted deployed clusters. [EA](/stable/releases/versioning/#feature-maturity)

### Change log

View the detailed changelog

### Improvements

#### YSQL

- Avoids renaming DocDB tables during legacy rewrite operations to prevent issues with backup/restore and improves handling of failed ADD/DROP primary key, ALTER TYPE operations. [#22802](https://github.com/yugabyte/yugabyte-db/issues/22802)
- Adds Save/Restore state functionality to `ConsistentReadPoint` using a new `Momento` class. [#22597](https://github.com/yugabyte/yugabyte-db/issues/22597)

#### DocDB

- Allows asynchronous DNS cache updating and resolution retry upon failure to reduce RPC call delays and prevent unexpected leadership changes. [#22930](https://github.com/yugabyte/yugabyte-db/issues/22930), [#22311](https://github.com/yugabyte/yugabyte-db/issues/22311)
- Enhances stack trace tracking endpoints usability by adding an access button, a reset tracking link, and timestamp details. [#22842](https://github.com/yugabyte/yugabyte-db/issues/22842)
- Introduces a new flag `enable_rwc_lock_debugging` to control slow lock debugging and fixes a bug in `rwc_lock.cc`. [#22807](https://github.com/yugabyte/yugabyte-db/issues/22807)

#### yugabyted

- Enables better handling of multi-valued flags in yugabyted without duplication, making the system more maintainable. [#22091](https://github.com/yugabyte/yugabyte-db/issues/22091)
- Enables xCluster replication management between database clusters using new yugabyted commands. [#22349](https://github.com/yugabyte/yugabyte-db/issues/22349)
- Reduces `collect_logs` command failures by removing the yugabyted running check even when the yugabyted process is not running. [#23210](https://github.com/yugabyte/yugabyte-db/issues/23210)
- Introduces `upgrade_finalize` command for easy YugabyteDB version upgrades using yugabyted CLI and includes an `upgrade_ysql_timeout` flag. [#21888](https://github.com/yugabyte/yugabyte-db/issues/21888)
- Enhances `yugabyted configure_read_replica` commands with checks to gracefully handle failures when `data_placement_constraint` lacks `:<num_of_replicas>`. [#23273](https://github.com/yugabyte/yugabyte-db/issues/23273)

### Bug fixes

#### YSQL

- Allows YB Admins to run pg\_locks without requiring superuser status. [#23266](https://github.com/yugabyte/yugabyte-db/issues/23266)
- Allows faster data inserts into tables with identity columns. [#22837](https://github.com/yugabyte/yugabyte-db/issues/22837)
- Prevents a crash related to memory release associated with TupleTableSlots in SubPlans during a Values Scan. [#22967](https://github.com/yugabyte/yugabyte-db/issues/22967)
- Reduces prefix length in the index when using distinct index scan with included columns. [#22822](https://github.com/yugabyte/yugabyte-db/issues/22822)
- Allows resetting of stats collected by the ANALYZE command, including `reltuples`, `pg_statistic` rows, and `pg_statistic_ext` values. [#22028](https://github.com/yugabyte/yugabyte-db/issues/22028)
- Eliminates unnecessary waiting for concurrent transactions in the DEFERRABLE mode for READ ONLY serializable transactions. [#23120](https://github.com/yugabyte/yugabyte-db/issues/23120)
- Streamlines the "drop column" operation process, preventing hindrance even if the alter schema RPC is missed. [#23100](https://github.com/yugabyte/yugabyte-db/issues/23100)
- Fixes TServer crash when pushing down certain SAOP operations like string\_to\_array. [#23287](https://github.com/yugabyte/yugabyte-db/issues/23287)
- Allows pg\_replication\_slots to return an empty response instead of an error when `ysql_yb_enable_replication_commands` flag is false. [#23096](https://github.com/yugabyte/yugabyte-db/issues/23096)
- Ensures the node restarts properly even with `secure` mode enabled by adding a timeout framework. [#23447](https://github.com/yugabyte/yugabyte-db/issues/23447)

#### DocDB

- Allows restoring a snapshot schedule from a time just before the oldest snapshot, improving usability. [#21269](https://github.com/yugabyte/yugabyte-db/issues/21269)
- Fixes issue of scans not honoring timeouts, preventing indefinite reads and reducing CPU usage. [#21829](https://github.com/yugabyte/yugabyte-db/issues/21829)
- Adds validation to RPCs `DeleteSnapshot` and `RestoreSnapshot` to prevent deletion or use of snapshots involved in ongoing processes. [#23055](https://github.com/yugabyte/yugabyte-db/issues/23055)
- Prevents `unexpected leader` fatal errors by updating cached leader terms immediately after a leader change. [#21808](https://github.com/yugabyte/yugabyte-db/issues/21808)
- Allows the persistent mapping of source-target schema versions when a new table is added to a colocated database, thus preventing replication from stalling after TServer restarts. [#23188](https://github.com/yugabyte/yugabyte-db/issues/23188)
- Updates cotable IDs in flushed frontiers during a snapshot restore, preventing potential post-restore issues. [#23047](https://github.com/yugabyte/yugabyte-db/issues/23047)
- Ensures object drops correctly cascade to dependent columns in the DocDB table, preventing inconsistencies. [#22874](https://github.com/yugabyte/yugabyte-db/issues/22874)
- Allows large bytes to be requested on RateLimiter, preventing indefinite call stalling. [#23173](https://github.com/yugabyte/yugabyte-db/issues/23173)
- Restores the previously missing home icon in the master user interface. [#23275](https://github.com/yugabyte/yugabyte-db/issues/23275)
- Removes extra reads during the processing of `INSERT INTO ...RETURNS STATUS AS ROW` for CQL tables with a specific primary key, improving system load and efficiency. [#23330](https://github.com/yugabyte/yugabyte-db/issues/23330)

#### CDC

- Introduces new auto flag `cdcsdk_enable_identification_of_non_eligible_tables` and three yb-admin commands to manage tables in CDC stream, enhancing control and reducing unnecessary resource usage. [#22876](https://github.com/yugabyte/yugabyte-db/issues/22876), [#22835](https://github.com/yugabyte/yugabyte-db/issues/22835), [#22773](https://github.com/yugabyte/yugabyte-db/issues/22773)
- Fixes the issue of getting either `0` or a random time as the server's system clock in XLogData from the logical replication stream. [#22929](https://github.com/yugabyte/yugabyte-db/issues/22929)
- Simple: Adds null checks and removes table removal optimization for CDC stream, ensuring proper arrangement and functioning of user-created tables. [#22876](https://github.com/yugabyte/yugabyte-db/issues/22876), [#22835](https://github.com/yugabyte/yugabyte-db/issues/22835), [#22773](https://github.com/yugabyte/yugabyte-db/issues/22773)
- Enables support for dynamically allotted OID data types in CDC to prevent system crashes. [#23179](https://github.com/yugabyte/yugabyte-db/issues/23179)
- Allows handling of non-eligible table cleanup in CDC stream loading even after table drop, preventing master crash. [#23278](https://github.com/yugabyte/yugabyte-db/issues/23278)

## v2024.1.1.0 - July 31, 2024

**Build:** `2024.1.1.0-b137`

**Third-party licenses:** [YugabyteDB](https://downloads.yugabyte.com/releases/2024.1.1.0/yugabytedb-2024.1.1.0-b137-third-party-licenses.html "YugabyteDB"), [YugabyteDB Anywhere](https://downloads.yugabyte.com/releases/2024.1.1.0/yugabytedb-anywhere-2024.1.1.0-b137-third-party-licenses.html "YugabyteDB Anywhere")

### Downloads

- [macOS x86](https://software.yugabyte.com/releases/2024.1.1.0/yugabyte-2024.1.1.0-b137-darwin-x86_64.tar.gz)
- [macOS ARM](https://software.yugabyte.com/releases/2024.1.1.0/yugabyte-2024.1.1.0-b137-darwin-arm64.tar.gz)
- [Linux x86](https://software.yugabyte.com/releases/2024.1.1.0/yugabyte-2024.1.1.0-b137-linux-x86_64.tar.gz)
- [Linux ARM](https://software.yugabyte.com/releases/2024.1.1.0/yugabyte-2024.1.1.0-b137-el8-aarch64.tar.gz)

**Docker:**

```sh
docker pull yugabytedb/yugabyte:2024.1.1.0-b137
```

### Highlight

**PostgreSQL Logical Replication Protocol Support** [EA](/stable/releases/versioning/#feature-maturity)

We're excited to announce in the 2024.1.1.0 release support for the PostgreSQL Logical Replication Protocol for Change Data Capture (CDC), in addition to the existing native [gRPC Replication protocol](/stable/additional-features/change-data-capture/using-yugabytedb-grpc-replication/ "gRPC Replication protocol"). This feature allows you to manage CDC streams using [Publications](https://www.postgresql.org/docs/11/sql-createpublication.html "Publications") and [Replication Slots](https://www.postgresql.org/docs/11/logicaldecoding-explanation.html#LOGICALDECODING-REPLICATION-SLOTS "Replication Slots"), similar to native PostgreSQL. Additionally, a [new connector](/stable/additional-features/change-data-capture/using-logical-replication/get-started/#get-started-with-yugabytedb-connector "new connector") is introduced that utilizes the logical replication protocol to consume the CDC streams via [Replication slots](https://www.postgresql.org/docs/current/logicaldecoding-explanation.html#LOGICALDECODING-REPLICATION-SLOTS "Replication slots").

For more information, refer to [logical replication protocol](/stable/additional-features/change-data-capture/using-logical-replication/ "logical replication protocol").

### New features

- [Automated SQL/CQL Shell binary](/stable/api/ysqlsh/#installation "Automated SQL/CQL Shell binary"). Along with full binary, added separate downloadable SQL/CQL Shell binary.
- [Voyager assessment visualisation in yugabyted UI](/stable/yugabyte-voyager/migrate/assess-migration/ "Voyager assessment visualisation in yugabyted UI"). Yugabyted UI provides a dashboard to allow the users to effectively plan the migrations based on the complexity and also be able to monitor the progress of each migration [TP](/stable/releases/versioning/#feature-maturity)

### Change log

View the detailed changelog

### Improvements

#### YSQL

- Eradicates misleading log message during table creation with DDL atomicity enabled. [#22459](https://github.com/yugabyte/yugabyte-db/issues/22459)
- Removes the unused `keep_order` field from `YbctidGenerator` for cleaner results processing. [#21944](https://github.com/yugabyte/yugabyte-db/issues/21944)
- Updates read time for each operation to simplify code and avoid applying used read time from obsolete operations. [#21623](https://github.com/yugabyte/yugabyte-db/issues/21623)
- Enhances logging for DDL atomicity and corrects a loop index in cross-db unit test for clearer test logs. [#22736](https://github.com/yugabyte/yugabyte-db/issues/22736)

#### DocDB

- Offers a new stack trace tracking framework for improved visibility of disk I/O operations, configurable through the `track_stack_traces` flag. [#17993](https://github.com/yugabyte/yugabyte-db/issues/17993)
- Introduces utility to dump top heap stacks when memory limit is exceeded for enhanced debugging. [#21396](https://github.com/yugabyte/yugabyte-db/issues/21396)
- Adds `SCHECK_PB_FIELDS_NOT_EMPTY` macro for validating non-empty fields, with individual checks on list elements. [#22182](https://github.com/yugabyte/yugabyte-db/issues/22182)
- Disables the unused and unreliable NamespaceReplication tests temporarily for seamless operation. [#22457](https://github.com/yugabyte/yugabyte-db/issues/22457)
- Eliminates potential deadlock issue in DeleteOrHideTabletsAndSendRequests by removing unnecessary shared lock, and introduces a test for bug 22608. [#22618](https://github.com/yugabyte/yugabyte-db/issues/22618)
- Refreshes stack trace tracking UI endpoints to enable per-column sorting and optimize sorting script. [#22841](https://github.com/yugabyte/yugabyte-db/issues/22841)
- Introduces two new `SOURCE_UNREACHABLE` and `SYSTEM_ERROR` enums to enable more detailed error reporting from the Poller. [#22996](https://github.com/yugabyte/yugabyte-db/issues/22996)
- Refreshes stack trace tracking UI endpoints to enable per-column sorting and optimize sorting script. [#22841](https://github.com/yugabyte/yugabyte-db/issues/22841)
- Introduces two new `SOURCE_UNREACHABLE` and `SYSTEM_ERROR` enums to enable more detailed error reporting from the Poller. [#22996](https://github.com/yugabyte/yugabyte-db/issues/22996)
- Shifts tcmalloc profiling code to the Utils folder. [#22258](https://github.com/yugabyte/yugabyte-db/issues/22258)
- Enhances visibility of the `Hidden` state in Master/Tserver Tables UI by shifting its position more prominently to the `State` column. [#22521](https://github.com/yugabyte/yugabyte-db/issues/22521)

#### CDC

- Prevents addition of tables with enum array column to the CDC stream to avoid crashes during consumption. [#22897](https://github.com/yugabyte/yugabyte-db/issues/22897)
- Transforms the flag `yb_enable_cdc_consistent_snapshot_streams` from a preview into a default true auto flag. [#22984](https://github.com/yugabyte/yugabyte-db/issues/22984)
- Introduces three new yb-admin commands to remove a user table from a CDCSDK stream, descend dynamic table addition in a CDC stream, and validate CDC state for a particular stream, enhancing control over CDC streams. [#22876](https://github.com/yugabyte/yugabyte-db/issues/22876), [#22773](https://github.com/yugabyte/yugabyte-db/issues/22773)
- Adds a TServer flag, `ysql_yb_default_replica_identity`, for customizing default replica identity at table creation. [#22326](https://github.com/yugabyte/yugabyte-db/issues/22326)
- Introduces `cdcsdk_enable_dynamic_table_addition` flag to manage dynamic table additions in replication slot consumption model. [#22406](https://github.com/yugabyte/yugabyte-db/issues/22406)
- Introduces replication slot name for internal distinction between two consumption models in the code. [#22810](https://github.com/yugabyte/yugabyte-db/issues/22810)
- Allows creating an old model stream via yb-admin in upgraded environments, ensuring only one stream type per database. [#22894](https://github.com/yugabyte/yugabyte-db/issues/22894)
- Eliminates unnecessary NOTICE messages when setting yb\_read\_time from walsender, reducing message clutter. [#22379](https://github.com/yugabyte/yugabyte-db/issues/22379)

#### yugabyted

- Allows to specify multiple data directories using the new `additional_data_dir` configuration. [#22126](https://github.com/yugabyte/yugabyte-db/issues/22126)

### Bug fixes

#### YSQL

- Fixes an error that occurs when decoding null values from a boolean column sorted as NULLS LAST in a secondary index. [#22121](https://github.com/yugabyte/yugabyte-db/issues/22121)
- Fixes YSQL upgrade single connection mode error preventing new connection attempts before the old ones are released. [#22283](https://github.com/yugabyte/yugabyte-db/issues/22283)
- Fixes memory leaks in pg\_constraint/pg\_attrdef local cache by adding a missing `hash_destroy` call in `YbCleanupTupleCache`. [#22262](https://github.com/yugabyte/yugabyte-db/issues/22262)
- Fixes a memory leak in catalog cache refresh during upgrade that led to higher memory consumption. [#22262](https://github.com/yugabyte/yugabyte-db/issues/22262)
- Resolves remaining memory leaks in CacheMemoryContext to stabilize cache memory after every catalog cache refresh. [#22262](https://github.com/yugabyte/yugabyte-db/issues/22262)
- Stops Batched Nest Loop (BNL) crashes by ensuring better indexing condition checks. [#21954](https://github.com/yugabyte/yugabyte-db/issues/21954)
- Refines the logic to accurately push down join clauses to batched index scans without causing conflicts. [#21878](https://github.com/yugabyte/yugabyte-db/issues/21878)
- Re-enables rechecking for RowCompareExpressions to accurately handle NULL inputs in scan bound calculations. [#22075](https://github.com/yugabyte/yugabyte-db/issues/22075)
- Grants BNL hashtable its own expression context to prevent data overwrites during query execution. [#21266](https://github.com/yugabyte/yugabyte-db/issues/21266)
- Allows for an enhanced readability and performance of yb\_cost\_index code, aiding in merging with the pg15 branch. [#21672](https://github.com/yugabyte/yugabyte-db/issues/21672)
- Fixes a bug in the index tuple width calculation for better YB base scans cost model. [#21892](https://github.com/yugabyte/yugabyte-db/issues/21892)
- Makes `yb_get_range_split_clause` robust using PG TRY CATCH block, ensuring YB backup doesn't fail. [#22356](https://github.com/yugabyte/yugabyte-db/issues/22356)
- Prevents coredumps by ensuring YSQL webserver destruction upon receiving a termination signal. [#18948](https://github.com/yugabyte/yugabyte-db/issues/18948)
- Reduces test iterations of `PgCatalogVersionTest.SqlCrossDBLoadWithDDL` in tsan/asan build to prevent timeouts. [#22475](https://github.com/yugabyte/yugabyte-db/issues/22475)
- Fixes memory leaks in ybcFetchNextHeapTuple by properly freeing the YBCStatus. [#22396](https://github.com/yugabyte/yugabyte-db/issues/22396)
- Replaces `TRUNCATE` with `DELETE FROM` in TestPgTransparentRestarts, enhancing its stability and reducing flakiness. [#22522](https://github.com/yugabyte/yugabyte-db/issues/22522)
- Allows `CreateNamespaceIfNotExists` function to retry on "already exists" error, preventing race conditions. [#22512](https://github.com/yugabyte/yugabyte-db/issues/22512)
- Removes the unused function `Catalocustomeranager::WaitForDdlVerificationToFinish` for clarity. [#22649](https://github.com/yugabyte/yugabyte-db/issues/22649)
- Resolves potential database OID collision with `system_postgres` by excluding reserved OID 65535 in allocation. [#22598](https://github.com/yugabyte/yugabyte-db/issues/22598)
- Prevents the `IN` expressions on single column from wrongly taking the tuple path, ensuring correct data processing. [#22704](https://github.com/yugabyte/yugabyte-db/issues/22704)
- Ensures bitmap scans correctly recheck all results and avoid excluding rows, improving accuracy of outcomes. [#22622](https://github.com/yugabyte/yugabyte-db/issues/22622)
- Fixes incorrect access to the scan plan's bind descriptor during tuple IN condition rechecks. [#22800](https://github.com/yugabyte/yugabyte-db/issues/22800)
- Allows the creation of new shared relations during YSQL upgrade to have a global impact by incrementing the catalog version across every database. [#22830](https://github.com/yugabyte/yugabyte-db/issues/22830)
- Corrects the YbGetOrdinaryColumnsNeedingPgRecheck function to return table column numbers instead of index numbers, preventing unnecessary data fetches and potential crashes or errors after dropping a column. [#22832](https://github.com/yugabyte/yugabyte-db/issues/22832)
- Fixes the issue when a separately created and later attached partition does not properly inherit the parent's primary key using `ALTER TABLE ...ATTACH PARTITION`. [#22562](https://github.com/yugabyte/yugabyte-db/issues/22562)
- Now allows for correct backward prefix-based scanning by eliminating the problematic `kGroupEnd` marker that was leading to inaccurate seek results. [#22615](https://github.com/yugabyte/yugabyte-db/issues/22615)
- Reduces unexpected log messages by not invoking `YsqlDdlTxnCompleteCallback` if all table 'pb\_txn\_id's in the DDL transaction verifier state are already cleared, avoiding potential deadlock situations in DDL atomicity. [#22882](https://github.com/yugabyte/yugabyte-db/issues/22882)
- Reduces sequence cache collision by incorporating both database and sequence OIDs as the entry key. [#22935](https://github.com/yugabyte/yugabyte-db/issues/22935)
- Resolves a detected deadlock during ALTER TABLE operations, enhancing test stability. [#22882](https://github.com/yugabyte/yugabyte-db/issues/22882)
- Prevents a crash related to memory release associated with TupleTableSlots in SubPlans during a Values Scan. [#22967](https://github.com/yugabyte/yugabyte-db/issues/22967)
- Eliminates the occurrence of "schema version mismatch" error following a DROP INDEX statement by introducing a delay in index deletion. [#22637](https://github.com/yugabyte/yugabyte-db/issues/22637)

#### DocDB

- Eliminates possible deadlock during setup replication by fixing the order in which locks are acquired. [#22376](https://github.com/yugabyte/yugabyte-db/issues/22376)
- Removes unnecessary flush during snapshot deletion, preventing write blocks. [#22369](https://github.com/yugabyte/yugabyte-db/issues/22369)
- Resolves a heartbeat metrics issue ensuring full xCluster error information is sent to the new master even during a leader failover, and makes `tserver_heartbeat_metrics_interval_ms` runtime updatable. [#22624](https://github.com/yugabyte/yugabyte-db/issues/22624)
- Converted the `ysql_skip_row_lock_for_update` to an auto-flag to resolve compatibility issues during upgrade, preventing incorrect DB record creations that can affect row visibility and integrity. [#22057](https://github.com/yugabyte/yugabyte-db/issues/22057)
- Prevents duplicate entries in the sequence data filter used by Snapshot schedules, ensuring successful operations. [#22663](https://github.com/yugabyte/yugabyte-db/issues/22663)
- Resolves the issue of `pg_locks` query failure due to missing host node UUID in distributed transactions. [#22181](https://github.com/yugabyte/yugabyte-db/issues/22181)
- Clarifies memory division flags to reflect they are percentage of the process's hard memory limit, not total available memory. [#22423](https://github.com/yugabyte/yugabyte-db/issues/22423)
- Eliminates latency spikes in conflicting workloads by preventing redundant ProbeTransactionDeadlock RPCs. [#22426](https://github.com/yugabyte/yugabyte-db/issues/22426)
- Prevents premature metric destruction during Prometheus scrapes, resolving non-UTF8 character issues. [#22767](https://github.com/yugabyte/yugabyte-db/issues/22767)
- Ensures failed xCluster setup if the xCluster stream state update to `ACTIVE` does not occur. [#22601](https://github.com/yugabyte/yugabyte-db/issues/22601)

#### CDC

- Ensures deletion of MemoryContext after each GetChanges RPC to prevent memory leaks. [#22328](https://github.com/yugabyte/yugabyte-db/issues/22328)
- Prevents newly created indexes, materialized views, and non-user tables from being added to the Chang Data Capture (CDC) stream metadata. [#22808](https://github.com/yugabyte/yugabyte-db/issues/22808)
- Reduces resource usage by removing non-eligible tables, like indexes, from existing CDC SDK stream metadata, and releasing retention barriers. This change requires the master flag `enable_cleanup_of_non_eligible_tables_from_cdcsdk_stream` and limits processing to two non-eligible tables per namespace per run with `cdcsdk_table_processing_limit_per_run`. Introduces three yb-admin commands for managing CDC streams. [#22876](https://github.com/yugabyte/yugabyte-db/issues/22876), [#22835](https://github.com/yugabyte/yugabyte-db/issues/22835), [#22773](https://github.com/yugabyte/yugabyte-db/issues/22773)
- Fixes the issue of getting either `0` or a random time as the server's system clock in XLogData from the logical replication stream. [#22929](https://github.com/yugabyte/yugabyte-db/issues/22929)
- Fixes the segmentation fault in walsender for dynamic table addition by refreshing stored replica identities and preventing a race condition when creating dynamic tables. [#22273](https://github.com/yugabyte/yugabyte-db/issues/22273)
- Solves an issue where CDCSDK incorrectly deduces tablets as not interesting for stream before reaching the configured time limit. [#22383](https://github.com/yugabyte/yugabyte-db/issues/22383)
- Refines the logic to remove `BEGIN` record when no DML records are added, preventing potential virtual WAL crashes. [#21646](https://github.com/yugabyte/yugabyte-db/issues/21646)
- Addresses a race condition in dynamic table creation, enhancing stability during table and tablet initialization. [#22408](https://github.com/yugabyte/yugabyte-db/issues/22408)
- Increases timeout for deletion of slot entry from the state table to correct test failures in TSAN builds. [#22560](https://github.com/yugabyte/yugabyte-db/issues/22560)
- Resolves "could not open relation" error by updating slot creation method and simplifying yb\_read\_time logic. [#22398](https://github.com/yugabyte/yugabyte-db/issues/22398)
- Adds support for data types with dynamic OIDs in CDC to prevent crashes and allows tables with such columns to join the stream. [#23179](https://github.com/yugabyte/yugabyte-db/issues/23179)

#### yugabyted

- Eliminates inconsistent failures in TestSessionParameters.java by resetting roles to default instead of dropping them. [#21523](https://github.com/yugabyte/yugabyte-db/issues/21523)

## v2024.1.0.0 - June 4, 2024

**Build:** `2024.1.0.0-b129`

**Third-party licenses:** [YugabyteDB](https://downloads.yugabyte.com/releases/2024.1.0.0/yugabytedb-2024.1.0.0-b129-third-party-licenses.html "YugabyteDB"), [YugabyteDB Anywhere](https://downloads.yugabyte.com/releases/2024.1.0.0/yugabytedb-anywhere-2024.1.0.0-b129-third-party-licenses.html "YugabyteDB Anywhere")

### Downloads

- [macOS x86](https://software.yugabyte.com/releases/2024.1.0.0/yugabyte-2024.1.0.0-b129-darwin-x86_64.tar.gz)
- [macOS ARM](https://software.yugabyte.com/releases/2024.1.0.0/yugabyte-2024.1.0.0-b129-darwin-arm64.tar.gz)
- [Linux x86](https://software.yugabyte.com/releases/2024.1.0.0/yugabyte-2024.1.0.0-b129-linux-x86_64.tar.gz)
- [Linux ARM](https://software.yugabyte.com/releases/2024.1.0.0/yugabyte-2024.1.0.0-b129-el8-aarch64.tar.gz)

**Docker:**

```sh
docker pull yugabytedb/yugabyte:2024.1.0.0-b129
```

### Highlights

**Enhanced Postgres Compatibility Mode** [EA](/stable/releases/versioning/#feature-maturity)

We're pleased to announce the early access of the new [Enhanced Postgres Compatibility Mode](/stable/reference/configuration/postgresql-compatibility/ "Enhanced Postgres Compatibility Mode") in the 2024.1.0.0 release. This mode enables you to take advantage of many new improvements in both PostgreSQL compatibility and performance parity, making it even easier to lift and shift your applications from PostgreSQL to YugabyteDB. When this mode is turned on, YugabyteDB uses the [Read-Committed](/stable/architecture/transactions/read-committed/ "Read-Committed") isolation mode, the [Wait-on-Conflict](/stable/architecture/transactions/concurrency-control/#wait-on-conflict "Wait-on-Conflict") concurrency mode for predictable P99 latencies, and the new Cost Based Optimizer [EA](/stable/releases/versioning/#feature-maturity) that takes advantage of the distributed storage layer architecture and includes query pushdowns, LSM indexes, and [batched nested loop joins](/stable/architecture/query-layer/join-strategies/#batched-nested-loop-join-bnl "batched nested loop joins") to offer PostgreSQL-like performance.

**Rollback after upgrade**

Rolling back to the pre-upgrade version if you're not satisfied with the upgraded version is now [GA](/stable/releases/versioning/#feature-maturity) . Refer to the [Rollback phase](/stable/manage/upgrade-deployment/#b-rollback-phase "Rollback phase") for more information.

### New features

- [yugabyted](/stable/reference/configuration/yugabyted/ "yugabyted")
  
  - Set preferred regions. The preferred region handles all read and write requests from clients. Use the [yugabyted configure data\_placement](/stable/reference/configuration/yugabyted/#data-placement "yugabyted configure data_placement") command to specify preferred regions for clusters.
  - Connection management integration. With connection management enabled, the **Nodes** page of yugabyted UI displays the split of physical and logical connections.
  - [Docker-based deployments](/stable/reference/configuration/yugabyted/#create-a-multi-region-cluster-in-docker "Docker-based deployments"). Improves the yugabyted Docker user experience for RF-3 deployments and docker container/host restarts.
  - Simplified [PITR configuration](/stable/reference/configuration/yugabyted/#restore "PITR configuration").
  - Perform all admin operations using a [pass through mechanism](/stable/reference/configuration/yugabyted/#admin-operation "pass through mechanism") to execute yb-admin commands.
- DocDB Availability
  
  - Speed up local bootstrap. Faster rolling upgrades and restarts by minimizing table bootstrap time.
  - Hardening Raft. Reduced time window for re-tryable requests by honoring write RPC timeouts.
- [Batched nested loop joins](/stable/architecture/query-layer/join-strategies/#batched-nested-loop-join-bnl "Batched nested loop joins"). A join execution strategy that is an improvement on Nested Loop joins that sends one request to the inner table per batch of outer table tuples instead of once per individual outer table tuple.
- [Tablet splitting on range-sharded tables](/stable/architecture/docdb-sharding/tablet-splitting/#range-sharded-tables "Tablet splitting on range-sharded tables"). Optimized the tablet split thresholds to speed up data ingestion.
- [Catalog Caching](/stable/reference/configuration/yb-tserver/#catalog-flags "Catalog Caching"). Reduce master requests during PostgreSQL system catalog refresh by populating YB-TServer catalog cache. [EA](/stable/releases/versioning/#feature-maturity)
- [Catalog Caching](/stable/reference/configuration/yb-tserver/#ysql-yb-toast-catcache-threshold "Catalog Caching"). Use TOAST compression to reduce PG catalog cache memory. Compressed catalog tuples when storing in the PG catalog cache to reduce the memory consumption. [EA](/stable/releases/versioning/#feature-maturity)
- [Index backfill](/stable/explore/ysql-language-features/indexes-constraints/index-backfill/ "Index backfill") stability improvements. Ensure timely notification to all nodes and PostgreSQL backends before initiating index backfill to prevent missing entries during index creation.
- Support for CDC with atomic DDL. In case of DDL being rolled back, CDC will not send records with rolled back schema.
- [Wait-On Conflict Concurrency Control](/stable/architecture/transactions/concurrency-control/#wait-on-conflict "Wait-On Conflict Concurrency Control"). Cross-tablet fairness in resuming "waiters". Resume waiters in a consistent order across tablets, when a set of transactions simultaneously wait on more than one intent/lock on various tablets.
- YSQL
  
  - [Cost-based optimizer](/stable/reference/configuration/yb-tserver/#yb-enable-base-scans-cost-model "Cost-based optimizer"). Added support for cost based optimizer for YSQL. [EA](/stable/releases/versioning/#feature-maturity)
  - [DDL concurrency](/stable/reference/configuration/yb-tserver/#ddl-concurrency-flags "DDL concurrency"). Support for isolating DDLs per database. Specifically, a DDL in one database does not cause catalog cache refreshes or aborts transactions due to breaking change in another database.
  - [DDL atomicity](/stable/reference/configuration/yb-tserver/#ddl-atomicity-flags "DDL atomicity"). Ensures that YSQL DDLs are fully atomic between YSQL and DocDB layers, that is in case of any errors, they are fully rolled back, and in case of success they are applied fully. Currently, such inconsistencies are rare but can happen.
  - [ALTER TABLE support](/stable/api/ysql/the-sql-language/statements/ddl_alter_table/#add-column-if-not-exists-column-name-data-type-constraint-constraints "ALTER TABLE support"). Adds support for the following variants of ALTER TABLE ADD COLUMN:
    
    - with a SERIAL data type
    - with a volatile DEFAULT
    - with a PRIMARY KEY
  - [Lower latency for large scans with size-based fetching](/stable/reference/configuration/yb-tserver/#ysql-yb-fetch-size-limit "Lower latency for large scans with size-based fetching"). A static size based fetch limit value to control how many rows can be returned in one request from DocDB. [EA](/stable/releases/versioning/#feature-maturity)
- [Tablet limits](/stable/architecture/docdb-sharding/tablet-splitting/#tablet-limits "Tablet limits"). Depending on the available nodes and resources such as memory and CPU, YugabyteDB can automatically limit the total number of tables that can be created to ensure that the system can be stable and performant.
- Truncate support with [PITR](/stable/manage/backup-restore/point-in-time-recovery/ "PITR"). The TRUNCATE command is now allowed for databases with PITR enabled.
- DocDB memory tracking enhancements. Memory tracking in DocDB to account for 90% of memory used.
- [Enhanced Explain Analyze output](/stable/launch-and-manage/monitor-and-alert/query-tuning/explain-analyze/ "Enhanced Explain Analyze output"). Explain Analyze when used with DIST option will also show the rows read from the storage layer, which can help diagnosing the query performance.
- Upgrade OpenSSL to 3.0.8 from 1.1.1. OpenSSL 1.1.1 is out of support. This feature upgrades YugabyteDB to FIPS compliant OpenSSL version 3.0.8.

### Change log

View the detailed changelog

### Improvements

#### YSQL

- Enhances logging for DDL transaction conflicts and PG catalog version mismatches by including the DDL command tag and specific log details outside of the `log_ysql_catalog_versions` flag. [#20084](https://github.com/yugabyte/yugabyte-db/issues/20084)
- Displays distinct prefix keys explicitly in the explain output, enhancing the clarity of indexing for users. [#20831](https://github.com/yugabyte/yugabyte-db/issues/20831)
- Adds auto flag `ysql_yb_enable_ddl_atomicity_infra` to control DDL atomicity feature during the upgrade phase. [#21535](https://github.com/yugabyte/yugabyte-db/issues/21535)
- Allows YbInitPinnedCacheIfNeeded to only load the shared pinned cache, enhancing concurrent handling of DDLs in various databases. [#21635](https://github.com/yugabyte/yugabyte-db/issues/21635)
- Now logs global-impact DDL statements that increment all database catalog versions. [#21826](https://github.com/yugabyte/yugabyte-db/issues/21826)
- Adds a new YSQL view for YCQL statement metrics, allowing it to be joined with YCQL wait events in the `yb_active_universe_history` table. [#20616](https://github.com/yugabyte/yugabyte-db/issues/20616)
- Reduces per-backend memory consumption by reinstating TOAST compression for catalogue tables. [#21040](https://github.com/yugabyte/yugabyte-db/issues/21040)
- Avoids schema version mismatch errors during ALTER TABLE operations in cases where DDL atomicity is enabled. [#21787](https://github.com/yugabyte/yugabyte-db/issues/21787)
- Resolves schema version mismatch errors that occur after an ALTER TABLE operation due to DDL transaction verification in non-debug builds. [#21787](https://github.com/yugabyte/yugabyte-db/issues/21787)
- Introduces a new YSQL configuration parameter `yb_enable_parallel_append` to disable the unannounced feature `parallel append`. [#21934](https://github.com/yugabyte/yugabyte-db/issues/21934)
- Adds new columns to localhost:13000/statements for more comprehensive database management, including user and database IDs along with varied block level statistics. [#21735](https://github.com/yugabyte/yugabyte-db/issues/21735)
- Enables DDL atomicity feature by default by altering `ysql_yb_ddl_rollback_enabled`, `report_ysql_ddl_txn_status_to_master`, and `ysql_ddl_transaction_wait_for_ddl_verification` flags' defaults. [#22097](https://github.com/yugabyte/yugabyte-db/issues/22097)

#### YCQL

- Now throws an error when using the unsupported GROUP BY clause in YCQL with autoflag `ycql_suppress_group_by_error` available for compatibility issues. [#13956](https://github.com/yugabyte/yugabyte-db/issues/13956)

#### DocDB

- Introduces a new flag to toggle on or off recommended memory defaults for increased control over individual memory settings. [#22161](https://github.com/yugabyte/yugabyte-db/issues/22161)
- Boosts error messaging clarity when preview flags are not set in `allowed_preview_flags_csv`. [#21484](https://github.com/yugabyte/yugabyte-db/issues/21484)
- Shifts xCluster-related functions from `Catalocustomeranager` to `XClusterSourceManager` for easier management. [#21325](https://github.com/yugabyte/yugabyte-db/issues/21325)
- Adjusts TServer memory percentage from 50% to 48% for (4,8]GiB boxes and sets new recommendations for boxes over 16 GiB. [#20664](https://github.com/yugabyte/yugabyte-db/issues/20664)
- Returns the original error messages from CreateTable and CreateTablegroup instead of an incorrect "Database not found" message. [#21760](https://github.com/yugabyte/yugabyte-db/issues/21760)
- Updates `AreNodesSafeToTakeDown` to return earlier and deliver a readable error message when hitting a timeout, using a control flag, `are_nodes_safe_to_take_down_timeout_buffer_ms` with a default setting of 2 seconds. [#21855](https://github.com/yugabyte/yugabyte-db/issues/21855)
- Allows for faster failover in xCluster DR by skipping the cleanup process when `skip_producer_stream_deletion` is set on `DeleteUniverseReplicationRequestPB`. Safe for upgrades and rollbacks. [#22050](https://github.com/yugabyte/yugabyte-db/issues/22050)
- Adds a flag `FLAGS_tablet_split_min_size_ratio` to control tablet splitting based on SST file sizes, ensuring better control over tablet size imbalance. [#21458](https://github.com/yugabyte/yugabyte-db/issues/21458)

#### CDC

- Preserves CDC stream even when all associated tables are dropped, tying its lifecycle to the database. [#21419](https://github.com/yugabyte/yugabyte-db/issues/21419)
- Allows modification of the publication refresh interval using the `cdcsdk_publication_list_refresh_interval_secs` flag. [#21796](https://github.com/yugabyte/yugabyte-db/issues/21796)
- Introduces replica identity in CDC to populate before image records, allowing table-level before image information fetching and retaining in stream metadata. [#21314](https://github.com/yugabyte/yugabyte-db/issues/21314)
- Eliminates unnecessary NOTICE messages when setting yb\_read\_time from walsender, reducing message clutter. [#22379](https://github.com/yugabyte/yugabyte-db/issues/22379)
- Enables transaction state to be cleared promptly after a table is deleted, preventing table deletion from getting stuck and resulting in faster functionality. [#22095](https://github.com/yugabyte/yugabyte-db/issues/22095)

#### yugabyted

- Directly enables `yb_enable_read_committed_isolation` and `ysql_enable_read_request_caching` on yb-master and yb-tserver processes. [#22061](https://github.com/yugabyte/yugabyte-db/issues/22061)
- Simplifies yugabyted by dropping Python2 support and transitioning the script to use Python3, replacing deprecated distutils package with shutil. [#22072](https://github.com/yugabyte/yugabyte-db/issues/22072), [#21409](https://github.com/yugabyte/yugabyte-db/issues/21409)

### Bug fixes

#### YSQL

- Avoids failure when upgrading from version 2.14/2.16 to 2.20 by introducing a check to ensure pggate can handle RPC metrics sidecar before sending Scanned Rows count. [#21229](https://github.com/yugabyte/yugabyte-db/issues/21229)
- Safeguards against an out-of-bounds memory write error in HashAggregate plan node with duplicate columns by rectifying array size allocation. Imported tests ensure the fix's robustness. [#21122](https://github.com/yugabyte/yugabyte-db/issues/21122)
- Disables bitmap scan by default to prevent unwarranted selection due to lower CBO costs. [#21479](https://github.com/yugabyte/yugabyte-db/issues/21479)
- Allows YSQL DDL operations to wait for rollback/roll-forward operations to finish before proceeding. [#20033](https://github.com/yugabyte/yugabyte-db/issues/20033)
- Reduces unnecessary log messages when `catalog_version_table_in_perdb_mode` is set to true. [#21481](https://github.com/yugabyte/yugabyte-db/issues/21481)
- Corrects an issue where certain unbatchable filters weren't detected during indexpath formation when indexpath accepted batched values from multiple relations. Requires backports to 2.20 and 2.18. [#21292](https://github.com/yugabyte/yugabyte-db/issues/21292)
- Adds network latency cost to startup cost, yielding more accurate cost calculations in small tables. [#20898](https://github.com/yugabyte/yugabyte-db/issues/20898)
- Allows more accurate modeling of base scan costs by taking into account the impact of storage index filters on secondary index. [#20635](https://github.com/yugabyte/yugabyte-db/issues/20635)
- Renames the YSQL configuration parameter `ddl_rollback_enabled` to `yb_ddl_rollback_enabled` for specificity. [#21480](https://github.com/yugabyte/yugabyte-db/issues/21480)
- Resolves colocation option issues in table creation linked to table rewriting and partitioning. Enhances the `defGetBoolean` function to parse string values "0" and "1" as false and true respectively, and shifts a verification step to a earlier spot in the CREATE TABLE execution path, ensuring successful table partition creation. [#20302](https://github.com/yugabyte/yugabyte-db/issues/20302), [#20914](https://github.com/yugabyte/yugabyte-db/issues/20914)
- Exposes the YSQL configuration parameter `yb_enable_optimizer_statistics` as a flag `ysql_yb_enable_optimizer_statistics`. [#21650](https://github.com/yugabyte/yugabyte-db/issues/21650)
- Corrects checks in YbIsScanCompatible to ensure the right-hand side (RHS) of all bound index conditions, not just inequalities, fits into the left-hand side (LHS) datatype. [#21758](https://github.com/yugabyte/yugabyte-db/issues/21758)
- The deadlock issue occurring when both a table and its index are deleted concurrently in yb-master has been resolved. [#21663](https://github.com/yugabyte/yugabyte-db/issues/21663)
- Fixes a bug that caused incorrect setting of global catalog version mode on TServer start. [#21850](https://github.com/yugabyte/yugabyte-db/issues/21850)
- Deprecates the unused `enable_pg_savepoints` flag to prevent irregular system behaviour. [#20918](https://github.com/yugabyte/yugabyte-db/issues/20918)
- Refines the `YbGetOrdinaryColumnsNeedingPgRecheck` condition to align with the `ybIsTupMismatch` implementation, ensuring Postgres rechecks index conditions when the "preliminary check" is skipped due to an invalid target key attnum. [#21451](https://github.com/yugabyte/yugabyte-db/issues/21451)
- Reduces the frequency of `schema version mismatch` errors during consecutive DDL operations by ensuring the up-to-date schema is fetched. [#21706](https://github.com/yugabyte/yugabyte-db/issues/21706)
- Allows usage of `YsqlDdlRollbackEnabled` in pggate C++ code by correctly passing the result of `YbDdlRollbackEnabled`, reducing DDL atomicity g-flag issues in RF 1 clusters. [#21706](https://github.com/yugabyte/yugabyte-db/issues/21706)
- Ensures pushed down `RowCompareExpressions` correctly enforce non-null column references, rectifying previous behavior and enhancing data accuracy. [#21847](https://github.com/yugabyte/yugabyte-db/issues/21847)
- The postgres process no longer crashes when running a "show all" command due to correct placement of the `yb_enable_ddl_atomicity_infra` description. [#21947](https://github.com/yugabyte/yugabyte-db/issues/21947)
- Adds a new flag `ysql_min_new_version_ignored_count` to prevent a TServer crash caused by the downward shift in yb-master's catalog version, often surfacing post a PITR restore operation. [#21776](https://github.com/yugabyte/yugabyte-db/issues/21776)
- Adjusts the value of `YB_AT_REWRITE_ALTER_PRIMARY_KEY` to prevent flag clashes and accommodate future upstream PG flags. [#22086](https://github.com/yugabyte/yugabyte-db/issues/22086)
- Fills in the "relation" column in `pg_locks` with the correct table OID after a table rewrite. [#22081](https://github.com/yugabyte/yugabyte-db/issues/22081)
- Prevents query layer retries for multi-statement queries to avoid redoing whole queries, ensuring idempotence. [#21361](https://github.com/yugabyte/yugabyte-db/issues/21361)
- Prevents unnecessary CPU cycles and log flooding by not reading `pg_yb_catalog_version` when `enable_ysql=false`. [#22213](https://github.com/yugabyte/yugabyte-db/issues/22213)
- Corrects the log message for successful column drop operations, ensuring accurate representation of DDL operations. [#22243](https://github.com/yugabyte/yugabyte-db/issues/22243)

#### YCQL

- Allows the deletion of the Cassandra role in ycqlsh without it regenerating upon cluster restart, by adding a flag to mark if the role was previously created. [#21057](https://github.com/yugabyte/yugabyte-db/issues/21057)

#### DocDB

- Ensures `Create Table` operation fails if `Alter Replication` encounters an error, enhancing the reliability of replication setup. [#21732](https://github.com/yugabyte/yugabyte-db/issues/21732)
- Converted the `ysql_skip_row_lock_for_update` to an auto-flag to resolve compatibility issues during upgrade, preventing incorrect DB record creations that can affect row visibility and integrity. [#22057](https://github.com/yugabyte/yugabyte-db/issues/22057)
- Modifies memory consumption calculations for pending operations to ensure accurate rejection of new writes at bootstrap, preventing loading failures. [#21254](https://github.com/yugabyte/yugabyte-db/issues/21254)
- Trims large error messages in AsyncRpc::Failed to prevent hitting memory limit and resulting unavailability. [#21402](https://github.com/yugabyte/yugabyte-db/issues/21402)
- Renames and updates the description of the flag `min_secustomerent_size_to_rollover_at_flush` for clarity. [#21691](https://github.com/yugabyte/yugabyte-db/issues/21691)
- Changes the class of `enable_automatic_tablet_splitting` flag from `kLocalPersisted` (class 2) to `kExternal` (class 4) to eliminate setup issues with xCluster configurations. [#22088](https://github.com/yugabyte/yugabyte-db/issues/22088)
- Fixes a segmentation fault in yb-master by checking for a null pointer before dereferencing it, addressing an issue in the CDC run on `2.23.0.0-b37-arm`. [#21648](https://github.com/yugabyte/yugabyte-db/issues/21648)
- Allows DML operations on non-replicated databases and blocks DML only on databases in transactional xCluster replication STANDBY mode. Now only databases part of an inbound transactional xCluster replication group in the xCluster safe time map will have DML operations blocked. Also, certain attributes are moved from TServer to `TserverXClusterContext`. [#21245](https://github.com/yugabyte/yugabyte-db/issues/21245)
- Adds a TSAN suppression to manage the apparent race condition in the function `boost::regex_match`. [#21585](https://github.com/yugabyte/yugabyte-db/issues/21585)
- Eliminates potential FATAL errors during reported tabletPB creation by ensuring retrieval of schema version is atomic. [#21340](https://github.com/yugabyte/yugabyte-db/issues/21340)
- Enables the session to outlive the callback by holding a shared pointer to it, preventing potential crashes during concurrent DML queries. [#21103](https://github.com/yugabyte/yugabyte-db/issues/21103)
- Prevents yb-master crash by ensuring background task isn't deleted before the callback is invoked. [#21773](https://github.com/yugabyte/yugabyte-db/issues/21773)
- Enables callback completion wait in `PollTransactionStatusBase` during shutdown to prevent unexpected process termination. [#21773](https://github.com/yugabyte/yugabyte-db/issues/21773)
- Allows viewing of the RPC bind addresses in the master leader UI, especially beneficial in cases like k8s where the RPC bind address with the pod DNS is more useful than the broadcast address. [#21959](https://github.com/yugabyte/yugabyte-db/issues/21959)
- Reduces unnecessary logging during checkpoint operations by lowering INFO level logs to DEBUG\_LEVEL, enhancing log readability. [#21658](https://github.com/yugabyte/yugabyte-db/issues/21658)
- Prevents fatal errors by skipping ReserveMarker/AsyncAppend if the tablet peer has already been shut down. [#21769](https://github.com/yugabyte/yugabyte-db/issues/21769)
- Enhances YSQL operation by refining task shutdown procedures and avoiding unnecessary task aborts. [#21917](https://github.com/yugabyte/yugabyte-db/issues/21917)
- Enhances load balancer efficiency by refining validation logic to block tablet replica additions only for those with a pending delete in progress on the same server, avoiding potential slowdowns during mass tablet replica moves. [#21806](https://github.com/yugabyte/yugabyte-db/issues/21806)
- Avoids multiple destruction of the same database connection, preventing system crashes due to simultaneous connection failures. [#21738](https://github.com/yugabyte/yugabyte-db/issues/21738)
- Stops fatal errors caused by the re-use of remote log anchor session during remote bootstrap from a non-leader peer. This fix ensures shared pointers are accurately tracked for `tablet_peer` objects using the `=` operator, preventing unintentional destruction of underlying objects. [#22007](https://github.com/yugabyte/yugabyte-db/issues/22007)
- Corrects a bug causing some tablet metrics to display incorrect metric\_type attribute. [#21608](https://github.com/yugabyte/yugabyte-db/issues/21608)
- Enables the `skip_table_tombstone_check` for colocated tables to prevent errors. [#22115](https://github.com/yugabyte/yugabyte-db/issues/22115)
- Initializes `prev_op` to `UNKNOWN` to prevent AlmaLinux 8 fastdebug gcc11 compilation failures. [#21811](https://github.com/yugabyte/yugabyte-db/issues/21811)
- Delays `min_running_ht` initialization until after the successful completion of tablet bootstrap to prevent unexpected behaviors. [#22099](https://github.com/yugabyte/yugabyte-db/issues/22099)
- Resolves the issue of `pg_locks` query failure due to missing host node UUID in distributed transactions. [#22181](https://github.com/yugabyte/yugabyte-db/issues/22181)
- Eliminates latency spikes in conflicting workloads by preventing redundant `ProbeTransactionDeadlock` RPCs. [#22426](https://github.com/yugabyte/yugabyte-db/issues/22426)

#### CDC

- Ensures deletion of MemoryContext after each GetChanges RPC to prevent memory leaks. [#22328](https://github.com/yugabyte/yugabyte-db/issues/22328)
- Fixes a memory leakage issue in the walsender process by deep freeing the cached record batch after streaming to the client. [#21530](https://github.com/yugabyte/yugabyte-db/issues/21530)
- Adds more debug logs in the walsender to aid in investigating issues like linked data loss. [#21465](https://github.com/yugabyte/yugabyte-db/issues/21465)
- Adds more debug logs for stress run debugging, skips `RollbackToSubTransaction` RPC to local TServer if not needed, and enhances debugging of the ListReplicationSlots function. [#21780](https://github.com/yugabyte/yugabyte-db/issues/21780), [#21519](https://github.com/yugabyte/yugabyte-db/issues/21519), [#21652](https://github.com/yugabyte/yugabyte-db/issues/21652)
- Removes table level attributes from CDCSDK metrics to avoid TServer crash due to failed DCHECK assertion. [#22142](https://github.com/yugabyte/yugabyte-db/issues/22142)
- Fixes the segmentation fault in walsender for dynamic table addition by refreshing stored replica identities and preventing a race condition when creating dynamic tables. [#22273](https://github.com/yugabyte/yugabyte-db/issues/22273)
- Solves an issue where CDCSDK incorrectly deduces tablets as not interesting for stream before reaching the configured time limit. [#22383](https://github.com/yugabyte/yugabyte-db/issues/22383)
- Enables support for streaming update operations via walsender, enhancing PG compatible logical replication support. Now executes schema changes in the logical replication protocol and maintains a record of changes in each table's read\_time\_ht hybrid time in the PG catalog. Includes handling late ALTER TABLE responses and addressing incomplete cleanup in the case of a stream creation failure. This feature is disabled under test flag `ysql_TEST_enable_replication_slot_consumption`. [#20725](https://github.com/yugabyte/yugabyte-db/issues/20725)
- Prevents failures in decoding change events by refreshing `cached_schema_details` when executing a new `GetChanges` request if the client indicates a necessity for the schema. [#20698](https://github.com/yugabyte/yugabyte-db/issues/20698)

#### yugabyted

- Prevents SyntaxWarning and exceptions when incorrect advertise\_address is given by adjusting string literals and adding check for errors. [#22552](https://github.com/yugabyte/yugabyte-db/issues/22552), [#22210](https://github.com/yugabyte/yugabyte-db/issues/22210), [#22230](https://github.com/yugabyte/yugabyte-db/issues/22230)

#### Other

- Fixes hidden split parent tablets wrongly appearing as leaderless in the master's leaderless tablet endpoint, ensuring accurate load balance status and preventing potential issues with Point-in-Time Recovery (PITR) operations. [#21371](https://github.com/yugabyte/yugabyte-db/issues/21371)
