I use mongo java driver in my flume project, and one day the events channel was full and after debug, I found that the thread was blocked in a dead loop.
Below is the stacktrace:
********************************************************************************
at org.bson.json.JsonScanner.scanRegularExpression(JsonScanner.java:190)
at org.bson.json.JsonScanner.nextToken(JsonScanner.java:100)
at org.bson.json.JsonReader.popToken(JsonReader.java:475)
at org.bson.json.JsonReader.readBsonType(JsonReader.java:232)
at org.bson.codecs.DocumentCodec.decode(DocumentCodec.java:139)
at org.bson.codecs.DocumentCodec.decode(DocumentCodec.java:45)
at org.bson.codecs.DocumentCodec.readValue(DocumentCodec.java:215)
at org.bson.codecs.DocumentCodec.decode(DocumentCodec.java:141)
at org.bson.codecs.DocumentCodec.decode(DocumentCodec.java:45)
at org.bson.Document.parse(Document.java:105)
at org.bson.Document.parse(Document.java:90)