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

Support ScatteredExecutor #17

Merged
merged 3 commits into from
Feb 25, 2019
Merged

Conversation

yzp0n
Copy link
Contributor

@yzp0n yzp0n commented Feb 21, 2019

Address #16

scatter-local-executor is enabled by default when using Embulk >0.8,
which runs mulitple instance of OrcTransactionalPageOutput in parallel.

This ends up calling orc.impl.MemoryManagerImpl, which is *not*
multi-thread safe.

This change introduces WriterLocalMemoryManager, which is a simple thread-safe
implementation of orc.MemoryManager bound to each orc.Writer instance.
With this change, embulk-output-orc can be safely used from Embulk >0.8.
@yzp0n yzp0n changed the title Address #16 Support ScatteredExecutor Feb 21, 2019
@yzp0n
Copy link
Contributor Author

yzp0n commented Feb 21, 2019

Just noticed the CI failing on the style check. I'll update shortly.

@yuokada yuokada self-requested a review February 25, 2019 06:45
@yuokada
Copy link
Owner

yuokada commented Feb 25, 2019

Excellent! Something that I should have done myself a long time ago.

Thanks.

@yuokada yuokada merged commit 82c7f44 into yuokada:master Feb 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants