-
Notifications
You must be signed in to change notification settings - Fork 284
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Packet size mismatch! error on collection drop #2813
base: master
Are you sure you want to change the base?
Conversation
@WebFreak001 @s-ludwig any thoughts on this pr? |
The change looks good, but the code in the |
sounds good but please don't put it in the fundamental |
b2070ae
to
8506c9c
Compare
@s-ludwig @WebFreak001 ready for another look |
Co-authored-by: Sönke Ludwig <[email protected]>
{ | ||
MongoClient client = connectMongoDB("127.0.0.1", port); | ||
|
||
/// Drop a collection |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this test only testing dropping non-existent collections?
Should probably drop it twice just in case if it randomly existed beforehand on CI. It should behave the same both times after all.
Otherwise it might make sense to also create a collection here.
From what I tested, the issue happens even when the collection exists. So
it does not matter if I do it once or twice.
…On Mon, Jan 27, 2025 at 9:03 PM Jan Jurzitza ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In tests/mongodb/collection/source/app.d
<#2813 (comment)>:
> +import vibe.core.core;
+import vibe.core.log;
+import vibe.data.bson;
+import vibe.db.mongo.mongo;
+
+import std.algorithm : all, canFind, equal, map, sort;
+import std.conv : to;
+import std.encoding : sanitize;
+import std.exception : assertThrown;
+
+
+void runTest(ushort port)
+{
+ MongoClient client = connectMongoDB("127.0.0.1", port);
+
+ /// Drop a collection
is this test only testing dropping non-existent collections?
Should probably drop it twice just in case if it randomly existed
beforehand on CI. It should behave the same both times after all.
Otherwise it might make sense to also create a collection here.
—
Reply to this email directly, view it on GitHub
<#2813 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABAFRTKKFZYMOQTAYXHBSRT2M2GJHAVCNFSM6AAAAABU766R5KVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDKNZWGQZTONZTG4>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
I've just tested locally and for me the test passes when I insert just a single |
prove it in the test then? :D Right now the CI fails with So it looks like in older MongoDB versions this didn't work. Now we could either ignore this error on the vibe.d side to make it behave the same with all MongoDB versions (and perhaps return a boolean if we can extract it in >=7 as well and make it part of the API) or just say double free has unspecified behavior. |
fix #2812