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

Unit tests hang #1059

Closed
ghost opened this issue Jun 22, 2013 · 15 comments
Closed

Unit tests hang #1059

ghost opened this issue Jun 22, 2013 · 15 comments
Assignees
Milestone

Comments

@ghost
Copy link

ghost commented Jun 22, 2013

Unit tests hang during RDBBtree.SindexInterruptionViaDrop on CentOS 6.4 inside OpenVZ container.
The problem with reproducibility is, on some machines (like on the bare metal server with Xeon) it always hangs, but the same server (set up by scripts) inside VirtualBox did not hang (all tests passed).

@coffeemug
Copy link
Contributor

@Tryneus -- could you take a look at this when you get the chance?

@ghost ghost assigned Tryneus Jun 24, 2013
@Tryneus
Copy link
Member

Tryneus commented Jun 24, 2013

Sure, but it could take some time.

@AtnNn
Copy link
Member

AtnNn commented Jul 2, 2013

Moving to 1.7.x

@Tryneus
Copy link
Member

Tryneus commented Jul 2, 2013

Ok, managed to reproduce this in a CentOS 6.4 VM, doesn't happen every time, but I'll see what I can find.

@Tryneus
Copy link
Member

Tryneus commented Jul 11, 2013

Ok, seriously looking at this now, for real.

@Tryneus
Copy link
Member

Tryneus commented Jul 11, 2013

Ran into this crash when running the debug build unittests, may be related:

[ RUN      ] RDBBtree.SindexInterruptionViaDrop
Version: rethinkdb 1.6.1-fallback (debug) (GCC 4.4.7)
error: Error in ../src/arch/io/disk.cc at line 73:
error: Assertion failed: [outstanding_txn == 0] Closing a file with outstanding txns
error: Backtrace:
error: Tue Jul  9 17:50:24 2013

       1: rethinkdb_backtrace(void**, int) at thread_stack_pcs.cc:151
       2: lazy_backtrace_t::lazy_backtrace_t() at backtrace.cc:250
       3: format_backtrace(bool) at backtrace.cc:197
       4: report_fatal_error(char const*, int, char const*, ...) at errors.cc:67
       5: linux_disk_manager_t::~linux_disk_manager_t() at disk.cc:73
       6: linux_disk_manager_t::~linux_disk_manager_t() at disk.cc:74
       7: scoped_ptr_t<linux_disk_manager_t>::reset() at scoped.hpp:66
       8: scoped_ptr_t<linux_disk_manager_t>::~scoped_ptr_t() at scoped.hpp:30
       9: io_backender_t::~io_backender_t() at disk.cc:177
       10: unittest::run_sindex_interruption_via_drop_test() at rdb_btree.cc:419
       11: boost::detail::function::void_function_invoker0<void (*)(), void>::invoke(boost::detail::function::function_buffer&) at function_template.hpp:113
       12: boost::function0<void>::operator()() const at function_template.hpp:1014
       13: starter_t::run_wrapper(boost::function<void ()()> const&) at runtime.cc:53
       14: boost::_mfi::mf1<void, starter_t, boost::function<void ()()> const&>::operator()(starter_t*, boost::function<void ()()> const&) const at mem_fn_template.hpp:163
       15: void boost::_bi::list2<boost::_bi::value<starter_t*>, boost::_bi::value<boost::function<void ()()> > >::operator()<boost::_mfi::mf1<void, starter_t, boost::function<void ()()> const&>, boost::_bi::list0>(boost::_bi::type<void>, boost::_mfi::mf1<void, starter_t, boost::function<void ()()> const&>&, boost::_bi::list0&, int) at bind.hpp:307
       16: boost::_bi::bind_t<void, boost::_mfi::mf1<void, starter_t, boost::function<void ()()> const&>, boost::_bi::list2<boost::_bi::value<starter_t*>, boost::_bi::value<boost::function<void ()()> > > >::operator()() at bind_template.hpp:21
       17: boost::detail::function::void_function_obj_invoker0<boost::_bi::bind_t<void, boost::_mfi::mf1<void, starter_t, boost::function<void ()()> const&>, boost::_bi::list2<boost::_bi::value<starter_t*>, boost::_bi::value<boost::function<void ()()> > > >, void>::invoke(boost::detail::function::function_buffer&) at function_template.hpp:154
       18: boost::function0<void>::operator()() const at function_template.hpp:1014
       19: callable_action_instance_t<boost::function<void ()()> >::run_action() at callable_action.hpp:28
       20: callable_action_wrapper_t::run() at runtime_utils.cc:67
       21: coro_t::run() at coroutines.cc:178

Also, I'm wondering if #1155 is related.

@coffeemug
Copy link
Contributor

#1155 is confirmed to only happen on CentOS builds because of a different vector implementation in the standard libs, so it's unlikely to be the culprit.

@anatol
Copy link
Contributor

anatol commented Oct 22, 2013

RDBProtocol.OvershardedSindexCreateDrop has the same problem on my Linux Arch.

@coffeemug
Copy link
Contributor

According to @Tryneus, this is likely a dup of #1084, so reassigning to @srh.

@ghost ghost assigned srh Jan 13, 2014
@ghost ghost assigned danielmewes Jan 23, 2014
@danielmewes
Copy link
Member

A probable fix for this has been merged into the next and v1.11.x branches (#1084 (comment) ).

@anatol @Herby if you get a change to re-test this with the current code, please let me know if it works or not.

@AtnNn AtnNn modified the milestones: 1.12.x, 1.11.x Mar 25, 2014
@AtnNn
Copy link
Member

AtnNn commented Mar 25, 2014

Punting to 1.12.x

@coffeemug
Copy link
Contributor

Moving to subsequent on the assumption that only critical bugs should be in the point release, and if something has been open for months, it isn't critical.

@coffeemug coffeemug modified the milestones: subsequent, 1.12.x Mar 26, 2014
@mlucy mlucy modified the milestones: tests, subsequent Apr 25, 2014
@danielmewes
Copy link
Member

Closing, because it hasn't been reported anymore since the fix for this related issue #1084 (comment) .

Please re-open if the problem is observed again.

@anatol
Copy link
Contributor

anatol commented May 28, 2014

Sorry for the delay. I confirm that I do not see any test failures reported previously.

Thanks for fixing it.

@danielmewes
Copy link
Member

@anatol Oh hey, thank you for confirming this. :-)

@AtnNn AtnNn modified the milestones: 1.13, tests Jun 12, 2014
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

7 participants