You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On a cluster with a lot of shards, many of which are backfilling, I get this crash on the parsing server reliably upon running r.db('rethinkdb').table('jobs'):
error: Error in src/rpc/connectivity/cluster.cc at line 117:
error: Guarantee failed: [!is_loopback()] Attempted to kill connection to myself.
error: Backtrace:
error: Wed Jan 7 18:39:37 2015
1: backtrace_t::backtrace_t() at backtrace.cc:203
2: lazy_backtrace_formatter_t::lazy_backtrace_formatter_t() at basic_string.h:269
3: format_backtrace(bool) at backtrace.cc:197
4: report_fatal_error(char const*, int, char const*, ...) at basic_string.h:287
5: connectivity_cluster_t::connection_t::kill_connection() at cluster.cc:117
6: mailbox_manager_t::mailbox_read_coroutine(connectivity_cluster_t::connection_t*, auto_drainer_t::lock_t, threadnum_t, unsigned long, std::vector<char, std::allocator<char> >*, long, mailbox_manager_t::force_yield_t) at mailbox.cc:286
7: ./rethinkdb() [0x756d48] at 0x756d48 ()
8: coro_t::run() at coroutines.cc:206
error: Exiting.
report_t doesn't always initialize it's bool is_ready field. If it happened to contain a value > 1, deserialization would fail because it checks that the range of a bool is 0-1.
Activity
danielmewes commentedon Jan 8, 2015
Running in debug mode reveals the possible source of this:
I'm seeing one of these on each server
Check serializer_.has() in is_gc_active() function to fix #3525
danielmewes commentedon Jan 8, 2015
The code was just missing a check to handle the case where the serializer for a store hadn't been created yet.
Fix in CR 2447.
danielmewes commentedon Jan 8, 2015
Actually that was premature. I'm still getting the original crash in release mode.
danielmewes commentedon Jan 8, 2015
There was another instance of the same problem in
stores_lifetimer_t::get_sindex_jobs(). Updated the CR.danielmewes commentedon Jan 8, 2015
There seems to be yet another one somewhere...
danielmewes commentedon Jan 8, 2015
report_tdoesn't always initialize it'sbool is_readyfield. If it happened to contain a value > 1, deserialization would fail because it checks that the range of a bool is 0-1.danielmewes commentedon Jan 8, 2015
Merged into next as of 5facb14
We discovered some other object lifetime issues on the way, which @VeXocide is going to look into.
Check serializer_.has() in is_gc_active() function to fix rethinkdb#3525