Riak crashing with {lucene_parse,"syntax error before: "AND""}

Spike Gronim spike at wavii.com
Wed Nov 9 17:54:20 EST 2011

One of my Riak servers died again. I think the previously linked crash report was not what made it die. Now no erlang OS processes are running on the machine at all. This cluster is entirely idle except I am running search queries on it. The other 3 servers are up and happy. Here are some log messages:


On Nov 7, 2011, at 11:35 AM, Ryan Zezeski wrote:

Hi Spike,

After decoding your msg it looks like your query is simply 'AND'.  The parser barfs at this as it expects terms on both sides of the AND and this causes the the listener for that particular connection to go down.  No other connections should be affected.  Since the query is parsed on the server there's not a whole lot you can do if a malformed query is sent.  If these are generated/user input queries then perhaps you could create a black list (in your application) for common bad queries that come in.  Also, if your client supports connection pooling that would help too.


On Mon, Nov 7, 2011 at 1:04 PM, Spike Gronim <spike at wavii.com<mailto:spike at wavii.com>> wrote:

My Riak servers are misbehaving when users enter invalid queries. The gen_server erlang process for the PB transport dies but the overall OS level process is still alive. I am exclusively using PB to access Riak, so everything grinds to a halt. I plan to work around this by writing a Riak nanny that verifies that somebody is listening on the PB port every 60s, but I think that this is actually a bug in Riak. I have tried to find other references to this bug in the mailing list archive and bugzilla but haven't found any. If this is really a bug I will write up a more detailed repro in bugzilla. Thanks.

Crash report: https://gist.github.com/82eaaa8fa8a994999872

Spike Gronim
spike at wavii.com<mailto:spike at wavii.com>

riak-users mailing list
riak-users at lists.basho.com<mailto:riak-users at lists.basho.com>

Spike Gronim
spike at wavii.com<mailto:spike at wavii.com>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20111109/af3ef625/attachment.html>

More information about the riak-users mailing list