hhvm icon indicating copy to clipboard operation
hhvm copied to clipboard

The hhbc file is wrote bad in noRepoAuthoritative mode

Open huzhiguang opened this issue 10 years ago • 5 comments

There are some machines HHBC is written bad would happen,the case is less.and then I deleted hhbc file can run normally (hhbc file can be read and write)

hhvm master version don't add throw RepoException,I have add throw RepoException when hhbc have happened exception.

This Exception message:

[Fri Feb 13 07:51:15 2015] [hphp] [17679:7f2cb15ff700:3986:000002] [] Error: throw RepoExc ==>RepoQuery::step(repo=0x7f2f9911e800) error: 'INSERT INTO main.FileMd5_HHVM_2_2 VALUES(@path, @md5);' --> (11) database disk image is malformed

HHVM can appear some abnormal phenomena when the mistakes("database disk image is malformed")

Will there be another exception(" (10) disk I/O error") in front this exception(" (11) database disk image is malformed").

I can't emersion this exception, so you can't locate the cause of problem.

To avoid this problem's way: I will delete bad hhbc file solve this problem when check RepoException print error log.

please you help me locate this problem cause,thanks

huzhiguang avatar Feb 27 '15 08:02 huzhiguang

We've been seeing this on some of our machines as well. I believe @markw65 is looking into the problem.

paulbiss avatar Feb 27 '15 17:02 paulbiss

Internal task #6245073.

paulbiss avatar Feb 27 '15 17:02 paulbiss

Any updates on this? It has become somewhat frequent for us in production lately.

kmapb avatar Feb 11 '17 02:02 kmapb

@kmaslack Which version of HHVM are you hitting this with? I believe @aorenste has done some semi-recent cleanup to the locking around writing to the sqlite repo.

Orvid avatar Feb 13 '17 19:02 Orvid

@Orvid The stuff I did was about 7 months ago and just cleaned up the API a little bit.

aorenste avatar Feb 14 '17 02:02 aorenste