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

Handle Exceptions inside view iterator #11

Open
PascalTurbo opened this issue Apr 5, 2018 · 3 comments
Open

Handle Exceptions inside view iterator #11

PascalTurbo opened this issue Apr 5, 2018 · 3 comments

Comments

@PascalTurbo
Copy link

I'm iterating over the results of a view and I need exceptions to be raised inside the iterator.

From the view example:

res.each do |row|
    # Returns extended results by default
    raise StandardError
end

raise StandardError will stop the iterator and hang the whole application in a useless state.

@stakach
Copy link
Member

stakach commented Apr 5, 2018

This is something that is handled: https://github.com/cotag/libcouchbase/blob/master/spec/view_spec.rb#L50

Of course there could be something else going wrong in the library.

@stakach
Copy link
Member

stakach commented Apr 5, 2018

Actually you are probably correct looking at travis.
I'll resolve asap.

@stakach
Copy link
Member

stakach commented Apr 14, 2018

So I have travis running specs again and have this gem running at multiple sites in production without experiencing the described error and can't reproduce locally.
Happy to help in anyway I can and if it is something you can reproduce locally it would be great if you could maybe put in some extra debugging output so we can work out what's going wrong and where.

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

No branches or pull requests

2 participants