8000 logger/fluentd: remove deprecated fluentd-async-connect option by akerouanton · Pull Request #46114 · moby/moby · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

logger/fluentd: remove deprecated fluentd-async-connect option #46114

Merged
merged 1 commit into from
Jan 13, 2025

Conversation

akerouanton
Copy link
Member
@akerouanton akerouanton commented Jul 29, 2023

Related:

- What I did

This option was marked as deprecated in cc1f3c7 (released in v20.10). The option fluentd-async, introduced in the same commit, should be used instead.

There's no target for removal defined in our docs (cf. https://docs.docker.com/engine/deprecated/#fluentd-async-connect-log-opt), but let's see what other maintainers think about dropping it in v25.0 or v26.0.

- Description for the changelog

- The Fluent logger option `fluentd-async-connect` has been deprecated in v20.10 and is now removed.

Copy link
Member
@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Left a comment 🙈

There's no target for removal defined in our docs (cf. https://docs.docker.com/engine/deprecated/#fluentd-async-connect-log-opt), but let's see what other maintainers think about dropping it in v25.0 or v26.0.

Can you open a PR on the CLI repository to add a target removal date? https://github.com/docker/cli/blob/master/docs/deprecated.md

We should also check if there's anything in https://github.com/docker/docs mentioning the old option (and if so, remove)

@@ -52,7 +52,6 @@ const (

addressKey = "fluentd-address"
asyncKey = "fluentd-async"
asyncConnectKey = "fluentd-async-connect" // deprecated option (use fluent-async instead)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We probably need a migration step for this on container restore. If we remove this option here, I think existing containers that have the option set will fail to start when starting the daemon after updating.

So in the "restore" part of the daemon (where we restore containers from their config on-disk), we need to patch existing containers and remove the fluentd-async-connect, and set the fluentd-async option instead (then save the container config).

We had a similar case for the log entries driver (but also needs to be fixed before we can merge that one);

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

This option was marked as deprecated in cc1f3c7 (released in v20.10).
The option `fluentd-async`, introduced in the same commit, should be
used instead.

Signed-off-by: Albin Kerouanton <albinker@gmail.com>
Copy link
Member
@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@thaJeztah thaJeztah merged commit b59e5cd into moby:master Jan 13, 2025
143 checks passed
@akerouanton akerouanton deleted the remove-fluentd-async-connect branch January 13, 2025 19:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0