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

logstash shutdown does not release leases on blobs #79

Open
pawel-szon opened this issue Oct 21, 2022 · 0 comments
Open

logstash shutdown does not release leases on blobs #79

pawel-szon opened this issue Oct 21, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@pawel-szon
Copy link

pawel-szon commented Oct 21, 2022

Logstash information:

  1. Logstash version: logstash 8.1.0
  2. Logstash installation source: expanded from logstash-8.1.0-linux-x86_64.tar.gz
  3. How is Logstash being run: Via command line
  4. How was the Logstash Plugin installed: came as part of logstash archive, then was updated to 1.4.4 using bin/logstash-plugin update logstash-input-azure_event_hubs

JVM: openjdk version "11.0.13" (bundled with logstash)

OS version:
Linux grafana-vm 5.4.17-2102.206.1.el8uek.x86_64 #2 SMP Wed Oct 6 16:24:16 PDT 2021 x86_64 x86_64 x86_64 GNU/Linux

Description of the problem including expected versus actual behavior:
When restarting logstash process (kill -TERM or ctrl+c and running it again) leases created on blobs holding information about position for each partition are sometimes not released and OWNINGHOST metadata remains to hold old event processor ID. Because of existing lease locks, Logstash is unable to read some partitions and therefore is not processing new events.
Expected behaviour would be to release all locks for all partition offset blobs on logstash shutdown.

Steps to reproduce:

  1. Configure Azure Event Hub to have at least 2 partitions.
  2. Configure logstash azure_event_hub input to read events from the Event Hub and use storage container for storing offset data.
  3. Run logstash and make sure the events are processed correctly.
  4. Stop logstash and check if all leases on offset blobs have been released (in our case it released offset file for only one partition).
  5. Start logstash and notice that events from partition for which the lease has not been released are not being processed.

Logs attached.
restart.log

@pawel-szon pawel-szon added the bug Something isn't working label Oct 21, 2022
@pawel-szon pawel-szon changed the title logstash shutdown does not remove leases on blobs logstash shutdown does not release leases on blobs Oct 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant