-
Notifications
You must be signed in to change notification settings - Fork 151
new concurrency model :single #96
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
Conversation
@@ -175,6 +177,7 @@ def write_on_bucket(file) | |||
# prepare for write the file | |||
object = bucket.objects[remote_filename] | |||
object.write(fileIO, | |||
:upload_id => remote_filename, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AWS, changed the write a bit on a patch level.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should there be a change in the gemspec to account for this?
I've let the plugin for a few time and there is threadsafe issue in the current code that prevent it to use The rewrite I did is threadsafe and uses the |
@@ -79,6 +79,8 @@ class LogStash::Outputs::S3 < LogStash::Outputs::Base | |||
config_name "s3" | |||
default :codec, 'line' | |||
|
|||
concurrency :single |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
humm the PR name is "new concurrency model :shared" and the description says the plugin threadsafe, however this sets the model to :single
? this means that 1 instance is shared among all threads and access to it is globally synchronized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yewps, this plugin is in fact in this current state non threadsafe, I've made the plugin run for a few hours to discover that problem.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will update the description
LGTM |
This plugin in the current state is not thread safe and we should rely to the :single delegator.