brianfrankcooper / YCSB

Yahoo! Cloud Serving Benchmark
Apache License 2.0
4.91k stars 2.22k forks source link

[mongodb] Add support for connecting to mongodb domain sockets #1587

Open vaibhav92 opened 2 years ago

vaibhav92 commented 2 years ago

These two commit lets YCSB connect to a mongodb instance thats exposed as a Unix domain socket like "mongodb://run/mongodb/mongodb-.sock" . Presently this functionality is broken due to some missing dependencies and the way get_classpath_from_maven() generates the classpath from maven's dependency:build-classpath plugin.

These two commits adds the needed runtime dependencies for mongodb plugin to be able to connect to a Unix domain socket and also updates get_classpath_from_maven() so that it can correctly identify these runtime dependencies and generates correct classpath to invoke the mongodb plugin.