You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@beam.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2018/12/03 09:17:00 UTC
[jira] [Work logged] (BEAM-6143) Upgrade to mongo client 3.9.1
[ https://issues.apache.org/jira/browse/BEAM-6143?focusedWorklogId=171496&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-171496 ]
ASF GitHub Bot logged work on BEAM-6143:
----------------------------------------
Author: ASF GitHub Bot
Created on: 03/Dec/18 09:16
Start Date: 03/Dec/18 09:16
Worklog Time Spent: 10m
Work Description: iemejia closed pull request #7151: [BEAM-6143] Upgrade to Mongo Java Driver 3.9.1 and update the API
URL: https://github.com/apache/beam/pull/7151
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/sdks/java/io/mongodb/build.gradle b/sdks/java/io/mongodb/build.gradle
index 175b550a699f..d9fe0e5bdd41 100644
--- a/sdks/java/io/mongodb/build.gradle
+++ b/sdks/java/io/mongodb/build.gradle
@@ -29,7 +29,7 @@ dependencies {
shadow project(path: ":beam-sdks-java-core", configuration: "shadow")
shadow library.java.slf4j_api
shadow library.java.joda_time
- shadow "org.mongodb:mongo-java-driver:3.2.2"
+ shadow "org.mongodb:mongo-java-driver:3.9.1"
testCompile project(path: ":beam-runners-direct-java", configuration: "shadow")
testCompile library.java.junit
testCompile library.java.slf4j_jdk14
@@ -37,6 +37,6 @@ dependencies {
testCompile library.java.hamcrest_library
testCompile project(path: ":beam-sdks-java-io-common", configuration: "shadow")
testCompile project(path: ":beam-sdks-java-io-common", configuration: "shadowTest")
- testCompile "de.flapdoodle.embed:de.flapdoodle.embed.mongo:1.50.1"
- testCompile "de.flapdoodle.embed:de.flapdoodle.embed.process:1.50.1"
+ testCompile "de.flapdoodle.embed:de.flapdoodle.embed.mongo:2.1.1"
+ testCompile "de.flapdoodle.embed:de.flapdoodle.embed.process:2.0.5"
}
diff --git a/sdks/java/io/mongodb/src/main/java/org/apache/beam/sdk/io/mongodb/MongoDbGridFSIO.java b/sdks/java/io/mongodb/src/main/java/org/apache/beam/sdk/io/mongodb/MongoDbGridFSIO.java
index 2c36431a53fe..363f32a3f239 100644
--- a/sdks/java/io/mongodb/src/main/java/org/apache/beam/sdk/io/mongodb/MongoDbGridFSIO.java
+++ b/sdks/java/io/mongodb/src/main/java/org/apache/beam/sdk/io/mongodb/MongoDbGridFSIO.java
@@ -367,9 +367,9 @@ public Duration getAllowedTimestampSkew() {
private DBCursor createCursor(GridFS gridfs) {
if (spec.filter() != null) {
DBObject query = (DBObject) JSON.parse(spec.filter());
- return gridfs.getFileList(query).sort(null);
+ return gridfs.getFileList(query);
}
- return gridfs.getFileList().sort(null);
+ return gridfs.getFileList();
}
@Override
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Issue Time Tracking
-------------------
Worklog Id: (was: 171496)
Time Spent: 20m (was: 10m)
> Upgrade to mongo client 3.9.1
> -----------------------------
>
> Key: BEAM-6143
> URL: https://issues.apache.org/jira/browse/BEAM-6143
> Project: Beam
> Issue Type: Task
> Components: io-java-mongodb
> Reporter: Jean-Baptiste Onofré
> Assignee: Jean-Baptiste Onofré
> Priority: Major
> Fix For: 2.10.0
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)