We just rebuilt our test environment (something we do every month) and
suddenly we get the following error when trying to use 2i:

{error,{error,{indexes_not_supported,riak_kv_multi_backend}}}

But looking at the properties of the bucket it's set to use leveldb:

# curl -k https://localhost:8069/riak/eleveldb/ | jq .
{
  "props": {
    "young_vclock": 20,
    "w": "quorum",
    "small_vclock": 50,
    "rw": "quorum",
    "r": "quorum",
    "linkfun": {
      "fun": "mapreduce_linkfun",
      "mod": "riak_kv_wm_link_walker"
    },
    "last_write_wins": false,
    "dw": "quorum",
    "chash_keyfun": {
      "fun": "chash_std_keyfun",
      "mod": "riak_core_util"
    },
    "big_vclock": 50,
    "basic_quorum": false,
    "backend": "eleveldb_data",
    "allow_mult": false,
    "n_val": 3,
    "name": "eleveldb",
    "notfound_ok": true,
    "old_vclock": 86400,
    "postcommit": [],
    "pr": 0,
    "precommit": [],
    "pw": 0
  }
}

Here's the relevant app.config snippet:

            {storage_backend, riak_kv_multi_backend},
            {multi_backend_default, <<"bitcask_data">>},
            {multi_backend, [
              {<<"bitcask_data">>, riak_kv_bitcask_backend,
[
                 {data_root, "/srv/riak/data/bitcask/data"},
                 %%{io_mode, nif},
                 {max_file_size, 2147483648}, %% 2G
                 {merge_window, always},
                 {frag_merge_trigger, 30},                  %% Merge
at 30% dead keys
                 {dead_bytes_merge_trigger, 134217728},     %% Merge
files that have more than 128MB dead
                 {frag_threshold, 25},                      %% Files
that have 25% dead keys will be merged too
                 {dead_bytes_threshold, 67108864},          %% Include
files that have 64MB of dead space in merges
                 {small_file_threshold, 10485760},          %% Files
smaller than 100MB will not be merged
                 {log_needs_merge, true},                   %% Log
when we need to merge...
                 {sync_strategy, none}
]

              },
              {<<"eleveldb_data">>, riak_kv_eleveldb_backend,
                [{data_root, "/srv/riak/data/eleveldb/files"},
                 {write_buffer_size_min, 31457280 }, %% 30 MB in bytes
                 {write_buffer_size_max, 62914560}, %% 60 MB in bytes
                 {max_open_files, 20}, %% Maximum number of files open
at once per partition
                 {sst_block_size, 4096}, %% 4K blocks
                 {cache_size, 8388608} %% 8MB default cache size per-partition
                ]

              }
            ]},

Anyone have any ideas?

We're using Ubuntu 12.04 with the Basho Riak 1.4.2 .deb. The only
change to this environment has been to upgrade the kernel from
3.5.0-26 to 3.8.0-31-generic but I'd be very surprised if that broke
2i...

Thanks,

Chris

_______________________________________________
riak-users mailing list
[email protected]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Reply via email to