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

Add buffered output plugins for tests #847

Merged
merged 14 commits into from
Jun 15, 2016

Conversation

cosmo0920
Copy link
Contributor

@cosmo0920 cosmo0920 commented Mar 11, 2016

Revised: #518.

And I've added tests for added buffered output plugins for testing.

Remaining Tasks

  • Rewrite with new TestDriver and new v0.14 API (Not Yet)

@cosmo0920 cosmo0920 force-pushed the add-buffer-plugins-for-tests branch from 8611be7 to 906853e Compare March 11, 2016 04:14
require 'fluent/output'

module Fluent
class BufferedStdoutOutput < BufferedOutput
Copy link
Member

Choose a reason for hiding this comment

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

Is this really subclass of BufferedOutput? not ObjectBufferedOutput?
There seems no format method to be called.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for the comment.
I think that inheriting ObjectBufferedOutput is not enough for this plugin because ObjectBufferedOutput does not implement format itself.
It seems to need to implement format in this plugin.

Copy link
Member

Choose a reason for hiding this comment

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

Strictly speaking:

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh, I see.
Sorry for my misunderstanding.... 🙇
I use ObjectBufferedOutput instead of BufferedOutput.

@cosmo0920 cosmo0920 force-pushed the add-buffer-plugins-for-tests branch from dafc1a6 to 0375a36 Compare March 18, 2016 06:35
@formatter.configure(conf)
end

def emit(tag, es, chain)
Copy link
Member

Choose a reason for hiding this comment

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

Along with ObjectBufferedOutput way, it should be def write_objects(tag, chunk).
There's no need to handle chain in write_object.

@tagomoris
Copy link
Member

@cosmo0920 Can you leave this pull-request as is for a while?
I think we can add these only for v0.14, and that version will have another (well-organized) test drivers.

@cosmo0920
Copy link
Contributor Author

Yup, I would like to leave as is for now.

@tagomoris tagomoris added the pending To be done in the future label Mar 24, 2016
@tagomoris
Copy link
Member

I'm sorry but I implemented out_buffered_output in #972 because it's very good for a testbed of test drivers.

@tagomoris tagomoris removed the pending To be done in the future label May 24, 2016
@cosmo0920 cosmo0920 force-pushed the add-buffer-plugins-for-tests branch from b0f6217 to e3f0ce0 Compare June 10, 2016 09:15
@tagomoris
Copy link
Member

Hmm, a build on AppVeyor failed, but there are no details.

@tagomoris tagomoris closed this Jun 14, 2016
@tagomoris tagomoris reopened this Jun 14, 2016
@tagomoris tagomoris merged commit 15801a1 into fluent:master Jun 15, 2016
@tagomoris
Copy link
Member

Thank you!

@cosmo0920 cosmo0920 deleted the add-buffer-plugins-for-tests branch June 15, 2016 04:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants