Skip to content

mark mystery jruby error as pending ... it works fine without expect#300

Merged
lukebakken merged 1 commit into
basho:features/lrb/riak-client-2.6.0from
grosser:grosser/jrub
Dec 13, 2016
Merged

mark mystery jruby error as pending ... it works fine without expect#300
lukebakken merged 1 commit into
basho:features/lrb/riak-client-2.6.0from
grosser:grosser/jrub

Conversation

@grosser

@grosser grosser commented Dec 13, 2016

Copy link
Copy Markdown
Contributor

@lukebakken

tried to reproduce it with a simpler setup to open a rspec/jruby issue but was unable,
something really specific about us multithreading and locking ... propably not worth the effort ...

@grosser

grosser commented Dec 13, 2016

Copy link
Copy Markdown
Contributor Author

coverage seems to be also failing on jruby ... I'll deactivate if this is not green

@grosser grosser mentioned this pull request Dec 13, 2016
@grosser

grosser commented Dec 13, 2016

Copy link
Copy Markdown
Contributor Author

... ok this is crazy ... somehow the class gets poisoned by these expects ... I'll rewrite the test to not use expects ...

also removing thread_count check since it is impossible to reach this code because the client already checks it
@grosser

grosser commented Dec 13, 2016

Copy link
Copy Markdown
Contributor Author

ok, hope all is good now :D

Comment thread lib/riak/multi.rb
self.thread_count = client.multi_threads
unless thread_count.is_a?(Integer) && thread_count > 0
raise ArgumentError, t("invalid_multiget_thread_count") # TODO: should be invalid_multi_thread_count
end

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Sorry if it's obvious, why was this removed? I'm multitasking about 10 different things today.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

this code is unreachable/unestable since the only way of setting the multi_threads is client.multi_threads = which already guards against the value being invalid

@grosser

grosser commented Dec 13, 2016

Copy link
Copy Markdown
Contributor Author

only failure is https://travis-ci.org/basho/riak-ruby-client/jobs/183668812 ... but that looks random ... can you merge or restart this one so it gets green ?

@lukebakken lukebakken merged commit c545e37 into basho:features/lrb/riak-client-2.6.0 Dec 13, 2016
@lukebakken lukebakken added this to the riak-ruby-client-2.6.0 milestone Dec 13, 2016
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