8000 Unexpected EOF · Issue #20 · reverb/wordnik-oss · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Unexpected EOF #20

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

Open
ubiquitousthey opened this issue Oct 10, 2013 · 2 comments
Open

Unexpected EOF #20

ubiquitousthey opened this issue Oct 10, 2013 · 2 comments

Comments

@ubiquitousthey
Copy link

I am getting the following exception on all my oplog files when I use the ReplayUtil.

java.io.IOException: unexpected EOF
at org.bson.BasicBSONDecoder$BSONInput._need(BasicBSONDecoder.java:327)
at org.bson.BasicBSONDecoder$BSONInput.readInt(BasicBSONDecoder.java:340)
at org.bson.BasicBSONDecoder._decode(BasicBSONDecoder.java:74)
at org.bson.BasicBSONDecoder.decode(BasicBSONDecoder.java:57)
at org.bson.BasicBSONDecoder.readObject(BasicBSONDecoder.java:42)
at com.wordnik.system.mongodb.ReplayUtil.run(ReplayUtil.java:154)
at com.wordnik.system.mongodb.ReplayUtil.main(ReplayUtil.java:70)

I am restoring a snapshot and then replaying five oplogs. I have programmatically verified that the data is being restored without gaps, so I am confident the data is there.

Have you seen that? Do you have any suggestions for me?

Here is a link to one of the oplogs.
http://static.integrityops.net.s3.amazonaws.com/1381330862_oplog.bson.gz

@fehguy
Copy link
Contributor
fehguy commented Oct 10, 2013

I've only seen that when the data is corrupt, but if that's on every line, I expect it's not the case. Can you see what is in the oplog being replied? You can write the file as JSON instead of BSON to see.

Are you on windows or a mac?

@ubiquitousthey
Copy link
Author

I think I have narrowed it down. When I replay it as a *.bson file it works without error, but when I replay it as a *.bson.gz file, I get the error. For now, I'll gunzip the files manually.

There must be something about the GZipInputStream / BufferedInputStream combination is not feeding the data to the BSONDecoder right.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
0