• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

fluent / fluent-plugin-opensearch / 35312404973
93%

Build:
DEFAULT BRANCH: main
Ran 18 Sep 2026 05:56AM UTC
Jobs 1
Files 13
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

18 Sep 2026 05:50AM UTC coverage: 92.874% (+0.03%) from 92.846%
35312404973

push

github

web-flow
out_opensearch: lock the client cache against flush threads (#195)

* out_opensearch: lock the client cache against flush threads

Before: client() cleared the shared @_os slot and then rebuilt it with
`||=`, without a lock. With flush_thread_count of 2 or more and a host
placeholder, a thread could pass the "is this the same host" check and
then pick up the client another thread had just built for a different
host, so its chunk went to that cluster instead.

After: the whole check-and-build runs under a mutex, so a thread always
gets a client for the host it asked for. The mutex is created in
initialize because configure builds a client before it returns.

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Kentaro Hayashi <hayashi@clear-code.com>

* out_opensearch: guard the cached client with one mutex

Before:
the credential refresh timer used its own mutex and the flush
thread error path used none, so both could clear @_os while another
thread was building a client under @client_mutex. A failed credential
refresh also threw away the cached client for nothing.

After:
both paths take @client_mutex, and the timer keeps the old
credentials when it cannot get new ones.

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Kentaro Hayashi <hayashi@clear-code.com>

---------

Signed-off-by: Kentaro Hayashi <hayashi@clear-code.com>
Co-authored-by: Claude <noreply@anthropic.com>

12 of 12 new or added lines in 1 file covered. (100.0%)

1199 of 1291 relevant lines covered (92.87%)

314.97 hits per line

Jobs
ID Job ID Ran Files Coverage
1 35312404973.1 18 Sep 2026 05:56AM UTC 26
92.87
GitHub Action Run
Source Files on build 35312404973
  • Tree
  • List 13
  • Changed 13
  • Source Changed 1
  • Coverage Changed 13
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #35312404973
  • c9387e8b on github
  • Prev Build on main (#34573217247)
  • Next Build on main (#35323830701)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc