Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
MongoDB currently maintains 10 programming language Drivers in-house, including a Ruby driver for which I'm presently the Product Manager. Additionally we also have a library of community maintained drivers, built using the MongoDB Driver specifications our engineers maintain and publish.
It was brought to my attention that one of these community drivers - the Haskell driver - was experiencing an issue whereby queries were no longer returning results from the MongoDB Atlas clusters their applications were connected to.
As I'm unfamiliar with Haskell Adrien kindly provided a Dockerized reproduction I could use to test this issue against my own Atlas clusters. This reproduction would write 3 documents to a collection, then try to read 3 documents back. To begin testing I setup an M10 cluster and ran the tests a few times.
require 'bundler/inline' gemfile do source 'https://rubygems.org' gem 'mongo' end client = Mongo::Client.new('mongodb+srv://....mongodb.net/test') collection = client[:foo] collection.drop puts "Found #{collection.find.to_a.length} documents" # => Found 0 documents collection.insert_many([].fill({ "bar": "baz" },0,3)) puts "Found #{collection.find.to_a.length} documents" # => Found 3 documents