-
Notifications
You must be signed in to change notification settings - Fork 218
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 warning on multi workers #392
Conversation
This just fixes a warning log. |
I think the general direction of this patch is good. However:
Won't this implementation produce false-positives? For example, if we use multiple workers but put I'm thinking something like this:
Nonetheless, this patch is likely to produce warnings on such cases, which I think can be confusing to users. |
In this case, We should also have a test code for this case, |
BTW I've fixed CI failure which isn't concerned with this PR in #393 |
We can use `$ bundle exec rake test TESTOPTS="-t'S3OutputTest::configure'"` to execute this subtest. Signed-off-by: daipom <[email protected]>
This test must fail at this commit. Next comming fix will make it all succeed. `$ bundle exec rake test TESTOPTS="-t'S3OutputTest::configure'"` * Failure: test_configure_warning_on_multi_threads[non_objectkey-multi_worker](S3OutputTest::configure) * Failure: test_configure_warning_on_multi_threads[default_objectkey-multi_worker](S3OutputTest::configure) Signed-off-by: daipom <[email protected]>
This makes `configure` subtest all succeed. `$ bundle exec rake test TESTOPTS="-t'S3OutputTest::configure'"` Signed-off-by: daipom <[email protected]>
Workers consist of processes, so fix some `multi thread` words too. Signed-off-by: daipom <[email protected]>
0cdb512
to
a6a891a
Compare
@ashie Thank you! I have rebased this branch and all checks have passed. |
Thank you for reorganizing commits and merging! |
Background note on why I edited these commits: One of truly awesome feature of Git is
Now, to make So while I understand that "test-first" camp people often intentionally |
This is a fix for #391.