-
Notifications
You must be signed in to change notification settings - Fork 33
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
ERROR ArcRecordUtils - Read 1224 bytes but expected 1300 bytes #128
Comments
We had this back in Warcbase - see issue here lintool/warcbase#199. According to this it should have been fixed in webarchive-commons (1.1.7). @jrwiebe did quite a bit of digging on this problem. |
@anjackson any chance this resurfaced in webarchive-commons 1.1.8? |
@ruebot Possibly, although the changeset doesn't seem to affect the original fix. Any chance you've got an older version on the classpath somewhere? |
|
Hmmm, I'm confused. Your version of ArcRecordUtils doesn't have the additional code @jrwiebe added to cope with this situation. Or am I misunderstanding the issue? |
Oh, that weird. |
@lintool https://github.com/lintool/warcbase/blob/7bdc8b55fdbf96a6fd5a246de761fb344563ce1f/src/main/java/org/warcbase/data/ArcRecordUtils.java#L61-L66 vs https://github.com/lintool/warcbase/commits/master/warcbase-core/src/main/java/org/warcbase/data/ArcRecordUtils.java Do you know what happen to the git history there? When you split it up to |
I think that predates the separation btw But aha, the branch @jrwiebe was working on was never merged. Here's the differences there: https://github.com/lintool/warcbase/compare/arc-tobytes |
Shoot, I wish we'd merged this. After @jrwiebe did this branch, we then had the split between warcbase-core and warcbase-hbase, and then subsequent i/o handling changes. I don't think there's a straightforward way to port this stuff over (without knowing Java, which I don't). Another option is to suppress some of the error handling by default on expecting X bytes but getting Y bytes. |
Since we know why that error is occurring, you could fairly safely suppress the error for now -- perhaps only for cases where the difference between bytes-read and bytes-expected is 76 (see (lintool/warcbase#199 (comment)) -- until someone has time to merge my branch. |
This is a recurring error due to header problems. Temporary patches #128.
Resolved with 3eb093a |
This is coming up a lot in the build.
Example:
The text was updated successfully, but these errors were encountered: