{"action":"created","issue":{"url":"https://api.github.com/repos/Metaswitch/sprout/issues/1546","repository_url":"https://api.github.com/repos/Metaswitch/sprout","labels_url":"https://api.github.com/repos/Metaswitch/sprout/issues/1546/labels{/name}","comments_url":"https://api.github.com/repos/Metaswitch/sprout/issues/1546/comments","events_url":"https://api.github.com/repos/Metaswitch/sprout/issues/1546/events","html_url":"https://github.com/Metaswitch/sprout/issues/1546","id":179284837,"number":1546,"title":"Memento crashes due to missing CassandraResolver","user":{"login":"AlexHockey","id":4903205,"avatar_url":"https://avatars.githubusercontent.com/u/4903205?v=3","gravatar_id":"","url":"https://api.github.com/users/AlexHockey","html_url":"https://github.com/AlexHockey","followers_url":"https://api.github.com/users/AlexHockey/followers","following_url":"https://api.github.com/users/AlexHockey/following{/other_user}","gists_url":"https://api.github.com/users/AlexHockey/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexHockey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexHockey/subscriptions","organizations_url":"https://api.github.com/users/AlexHockey/orgs","repos_url":"https://api.github.com/users/AlexHockey/repos","events_url":"https://api.github.com/users/AlexHockey/events{/privacy}","received_events_url":"https://api.github.com/users/AlexHockey/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Metaswitch/sprout/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/Metaswitch/sprout/labels/high-priority","name":"high-priority","color":"ff0000"}],"state":"open","locked":false,"assignee":{"login":"AlexHockey","id":4903205,"avatar_url":"https://avatars.githubusercontent.com/u/4903205?v=3","gravatar_id":"","url":"https://api.github.com/users/AlexHockey","html_url":"https://github.com/AlexHockey","followers_url":"https://api.github.com/users/AlexHockey/followers","following_url":"https://api.github.com/users/AlexHockey/following{/other_user}","gists_url":"https://api.github.com/users/AlexHockey/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexHockey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexHockey/subscriptions","organizations_url":"https://api.github.com/users/AlexHockey/orgs","repos_url":"https://api.github.com/users/AlexHockey/repos","events_url":"https://api.github.com/users/AlexHockey/events{/privacy}","received_events_url":"https://api.github.com/users/AlexHockey/received_events","type":"User","site_admin":false},"assignees":[{"login":"AlexHockey","id":4903205,"avatar_url":"https://avatars.githubusercontent.com/u/4903205?v=3","gravatar_id":"","url":"https://api.github.com/users/AlexHockey","html_url":"https://github.com/AlexHockey","followers_url":"https://api.github.com/users/AlexHockey/followers","following_url":"https://api.github.com/users/AlexHockey/following{/other_user}","gists_url":"https://api.github.com/users/AlexHockey/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexHockey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexHockey/subscriptions","organizations_url":"https://api.github.com/users/AlexHockey/orgs","repos_url":"https://api.github.com/users/AlexHockey/repos","events_url":"https://api.github.com/users/AlexHockey/events{/privacy}","received_events_url":"https://api.github.com/users/AlexHockey/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2016-09-26T17:09:07Z","updated_at":"2016-10-06T10:00:26Z","closed_at":null,"body":"#### Symptoms\r\n\r\nMemento crashes when it processes a call. \r\n\r\n```\r\n#0  0x00007fecf5b31b99 in __libc_waitpid (pid=532, stat_loc=stat_loc@entry=0x7fecbeff9aa0, options=options@entry=0) at ../sysdeps/unix/sysv/linux/waitpid.c:40\r\n#1  0x00007fecf5ab72e2 in do_system (line=<optimized out>) at ../sysdeps/posix/system.c:148\r\n#2  0x00000000004e5dc3 in Logger::backtrace (this=0x228ff00, data=<optimized out>) at ../modules/cpp-common/src/logger.cpp:318\r\n#3  0x00000000005a2a7d in Log::backtrace (fmt=fmt@entry=0x747178 \"Signal %d caught\") at ../modules/cpp-common/src/log.cpp:185\r\n#4  0x00000000005fdb2c in signal_handler (sig=11) at main.cpp:1151\r\n#5  <signal handler called>\r\n#6  0x00007fecdc5c5246 in CassandraStore::Store::perform_op (this=this@entry=0x3175fa0, op=op@entry=0x7fece81a9290, trail=trail@entry=1392, cass_result=@0x7fecbeffcc4c: CassandraStore::UNKNOWN_ERROR, cass_error_text=...) at ../modules/cpp-common/src/cassandra_store.cpp:287\r\n#7  0x00007fecdc5c5d61 in CassandraStore::Store::do_sync (this=0x3175fa0, op=0x7fece81a9290, trail=1392) at ../modules/cpp-common/src/cassandra_store.cpp:390\r\n#8  0x00007fecdc5d4db3 in CallListStore::Store::write_call_fragment_sync (this=0x3175fa0, impu=..., fragment=..., cass_timestamp=<optimized out>, ttl=<optimized out>, trail=1392) at ../modules/memento-as/modules/memento-common/src/call_list_store.cpp:446\r\n#9  0x00007fecdc5d9038 in CallListStoreProcessor::Pool::process_work (this=0x3176900, clr=@0x7fecbeffcdd8: 0x7fec8817b180) at ../modules/memento-as/src/call_list_store_processor.cpp:124\r\n#10 0x00007fecdc5da4d4 in ThreadPool<CallListStoreProcessor::CallListRequest*>::worker_thread_func (this=0x3176900) at ../modules/cpp-common/include/threadpool.h:184\r\n#11 0x00007fecdc5da5b9 in ThreadPool<CallListStoreProcessor::CallListRequest*>::static_worker_thread_func (pool=<optimized out>) at ../modules/cpp-common/include/threadpool.h:162\r\n#12 0x00007fecf6fbf182 in start_thread (arg=0x7fecbeffd700) at pthread_create.c:312\r\n#13 0x00007fecf5b6b47d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111\r\n```\r\n\r\nThis is because we configure the call list store without a Cassandra resolver (see https://github.com/Metaswitch/sprout/blob/777de6d5f06915ac274936e85d5e996cd6be695d/src/mementoasplugin.cpp#L112)\r\n\r\n#### Impact\r\n\r\nMemento doesn't work. \r\n\r\n#### Release and environment \r\n\r\nCurrent dev (https://github.com/Metaswitch/sprout/commit/fc9ff1ffd4bdad5b8b9863ee5206b32f3390ed0b)\r\n\r\n#### Steps to reproduce\r\n\r\n* Create a sprout node. \r\n* Install memento\r\n* Configure a subscriber to use memento.\r\n* Make a call from that subscriber. \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Metaswitch/sprout/issues/comments/251918753","html_url":"https://github.com/Metaswitch/sprout/issues/1546#issuecomment-251918753","issue_url":"https://api.github.com/repos/Metaswitch/sprout/issues/1546","id":251918753,"user":{"login":"sebrexmetaswitch","id":4903681,"avatar_url":"https://avatars.githubusercontent.com/u/4903681?v=3","gravatar_id":"","url":"https://api.github.com/users/sebrexmetaswitch","html_url":"https://github.com/sebrexmetaswitch","followers_url":"https://api.github.com/users/sebrexmetaswitch/followers","following_url":"https://api.github.com/users/sebrexmetaswitch/following{/other_user}","gists_url":"https://api.github.com/users/sebrexmetaswitch/gists{/gist_id}","starred_url":"https://api.github.com/users/sebrexmetaswitch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sebrexmetaswitch/subscriptions","organizations_url":"https://api.github.com/users/sebrexmetaswitch/orgs","repos_url":"https://api.github.com/users/sebrexmetaswitch/repos","events_url":"https://api.github.com/users/sebrexmetaswitch/events{/privacy}","received_events_url":"https://api.github.com/users/sebrexmetaswitch/received_events","type":"User","site_admin":false},"created_at":"2016-10-06T10:00:26Z","updated_at":"2016-10-06T10:00:26Z","body":"Fixed  by #1547 "}}
{"actor":{"display_login":"sebrexmetaswitch"}}