Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-2228

Document.parse() stucked in a dead loop

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.3.0
    • Affects Version/s: 3.2.2
    • Component/s: BSON
    • None

      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)

            Assignee:
            ross@mongodb.com Ross Lawley
            Reporter:
            lqp276 liqiaoping
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: