{"action":"created","issue":{"url":"https://api.github.com/repos/klarna/mnesia_eleveldb/issues/3","repository_url":"https://api.github.com/repos/klarna/mnesia_eleveldb","labels_url":"https://api.github.com/repos/klarna/mnesia_eleveldb/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/klarna/mnesia_eleveldb/issues/3/comments","events_url":"https://api.github.com/repos/klarna/mnesia_eleveldb/issues/3/events","html_url":"https://github.com/klarna/mnesia_eleveldb/issues/3","id":187553222,"number":3,"title":"Problem with creating index on leveldb table","user":{"login":"bwegh","id":1056167,"avatar_url":"https://avatars.githubusercontent.com/u/1056167?v=3","gravatar_id":"","url":"https://api.github.com/users/bwegh","html_url":"https://github.com/bwegh","followers_url":"https://api.github.com/users/bwegh/followers","following_url":"https://api.github.com/users/bwegh/following{/other_user}","gists_url":"https://api.github.com/users/bwegh/gists{/gist_id}","starred_url":"https://api.github.com/users/bwegh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bwegh/subscriptions","organizations_url":"https://api.github.com/users/bwegh/orgs","repos_url":"https://api.github.com/users/bwegh/repos","events_url":"https://api.github.com/users/bwegh/events{/privacy}","received_events_url":"https://api.github.com/users/bwegh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-11-06T10:25:12Z","updated_at":"2016-11-09T09:30:37Z","closed_at":null,"body":"just cloning this repo and building it,\r\nafter that running in shell:\r\n```\r\n$ erl -pa $(find . -type d -name ebin)\r\nErlang/OTP 19 [erts-8.1] [source] [64-bit] [smp:4:4] [async-threads:10] [kernel-poll:false]\r\n\r\nEshell V8.1  (abort with ^G)\r\n1> application:ensure_all_started(mnesia_eleveldb).\r\n{ok,[mnesia_eleveldb]}\r\n2> application:ensure_all_started(eleveldb).\r\n{ok,[eleveldb]}\r\n3> mnesia:create_schema([node()]).\r\nok\r\n4> mnesia:start().\r\nok\r\n5> mnesia_eleveldb:register().\r\n{ok,leveldb_copies}\r\n6> mnesia:create_table(test, [{leveldb_copies, [node()]}, {attributes, [a, b, c]}, {type, set}]).\r\n{atomic,ok}\r\n7>  mnesia:dirty_write({test, hello, leveldb, world}).\r\nok\r\n8> mnesia:dirty_read(test, hello).\r\n[{test,hello,leveldb,world}]\r\n9> mnesia:delete_table(test).\r\n{atomic,ok}\r\n10> mnesia:create_table(test, [{leveldb_copies, [node()]}, {attributes, [a, b, c]}, {type, set}]).\r\n{atomic,ok}\r\n11> mnesia:delete_table(test).                                                                    \r\n{atomic,ok}\r\n12> mnesia:create_table(test, [{leveldb_copies, [node()]}, {attributes, [a, b, c]}, {type, set}, {index, [c]}]).\r\n\r\n=ERROR REPORT==== 6-Nov-2016::11:17:04 ===\r\nMnesia(nonode@nohost): ** ERROR ** (core dumped to file: \"/home/bas/Documents/s/sw/mnesia_eleveldb/MnesiaCore.nonode@nohost_1478_427424_217626\")\r\n ** FATAL ** Schema update error {badarg,\r\n                                  [{mnesia_eleveldb,get_sel_cont,1,\r\n                                    [{file,\"src/mnesia_eleveldb.erl\"},\r\n                                     {line,1572}]},\r\n                                   {mnesia_eleveldb,select,1,\r\n                                    [{file,\"src/mnesia_eleveldb.erl\"},\r\n                                     {line,758}]},\r\n                                   {mnesia_lib,db_select_cont,3,\r\n                                    [{file,\"mnesia_lib.erl\"},{line,1208}]},\r\n                                   {mnesia_lib,select_foldl,4,\r\n                                    [{file,\"mnesia_lib.erl\"},{line,1174}]},\r\n                                   {mnesia_index,init_ext_index,5,\r\n                                    [{file,\"mnesia_index.erl\"},{line,365}]},\r\n                                   {mnesia_loader,do_get_disc_copy2,4,\r\n                                    [{file,\"mnesia_loader.erl\"},{line,157}]},\r\n                                   {mnesia_controller,create_table,1,\r\n                                    [{file,\"mnesia_controller.erl\"},\r\n                                     {line,374}]},\r\n                                   {mnesia_dumper,insert_op,5,\r\n                                    [{file,\"mnesia_dumper.erl\"},{line,816}]}]} [{op,\r\n                                                                                 create_table,\r\n                                                                                 [{name,\r\n                                                                                   test},\r\n                                                                                  {type,\r\n                                                                                   set},\r\n                                                                                  {ram_copies,\r\n                                                                                   []},\r\n                                                                                  {disc_copies,\r\n                                                                                   []},\r\n                                                                                  {disc_only_copies,\r\n                                                                                   []},\r\n                                                                                  {leveldb_copies,\r\n                                                                                   [nonode@nohost]},\r\n                                                                                  {load_order,\r\n                                                                                   0},\r\n                                                                                  {access_mode,\r\n                                                                                   read_write},\r\n                                                                                  {majority,\r\n                                                                                   false},\r\n                                                                                  {index,\r\n                                                                                   [{4,\r\n                                                                                     ordered}]},\r\n                                                                                  {snmp,\r\n                                                                                   []},\r\n                                                                                  {local_content,\r\n                                                                                   false},\r\n                                                                                  {record_name,\r\n                                                                                   test},\r\n                                                                                  {attributes,\r\n                                                                                   [a,\r\n                                                                                    b,\r\n                                                                                    c]},\r\n                                                                                  {user_properties,\r\n                                                                                   []},\r\n                                                                                  {frag_properties,\r\n                                                                                   []},\r\n                                                                                  {storage_properties,\r\n                                                                                   []},\r\n                                                                                  {cookie,\r\n                                                                                   {{1478427424160653003,\r\n                                                                                     -576460752303423351,\r\n                                                                                     1},\r\n                                                                                    nonode@nohost}},\r\n                                                                                  {version,\r\n                                                                                   {{2,\r\n                                                                                     0},\r\n                                                                                    []}}]}]\r\n=ERROR REPORT==== 6-Nov-2016::11:17:04 ===\r\n** Generic server 'mnesia_ext_proc_test-_tab' terminating \r\n** Last message in was {load,leveldb_copies,test,set,[]}\r\n** When Server state == {st,'mnesia_ext_icache_test-_tab',<<>>,leveldb_copies,\r\n                            test,set,0,false}\r\n** Reason for termination == \r\n** {badarg,[{ets,new,\r\n                 ['mnesia_ext_icache_test-_tab',[set,protected,named_table]],\r\n                 []},\r\n            {mnesia_eleveldb,do_load_table,2,\r\n                             [{file,\"src/mnesia_eleveldb.erl\"},{line,888}]},\r\n            {mnesia_eleveldb,handle_call,3,\r\n                             [{file,\"src/mnesia_eleveldb.erl\"},{line,895}]},\r\n            {gen_server,try_handle_call,4,\r\n                        [{file,\"gen_server.erl\"},{line,615}]},\r\n            {gen_server,handle_msg,5,[{file,\"gen_server.erl\"},{line,647}]},\r\n            {proc_lib,init_p_do_apply,3,[{file,\"proc_lib.erl\"},{line,247}]}]}\r\n\r\n=ERROR REPORT==== 6-Nov-2016::11:17:06 ===\r\nMnesia(nonode@nohost): ** ERROR ** (ignoring core) ** FATAL ** Schema update error {{{badarg,\r\n                                                                                      [{ets,\r\n                                                                                        new,\r\n                                                                                        ['mnesia_ext_icache_test-_tab',\r\n                                                                                         [set,\r\n                                                                                          protected,\r\n                                                                                          named_table]],\r\n                                                                                        []},\r\n                                                                                       {mnesia_eleveldb,\r\n                                                                                        do_load_table,\r\n                                                                                        2,\r\n                                                                                        [{file,\r\n                                                                                          \"src/mnesia_eleveldb.erl\"},\r\n                                                                                         {line,\r\n                                                                                          888}]},\r\n                                                                                       {mnesia_eleveldb,\r\n                                                                                        handle_call,\r\n                                                                                        3,\r\n                                                                                        [{file,\r\n                                                                                          \"src/mnesia_eleveldb.erl\"},\r\n                                                                                         {line,\r\n                                                                                          895}]},\r\n                                                                                       {gen_server,\r\n                                                                                        try_handle_call,\r\n                                                                                        4,\r\n                                                                                        [{file,\r\n                                                                                          \"gen_server.erl\"},\r\n                                                                                         {line,\r\n                                                                                          615}]},\r\n                                                                                       {gen_server,\r\n                                                                                        handle_msg,\r\n                                                                                        5,\r\n                                                                                        [{file,\r\n                                                                                          \"gen_server.erl\"},\r\n                                                                                         {line,\r\n                                                                                          647}]},\r\n                                                                                       {proc_lib,\r\n                                                                                        init_p_do_apply,\r\n                                                                                        3,\r\n                                                                                        [{file,\r\n                                                                                          \"proc_lib.erl\"},\r\n                                                                                         {line,\r\n                                                                                          247}]}]},\r\n                                                                                     {gen_server,\r\n                                                                                      call,\r\n                                                                                      [<0.173.0>,\r\n                                                                                       {load,\r\n                                                                                        leveldb_copies,\r\n                                                                                        test,\r\n                                                                                        set,\r\n                                                                                        []}]}},\r\n                                                                                    [{gen_server,\r\n                                                                                      call,\r\n                                                                                      2,\r\n                                                                                      [{file,\r\n                                                                                        \"gen_server.erl\"},\r\n                                                                                       {line,\r\n                                                                                        204}]},\r\n                                                                                     {mnesia_loader,\r\n                                                                                      do_get_disc_copy2,\r\n                                                                                      4,\r\n                                                                                      [{file,\r\n                                                                                        \"mnesia_loader.erl\"},\r\n                                                                                       {line,\r\n                                                                                        156}]},\r\n                                                                                     {mnesia_controller,\r\n                                                                                      create_table,\r\n                                                                                      1,\r\n                                                                                      [{file,\r\n                                                                                        \"mnesia_controller.erl\"},\r\n                                                                                       {line,\r\n                                                                                        374}]},\r\n                                                                                     {mnesia_dumper,\r\n                                                                                      insert_op,\r\n                                                                                      5,\r\n                                                                                      [{file,\r\n                                                                                        \"mnesia_dumper.erl\"},\r\n                                                                                        {line,                                                                                        816}]},                                                                                     {mnesia_dumper,\r\n                                                                                      insert_ops,\r\n                                                                                      6,\r\n                                                                                      [{file,\r\n                                                                                        \"mnesia_dumper.erl\"},\r\n                                                                                       {line,\r\n                                                                                        337}]},\r\n                                                                                     {mnesia_dumper,\r\n                                                                                      perform_update,\r\n                                                                                      4,\r\n                                                                                      [{file,\r\n                                                                                        \"mnesia_dumper.erl\"},\r\n                                                                                       {line,\r\n                                                                                        323}]},\r\n                                                                                     {mnesia_dumper,\r\n                                                                                      update,\r\n                                                                                      3,\r\n                                                                                      [{file,\r\n                                                                                        \"mnesia_dumper.erl\"},\r\n                                                                                       {line,\r\n                                                                                        305}]},\r\n                                                                                     {mnesia_tm,\r\n                                                                                      do_commit,\r\n                                                                                      3,\r\n                                                                                      [{file,\r\n                                                                                        \"mnesia_tm.erl\"},\r\n                                                                                       {line,\r\n                                                                                        1772}]}]} [{op,\r\n                                                                                                    create_table,\r\n                                                                                                    [{name,\r\n                                                                                                      test},\r\n                                                                                                     {type,\r\n                                                                                                      set},\r\n                                                                                                     {ram_copies,\r\n                                                                                                      []},\r\n                                                                                                     {disc_copies,\r\n                                                                                                      []},\r\n                                                                                                     {disc_only_copies,\r\n                                                                                                      []},\r\n                                                                                                     {leveldb_copies,\r\n                                                                                                      [nonode@nohost]},\r\n                                                                                                     {load_order,\r\n                                                                                                      0},\r\n                                                                                                     {access_mode,\r\n                                                                                                      read_write},\r\n                                                                                                     {majority,\r\n                                                                                                      false},\r\n                                                                                                     {index,\r\n                                                                                                      [{4,\r\n                                                                                                        ordered}]},\r\n                                                                                                     {snmp,\r\n                                                                                                      []},\r\n                                                                                                     {local_content,\r\n                                                                                                      false},\r\n                                                                                                     {record_name,\r\n                                                                                                      test},\r\n                                                                                                     {attributes,\r\n                                                                                                      [a,\r\n                                                                                                       b,\r\n                                                                                                       c]},\r\n                                                                                                     {user_properties,\r\n                                                                                                      []},\r\n                                                                                                     {frag_properties,\r\n                                                                                                      []},\r\n                                                                                                     {storage_properties,\r\n                                                                                                      []},\r\n                                                                                                     {cookie,\r\n                                                                                                      {{1478427424160653003,\r\n                                                                                                        -576460752303423351,\r\n                                                                                                        1},\r\n                                                                                                       nonode@nohost}},\r\n                                                                                                      {version,\r\n                                                                                                      {{2,\r\n                                                                                                        0},\r\n                                                                                                       []}}]}]\r\n=ERROR REPORT==== 6-Nov-2016::11:17:16 ===\r\n** Generic server mnesia_monitor terminating \r\n** Last message in was {'EXIT',<0.84.0>,killed}\r\n** When Server state == {state,<0.84.0>,[],[],true,[],undefined,[],[]}\r\n** Reason for termination == \r\n** killed\r\n\r\n=ERROR REPORT==== 6-Nov-2016::11:17:16 ===\r\n** Generic server mnesia_recover terminating \r\n** Last message in was {'EXIT',<0.84.0>,killed}\r\n** When Server state == {state,<0.84.0>,undefined,undefined,undefined,0,false,\r\n                               true,[]}\r\n** Reason for termination == \r\n** killed\r\n\r\n=ERROR REPORT==== 6-Nov-2016::11:17:16 ===\r\nMnesia(nonode@nohost): ** ERROR ** mnesia_event got unexpected event: {'EXIT',\r\n                                                                       <0.86.0>,\r\n                                                                       killed}\r\n\r\n=INFO REPORT==== 6-Nov-2016::11:17:16 ===\r\n    application: mnesia\r\n    exited: killed\r\n    type: temporary\r\n```"},"comment":{"url":"https://api.github.com/repos/klarna/mnesia_eleveldb/issues/comments/259369773","html_url":"https://github.com/klarna/mnesia_eleveldb/issues/3#issuecomment-259369773","issue_url":"https://api.github.com/repos/klarna/mnesia_eleveldb/issues/3","id":259369773,"user":{"login":"bwegh","id":1056167,"avatar_url":"https://avatars.githubusercontent.com/u/1056167?v=3","gravatar_id":"","url":"https://api.github.com/users/bwegh","html_url":"https://github.com/bwegh","followers_url":"https://api.github.com/users/bwegh/followers","following_url":"https://api.github.com/users/bwegh/following{/other_user}","gists_url":"https://api.github.com/users/bwegh/gists{/gist_id}","starred_url":"https://api.github.com/users/bwegh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bwegh/subscriptions","organizations_url":"https://api.github.com/users/bwegh/orgs","repos_url":"https://api.github.com/users/bwegh/repos","events_url":"https://api.github.com/users/bwegh/events{/privacy}","received_events_url":"https://api.github.com/users/bwegh/received_events","type":"User","site_admin":false},"created_at":"2016-11-09T09:30:37Z","updated_at":"2016-11-09T09:30:37Z","body":"you are welcome, thanks for open-sourcing it!"}}
{"actor":{"display_login":"bwegh"}}