Merge pull request #6070 from influxdata/feat-oss-2.7.12-release

feat(oss2): Release notes for OSS 2.7.12
pbarnett/update-trigger-spec
Jason Stirnaman 2025-05-20 17:51:32 -05:00 committed by GitHub
commit 57f600c86f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 111 additions and 32 deletions

View File

@ -2744,6 +2744,61 @@ storage-validate-keys = true
--- ---
### storage-wal-flush-on-shutdown
Flush the WAL on shutdown.
**Default:** `false`
| influxd flag | Environment variable | Configuration key |
| :------------------------------ | :------------------------------------ | :---------------------------- |
| `--storage-wal-flush-on-shutdown` | `INFLUXD_STORAGE_WAL_FLUSH_ON_SHUTDOWN` | `storage-wal-flush-on-shutdown` |
If set, `influxd` flushes or snapshots all WALs prior to completing shutdown--`influxd` performs cache snapshots on shutdown, which
results in the WAL files being written to TSM files and then deleted.
This is useful in upgrade and downgrade scenarios to prevent WAL format
compatibility issues.
###### influxd flag
<!--pytest.mark.skip-->
```sh
influxd --storage-wal-flush-on-shutdown
```
###### Environment variable
```sh
export INFLUXD_STORAGE_WAL_FLUSH_ON_SHUTDOWN=true
```
###### Configuration file
{{< code-tabs-wrapper >}}
{{% code-tabs %}}
[YAML](#)
[TOML](#)
[JSON](#)
{{% /code-tabs %}}
{{% code-tab-content %}}
```yml
storage-wal-flush-on-shutdown: true
```
{{% /code-tab-content %}}
{{% code-tab-content %}}
```toml
storage-wal-flush-on-shutdown = true
```
{{% /code-tab-content %}}
{{% code-tab-content %}}
```json
{
"storage-wal-flush-on-shutdown": true
}
```
{{% /code-tab-content %}}
{{< /code-tabs-wrapper >}}
---
### storage-wal-fsync-delay ### storage-wal-fsync-delay
Duration a write will wait before fsyncing. Duration a write will wait before fsyncing.
A duration greater than `0` batches multiple fsync calls. A duration greater than `0` batches multiple fsync calls.

View File

@ -8,6 +8,27 @@ menu:
weight: 101 weight: 101
--- ---
## v2.7.12 {date="2025-05-20"}
### Features
- Add a `--pid-file` option to write a PID file to the specified location on startup. InfluxDB removes the PID file on shutdown.
- Add a `--storage-wal-flush-on-shutdown` option to flush the WAL on database shutdown to ensure all data is written to disk.
- Improve response error messages for dropped points, adding details including database, retention policy, and which bound was violated for partial writes.
### Bug Fixes
- Fix a locking issue in `TagValueIterator` that could cause reads and writes in buckets to block. [PR #26414](https://github.com/influxdata/influxdb/pull/26414)
### Maintenance
- Improved startup logging with an "are we there yet" counter for the number and percentage of shards opened.
- Update Go to 1.23.9.
- Update Flux to v0.196.1.
- Refresh dependencies to address security vulnerabilities and improve stability.
---
## v2.7.11 {date="2024-12-02"} ## v2.7.11 {date="2024-12-02"}
### Features ### Features
@ -606,7 +627,7 @@ to migrate InfluxDB key-value metadata schemas to earlier 2.x versions when nece
#### Flux #### Flux
- Update to [Flux v0.139.0](/flux/v0/release-notes/#v01390). - Update to [Flux v0.139.0](/flux/v0/release-notes/#v01390).
- Enable writing to remote hosts using the Flux [`to()`](/flux/v0/stdlib/influxdata/influxdb/to/) and [`experimental.to()`](/flux/v0/v0.x/stdlib/experimental/to/) functions. - Enable writing to remote hosts using the Flux [`to()`](/flux/v0/stdlib/influxdata/influxdb/to/) and [`experimental.to()`](/flux/v0/stdlib/experimental/to/) functions.
- Flux now supports locations that dynamically modify time offsets based on your specified timezone. You can also specify fixed time offsets relative to UTC. - Flux now supports locations that dynamically modify time offsets based on your specified timezone. You can also specify fixed time offsets relative to UTC.
- Perform [bitwise operations](/flux/v0/stdlib/experimental/bitwise/) - Perform [bitwise operations](/flux/v0/stdlib/experimental/bitwise/)
on integers and unsigned integers. on integers and unsigned integers.
@ -1118,7 +1139,7 @@ Highlights include:
- Support for **upgrading to InfluxDB 2.0**: - Support for **upgrading to InfluxDB 2.0**:
- To upgrade **from InfluxDB 1.x**, see [Upgrade from InfluxDB 1.x to InfluxDB 2.0](/influxdb/v2/upgrade/v1-to-v2). - To upgrade **from InfluxDB 1.x**, see [Upgrade from InfluxDB 1.x to InfluxDB 2.0](/influxdb/v2/upgrade/v1-to-v2).
- To upgrade **from InfluxDB 2.0 beta 16 or earlier**, see [Upgrade from InfluxDB 2.0 beta to InfluxDB 2.0](/influxdb/v2/upgrade/v2-beta-to-v2). - To upgrade **from InfluxDB 2.0 beta 16 or earlier**, see [Upgrade from InfluxDB 2.0 beta to InfluxDB 2.0](/influxdb/v2/install/upgrade/v2-beta-to-v2/).
- **Flux**, our powerful new functional data scripting language designed for querying, analyzing, and acting on data. This release includes [Flux v0.94.0](/flux/v0/release-notes/#v0940). If you're new to Flux, [check out how to get started with Flux](/influxdb/v2/query-data/get-started/). Next, delve deeper into the [Flux standard library](/flux/v0/stdlib//) reference docs and see how to [query with Flux](/influxdb/v2/query-data/flux/). - **Flux**, our powerful new functional data scripting language designed for querying, analyzing, and acting on data. This release includes [Flux v0.94.0](/flux/v0/release-notes/#v0940). If you're new to Flux, [check out how to get started with Flux](/influxdb/v2/query-data/get-started/). Next, delve deeper into the [Flux standard library](/flux/v0/stdlib//) reference docs and see how to [query with Flux](/influxdb/v2/query-data/flux/).
- Support for [InfluxDB 1.x API compatibility](/influxdb/v2/reference/api/influxdb-1x/). - Support for [InfluxDB 1.x API compatibility](/influxdb/v2/reference/api/influxdb-1x/).
- **Templates** and **stacks**. Discover how to [use community templates](/influxdb/v2/tools/influxdb-templates/use/) and how to [manage templates with stacks](/influxdb/v2/tools/influxdb-templates/stacks/). - **Templates** and **stacks**. Discover how to [use community templates](/influxdb/v2/tools/influxdb-templates/use/) and how to [manage templates with stacks](/influxdb/v2/tools/influxdb-templates/stacks/).
@ -1241,14 +1262,14 @@ If you're new to InfluxDB 2.0, we recommend checking out [how to get started](/i
{{% warn %}} {{% warn %}}
#### Manual upgrade required #### Manual upgrade required
To simplify the migration for existing users of InfluxDB 1.x, this release includes significant breaking changes that require a manual upgrade from all alpha and beta versions. For more information, see [Upgrade to InfluxDB OSS 2.0rc](/influxdb/v2/upgrade/v2-beta-to-v2/), To simplify the migration for existing users of InfluxDB 1.x, this release includes significant breaking changes that require a manual upgrade from all alpha and beta versions. For more information, see [Upgrade to InfluxDB OSS 2.0rc](/influxdb/v2/install/upgrade/v2-beta-to-v2/),
{{% /warn %}} {{% /warn %}}
### Breaking changes ### Breaking changes
#### Manual upgrade #### Manual upgrade
- To continue using data from InfluxDB 2.0 beta 16 or earlier, you must move all existing data out of the `~/.influxdbv2` (or equivalent) path, including `influxd.bolt`. All existing dashboards, tasks, integrations, alerts, users, and tokens must be recreated. For information on how to migrate your data, see [Upgrade to InfluxDB OSS 2.0rc](/influxdb/v2/upgrade/v2-beta-to-v2/). - To continue using data from InfluxDB 2.0 beta 16 or earlier, you must move all existing data out of the `~/.influxdbv2` (or equivalent) path, including `influxd.bolt`. All existing dashboards, tasks, integrations, alerts, users, and tokens must be recreated. For information on how to migrate your data, see [Upgrade to InfluxDB OSS 2.0rc](/influxdb/v2/install/upgrade/v2-beta-to-v2/).
#### Port update to 8086 #### Port update to 8086
@ -2045,7 +2066,7 @@ _**This will remove all data from your InfluxDB v2.0 instance including time ser
###### Linux and macOS ###### Linux and macOS
```sh ```sh
rm ~/.influxdbv2/influxd.bolt rm -f ~/.influxdbv2/influxd.bolt
``` ```
Once completed, `v2.0.0-alpha.6` can be started. Once completed, `v2.0.0-alpha.6` can be started.
@ -2079,7 +2100,7 @@ run the following command.
###### Linux and macOS ###### Linux and macOS
```sh ```sh
rm -r ~/.influxdbv2/engine rm -rf ~/.influxdbv2/engine
``` ```
Once completed, InfluxDB v2.0.0-alpha.5 can be started. Once completed, InfluxDB v2.0.0-alpha.5 can be started.

View File

@ -161,6 +161,9 @@
- flag: "--storage-validate-keys" - flag: "--storage-validate-keys"
added: 2.0 added: 2.0
- flag: "--storage-wal-flush-on-shutdown"
added: 2.7
- flag: "--storage-wal-fsync-delay" - flag: "--storage-wal-fsync-delay"
added: 2.0 added: 2.0

View File

@ -85,7 +85,7 @@ influxdb:
- v1 - v1
latest: v2.7 latest: v2.7
latest_patches: latest_patches:
v2: 2.7.11 v2: 2.7.12
v1: 1.11.8 v1: 1.11.8
latest_cli: latest_cli:
v2: 2.7.5 v2: 2.7.5