-
Notifications
You must be signed in to change notification settings - Fork 47
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
the error of insert #63
Comments
and if I kill the mongod when waiting for return, I will get
And I think that, mongo and driver are both waiting to receive, or some one forgot to say the 'EOF' or 'OVER' of a message's end. |
Thanks. Looking into it. |
@Qinka What version of MongoDB server are you using? |
I tried servers 2.4, 2.6, 3.0 and 3.2. The driver is able to get ids in all cases. Try capturing traffic between your driver and mongodb server using the following command:
|
@@out.txt And what I try to upload is a 1Mb file, and all of this file is letter 'a'. I use mongo 3.2.8, |
Could you please try without SCRAM authentication? I see SCRAM authentication failure in the very beginning. I would like to be sure that it doesn't affect the issue. Just do traffic capture of this command: access pipe master "local" $ insert "ac" ["txt"=: (take (1024*129) a)] |
What compiler version do you use BTW? |
Can I also see output of your: db.isMaster() |
GHC 8.0.1 (and 7.10.3 has the same problem )
|
I tried 7.10.3 and it works for me. Could you please try converting the string to strict Text before saving?
|
Could you also please do one more traffic capture using the following command:
This command has -X option unlike the previous one.
|
I found that the statements, such as And I have tried with strict Text before saving, I till failed. out.zip <- please rename to *.tar.xz The out.1000.txt is the one failed, and 250~750 are the ones success. (PS1: I'm not good at English, and I hope what I have typed are what I want to say) |
Thank you @Qinka . Mac OS X shouldn't matter, but you never know. Let me see what I can get from the files. I'll let you know when I have something. |
first:
.... connect with db
than:
I success to insert a string whose length is 1024_128 ,but when I inserted 1024_129 one I did not get the return (about 10mins), and then I passed Ctrl+C
The db is host on the localhost.
The text was updated successfully, but these errors were encountered: