basho / riak

Riak is a decentralized datastore from Basho Technologies.
http://docs.basho.com
Apache License 2.0
3.92k stars 534 forks source link

Unknown message code: 60 [JIRA: RIAK-1858] #683

Open AndreasMadsen opened 9 years ago

AndreasMadsen commented 9 years ago

If Riak Search 2.0 isn't enabled, which is the default setting (search = false) and a RpbYokozunaSchemaPutReq protocol buffer request is made (haven't checked the other search request types) the return error is Unknown message code: 60. This is not very useful for machines or humans.

For comparison if secondary indexes is not supported the return error is {error,{indexes_not_supported,riak_kv_bitcask_backend}}. This is far more useful.

I would like to see something like: {error,{search_not_supported,riak_search_off}}. Or similar indication of a bad configuration and not a bad protocol implementation.

weaktyper commented 9 years ago

+1 agree.

Basho-JIRA commented 8 years ago

Doug researched and the PR is the wrong one, so removed the Fix Version.

_[posted via JIRA by Patricia Brewer]_