Skip to content

Ubuntu 13.10 server crash #2237

Closed
Closed

Description

@internalfx

One of my nodes crashed today...

I ran this query in the data explorer right before it happened.

r.db('mydb').table('mytable').count()

The query did not complete. The table has about 30,000 documents and 3 shards.

Here is the output from the log_file.

2014-04-10T09:24:32.121430510 54917.604571s error: Error in ./src/buffer_cache/alt/alt.hpp at line 327:
2014-04-10T09:24:32.121483215 54917.604624s error: Guarantee failed: [block_size == lock_->cache()->max_block_size().value()] 
2014-04-10T09:24:32.121496557 54917.604637s error: Backtrace:
2014-04-10T09:24:33.265404095 54918.748545s error: Thu Apr 10 09:24:32 2014

1: backtrace_t::backtrace_t() at ??:?
2: format_backtrace(bool) at ??:?
3: report_fatal_error(char const*, int, char const*, ...) at ??:?
4: btree_depth_first_traversal(counted_t<counted_buf_lock_t>, key_range_t const&, depth_first_traversal_callback_t*, direction_t) at ??:?
5: btree_depth_first_traversal(counted_t<counted_buf_lock_t>, key_range_t const&, depth_first_traversal_callback_t*, direction_t) at ??:?
6: btree_depth_first_traversal(counted_t<counted_buf_lock_t>, key_range_t const&, depth_first_traversal_callback_t*, direction_t) at ??:?
7: btree_depth_first_traversal(superblock_t*, key_range_t const&, depth_first_traversal_callback_t*, direction_t) at ??:?
8: btree_concurrent_traversal(superblock_t*, key_range_t const&, concurrent_traversal_callback_t*, direction_t) at ??:?
9: rdb_rget_slice(btree_slice_t*, key_range_t const&, superblock_t*, ql::env_t*, ql::batchspec_t const&, std::vector<boost::variant<ql::map_wire_func_t, ql::group_wire_func_t, ql::filter_wire_func_t, ql::concatmap_wire_func_t, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_>, std::allocator<boost::variant<ql::map_wire_func_t, ql::group_wire_func_t, ql::filter_wire_func_t, ql::concatmap_wire_func_t, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_> > > const&, boost::optional<boost::variant<ql::count_wire_func_t, ql::sum_wire_func_t, ql::avg_wire_func_t, ql::min_wire_func_t, ql::max_wire_func_t, ql::reduce_wire_func_t, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_> > const&, ql::sorting_t, rdb_protocol_t::rget_read_response_t*) at ??:?
10: rdb_read_visitor_t::operator()(rdb_protocol_t::rget_read_t const&) at ??:?
11: rdb_protocol_t::store_t::protocol_read(rdb_protocol_t::read_t const&, rdb_protocol_t::read_response_t*, btree_slice_t*, superblock_t*, signal_t*) at ??:?
12: btree_store_t<rdb_protocol_t>::read(rdb_protocol_t::read_t const&, rdb_protocol_t::read_response_t*, order_token_t, read_token_pair_t*, signal_t*) at ??:?
13: store_subview_t<rdb_protocol_t>::read(rdb_protocol_t::read_t const&, rdb_protocol_t::read_response_t*, order_token_t, read_token_pair_t*, signal_t*) at ??:?
14: store_subview_t<rdb_protocol_t>::read(rdb_protocol_t::read_t const&, rdb_protocol_t::read_response_t*, order_token_t, read_token_pair_t*, signal_t*) at ??:?
15: listener_t<rdb_protocol_t>::perform_read(rdb_protocol_t::read_t const&, state_timestamp_t, order_token_t, fifo_enforcer_read_token_t, mailbox_addr_t<void (rdb_protocol_t::read_response_t)>, auto_drainer_t::lock_t) at ??:?
16: callable_action_instance_t<boost::_bi::bind_t<void, boost::_mfi::mf6<void, listener_t<rdb_protocol_t>, rdb_protocol_t::read_t const&, state_timestamp_t, order_token_t, fifo_enforcer_read_token_t, mailbox_addr_t<void (rdb_protocol_t::read_response_t)>, auto_drainer_t::lock_t>, boost::_bi::list7<boost::_bi::value<listener_t<rdb_protocol_t>*>, boost::_bi::value<rdb_protocol_t::read_t>, boost::_bi::value<state_timestamp_t>, boost::_bi::value<order_token_t>, boost::_bi::value<fifo_enforcer_read_token_t>, boost::_bi::value<mailbox_addr_t<void (rdb_protocol_t::read_response_t)> >, boost::_bi::value<auto_drainer_t::lock_t> > > >::run_action() at ??:?
17: coro_t::run() at ??:?
2014-04-10T09:24:33.265563515 54918.748704s error: Exiting.

Activity

  1. changed the title [-]Crash Ubuntu 13.10 buffer cache[/-] [+]Ubuntu 13.10 server crash[/+] on Apr 10, 2014
  2. neumino commented on Apr 10, 2014

    @neumino
    Member

    What version of RethinkDB are you running?

    It looks like #2114 which was fixed in #2073

  3. internalfx commented on Apr 10, 2014

    @internalfx
    Author

    Web UI shows RethinkDB 1.12.2

    Just got an update through the PPA yesterday, which did fix a replication issue. So props for that.

    Just want to say that I really, REALLY like this database! I want this project to succeed!

  4. neumino commented on Apr 10, 2014

    @neumino
    Member

    Thanks @internalfx! And sorry for the bug, we'll fix it as soon as possible.

    Ping @danielmewes -- it seems related to the fix you made in #2073

  5. added this to the milestone on Apr 10, 2014
  6. coffeemug commented on Apr 10, 2014

    @coffeemug
    Contributor

    Also, ping @srh.

  7. danielmewes commented on Apr 10, 2014

    @danielmewes
    Member

    @internalfx Is there a chance you could provide the rethinkdb data directories to us (ideally from all of the nodes)? That would make it easier to track down the issue. The data would be used internally by us solely for reproducing and tracking down this issue. @mglukhovsky can provide you with information on how to upload the data I think.

  8. danielmewes commented on Apr 10, 2014

    @danielmewes
    Member

    @internalfx Another quick question: Did you restart RethinkDB on all nodes after yesterday's update to version 1.12.2? After installing a new version, the web interface might immediately start displaying the newer version, even though the old server is still running (see #1093 (comment) ).

  9. internalfx commented on Apr 11, 2014

    @internalfx
    Author

    I restarted the servers themselves after the upgrade.....

    Also I don't think I could give the data, but I certainly understand why its helpful. There are 2 reasons I can't give you the data.

    1. The data is kinda sensitive, and we tell people we don't share their information with 3rd parties.
    2. I'm doing lots of testing, loading and unloading of records. So the specific data that crashed doesn't exist anymore.

    Off topic...
    I wish I could pat you guys on the back, REALLY LIKE working with this. I've begun writing an adapter for the sailsjs framework. There are a few others, but they look like dead projects. Will give you a shout out when released. The more plugins, tools and frameworks that integrate and use this, the better. Really want this project to succeed, I’ll be spreading the word where I can.

  10. coffeemug commented on Apr 11, 2014

    @coffeemug
    Contributor

    @internalfx -- thank you! There are lots and lots of very exciting developments coming up (but have no fear, we're still, and always will be, completely focused on developer happiness and API and implementation quality).

    Regarding the data or the core dump -- we are happy to sign an NDA agreement with you if it makes a difference, and we can include a clause that we'll wipe all data from our servers after we investigate this bug. If that works for you -- shoot me an e-mail at [email protected].

    In any case, we'll still work very hard to fix this bug, but it may not be feasible until we get more information (either from you, from other users, or in our own attempts to reproduce it).

  11. 3 remaining items

  12. danielmewes commented on Apr 15, 2014

    @danielmewes
    Member

    Ok, I was able to reproduce it. It can be reproduced (more easily?) with a small cache size.

  13. internalfx commented on Apr 15, 2014

    @internalfx
    Author

    Oh wow...sorry. I didn't think to mention the relatively low ram of the VMs

    I have it running on 4 VMs with 1GB of ram each. So you must be on the right track.

  14. danielmewes commented on Apr 15, 2014

    @danielmewes
    Member

    @internalfx No problem! I should have thought of that earlier.
    Now just have to find out why this is happening...

  15. internalfx commented on Apr 15, 2014

    @internalfx
    Author

    Congratulations! You have reached step 4! 😄

    bh90fvjcuaa0qlu png large

  16. danielmewes commented on Apr 15, 2014

    @danielmewes
    Member

    @internalfx Haha that's so true! :-)

  17. danielmewes commented on Apr 18, 2014

    @danielmewes
    Member

    There has been some progress. I'm currently testing a likely fix implemented in branch daniel_2237.

  18. danielmewes commented on Apr 18, 2014

    @danielmewes
    Member

    Looking good so far. The patch is in code review 1433 by @srh.

  19. internalfx commented on Apr 18, 2014

    @internalfx
    Author

    Your teams responsiveness only increases my confidence in the product. I've been using this database for about 10 days now, and am already having a hard time considering using anything else.

    When I first saw your product, I thought the web admin was it's "must-have feature". But its actually ReQL! Other query languages feel like junk now.

    I think your project deserves to grow, and I will be spreading the word.

  20. danielmewes commented on Apr 18, 2014

    @danielmewes
    Member

    Thank you for the nice words @internalfx!

    The fix is in v1.12.x as of 8b24b36 (the main fix is d4c3424),
    and next 253ebc2

    @AtnNn @coffeemug Despite the fact that we have just released 1.12.3, this unfortunately means that we will have to prepare yet another point release asap.

  21. internalfx commented on Apr 18, 2014

    @internalfx
    Author

    Not sure if other users are suffering, but I have migrated from 4x 1GB ram VMs to 2x 2GB ram VMs.

    The problem has not resurfaced, I could handle waiting for the next point release.

    Oh and thanks for adding trusty support, I was waiting for that to show up. 😄

  22. danielmewes commented on Apr 18, 2014

    @danielmewes
    Member

    I would still like to get this out as soon as possible, because it can theoretically lead to queries returning wrong data and all kinds of odd effects.

  23. modified the milestones: 1.12.4, on Apr 18, 2014
  24. added a commit that references this issue on Apr 22, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions