Logstash JDBC Input infinite loop

Have a look at this thread.