Skip to content

out_mongo: fix NoMethodError during gracefulReload#205

Merged
kenhys merged 1 commit intofluent:masterfrom
Watson1978:out_mongo
Apr 23, 2026
Merged

out_mongo: fix NoMethodError during gracefulReload#205
kenhys merged 1 commit intofluent:masterfrom
Watson1978:out_mongo

Conversation

@Watson1978
Copy link
Copy Markdown
Contributor

When fluentd triggers gracefulReload via RPC, or if the plugin fails during startup (e.g., NoServerAvailable),
the shutdown method can be called while @client is still nil and causes a NoMethodError

This PR will fix the NoMethodError.

Fixes #179

Signed-off-by: Shizuo Fujita <fujita@clear-code.com>
@Watson1978 Watson1978 requested a review from kenhys April 22, 2026 02:40
Copy link
Copy Markdown
Contributor

@kenhys kenhys left a comment

Choose a reason for hiding this comment

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

LGTM

@kenhys kenhys merged commit 6877211 into fluent:master Apr 23, 2026
26 checks passed
@Watson1978 Watson1978 deleted the out_mongo branch April 23, 2026 02:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RPC gracefulReload fails for mongo_replset plugin

2 participants