-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Add size key to option in forward protocol #1137
Add size key to option in forward protocol #1137
Conversation
4273fec
to
3867b88
Compare
@@ -379,12 +443,18 @@ def create_target_input_driver(do_respond=false, disconnect=false, conf=TARGET_C | |||
DummyEngineDriver.new(Fluent::ForwardInput) { | |||
handler_class = Class.new(Fluent::ForwardInput::Handler) { |klass| | |||
attr_reader :chunk_counter # for checking if received data is successfully deserialized | |||
attr_reader :storage |
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 found that this name (only for tests) is a bit misleading, because plugins in v0.14 may have "storage plugin" instances.
Could you rename this? Any names are ok... (e.g., data
, received
, content_options
...)
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.
changed received_options
8b3f97a#diff-b12bf2d976d381a19fba652823a95a39R446
Sending array's length with msgpack is always 3, so remove FORWARD_HEADER_EXT
* pass `size` to initilizer of MessagePackEventStream if `size` exists in `option` at in_forward * remove unnecessary condtion
3867b88
to
f43c084
Compare
f43c084
to
fb5f42e
Compare
LGTM. |
I went back to code, and found some points to be fixed. Sorry for late pointing. |
With this change, there are no reason to use |
* `@extend_internal_protocol` is same as `@require_ack_response`, so remove it.
Removed |
The code looks clean and straightforward! Great for merge. |
ref issue is #1135
But this patch some differences form #1135 proposed.
Because all we want to do is to suppress calling
MessagePackEventStream#ensure_unpacked!
, this patch did not addsize
to argument of MultiEventStream#initialize