elasticsearch/elasticsearch — pull request #2385 by nkvoll (2012-11-07 14:46:06+00:00)
Title: The index of the next RestFilter must be incremented before the current filter starts processing.

Otherwise, synchronous filters will not work. For example, the following filter would cause a ``java.lang.StackOverflowError``:

public class SimpleRestFilter extends RestFilter {
@Override
public void process(RestRequest request, RestChannel channel, RestFilterChain filterChain) {
filterChain.continueProcessing(request, channel);
}
}