Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
fail-fast: false
matrix:
ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }}
mongodb-version: ['5.0', '4.4', '4.2']
mongodb-version: ['8.0', '7.0', '6.0', '5.0', '4.4', '4.2']
os:
- ubuntu-latest

Expand Down
2 changes: 0 additions & 2 deletions test/plugin/test_out_mongo.rb
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,6 @@ def test_write_with_expire_index
@type mongo
connection_string mongodb://localhost:#{port}/#{database_name}
collection #{collection_name}
capped
capped_size 100
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Memo

In MongoDB, capped collections and TTL indexes (expireAfterSeconds) are mutually exclusive concepts.

While older versions of MongoDB silently ignored the TTL index creation on a capped collection,
seems MongoDB 6.0+ has introduced stricter validation.

expire_after 120
])
assert_equal("mongodb://localhost:#{port}/#{database_name}", d.instance.connection_string)
Expand Down