MongoDB connection issue (Dremio 2.1.6, MongoDB 3.4.17-19-ga70a8ce8cd)

I am trying to connect to MongoDB, and am getting an error which on the surface at least seems to be related to the version being returned from MongoDB.

Caused by: java.lang.NumberFormatException: For input string: “17-19-ga70a8ce8cd”
at java.lang.NumberFormatException.forInputString(Unknown Source) ~[na:1.8.0_181]
at java.lang.Integer.parseInt(Unknown Source) ~[na:1.8.0_181]
at java.lang.Integer.parseInt(Unknown Source) ~[na:1.8.0_181]
at com.dremio.plugins.Version.parse(Version.java:53) ~[dremio-sabot-kernel-2.1.6-201809161906440178-edb5b4d.jar:2.1.6-201809161906440178-edb5b4d]
at com.dremio.plugins.mongo.metadata.MongoVersion.getVersionForConnection(MongoVersion.java:52) ~[dremio-extra-plugin-mongo-2.1.6-201809161906440178-edb5b4d.jar:2.1.6-201809161906440178-edb5b4d]
at com.dremio.plugins.mongo.metadata.MongoTopology.getMinVersion(MongoTopology.java:220) ~[dremio-extra-plugin-mongo-2.1.6-201809161906440178-edb5b4d.jar:2.1.6-201809161906440178-edb5b4d]

Any ideas?

I’m having this same issue. For MongoDB v 3.4,

Caused by: java.lang.NumberFormatException: For input string: “17-19-ga70a8ce8cd”
at java.lang.NumberFormatException.forInputString(Unknown Source) ~[na:1.8.0_181]
at java.lang.Integer.parseInt(Unknown Source) ~[na:1.8.0_181]
at java.lang.Integer.parseInt(Unknown Source) ~[na:1.8.0_181]
at com.dremio.plugins.Version.parse(Version.java:53) ~[dremio-sabot-kernel-2.1.6-201809161906440178-edb5b4d.jar:2.1.6-201809161906440178-edb5b4d]

It looks like it’s breaking on a version number it can’t parse. Likely an oversight an easy fix, can someone on the team check it out?

Hey,

Can you please provide me with the details on your connection?

  • Encryption Connection?
  • Read from secondaries?
  • No Auth / Master Creds?
  • Do you have connection properties?
  • Is this Atlas?

Let me know,

Alex Ciunciusky