beam-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pascal Castéran (JIRA) <>
Subject [jira] [Created] (BEAM-2605) Exception raised when using MongoDBIO.Write in streaming mode
Date Wed, 12 Jul 2017 09:37:00 GMT
Pascal Castéran created BEAM-2605:

             Summary: Exception raised when using MongoDBIO.Write in streaming mode
                 Key: BEAM-2605
             Project: Beam
          Issue Type: Bug
          Components: sdk-java-extensions
    Affects Versions: 2.0.0
            Reporter: Pascal Castéran
            Assignee: Davor Bonaci

In, no check is done on the
size of the batch list of documents before executing the _*insertMany*_ operation.

In streaming mode, when processing an empty pane, an empty list of documents in passed to
the MongoDB client which results in the following exception:
{quote}java.lang.IllegalArgumentException: state should be: writes is not an empty list
	at com.mongodb.assertions.Assertions.isTrueArgument(
	at com.mongodb.operation.MixedBulkWriteOperation.<init>(
	at com.mongodb.MongoCollectionImpl.insertMany(
	at com.mongodb.MongoCollectionImpl.insertMany(

This message was sent by Atlassian JIRA

View raw message