Hide Forgot
project_key: EDG in memcached server module, stats command is processed in a way that it isn't read as a whole line after the input "stats" is read we're not reading the input till the end of the line but treating the next input as next command: eg input "stats delete a\r" results to output: STAT pid 0 .... STAT conn_yields 0 END NOT_FOUND input "stats bla\r" leads to STAT pid 0 .... STAT conn_yields 0 END SERVER_ERROR org.infinispan.server.core.UnknownOperationException: Unknown operation: bla regarding stats we should be prepared for this kind of input: "stats\r\n" "stats <args>\r\n" ie client might pass some additional arguments after stats command, which are not to be interpreted as next command. (we need to read the whole line to the end.)
Even though it's not documented (I should do so) stats <args> is basically not implemented due to the following notes in the protocol: "stats <args>\r\n Depending on <args>, various internal data is sent by the server. The kinds of arguments and the data sent are not documented in this vesion of the protocol, and are subject to change for the convenience of memcache developers." Basically, args is internal and hence not documented. So the only format supported should be: stats\r\n So, I'd suggest closing this JIRA and I'll update the docu accordingly. Ok?
I see why we don't support stats args. my point is that we should read the whole input "stats <args>\r\n" anyway and report something like "SERVER_ERROR arguments in stats command are not supported\r\n" depending on the argument there will be probably some further erroneous input, but I think we should handle the input in "line mode".
Fair point, I'll add a JIRA for that and to update the docu accordingly.
Link: Added: This issue depends ISPN-793