Last modified: 2014-01-10 00:38:11 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T56840, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 54840 - hhvm has problems when mysql queries fail
hhvm has problems when mysql queries fail
Status: RESOLVED DUPLICATE of bug 28481
Product: MediaWiki
Classification: Unclassified
Database (Other open bugs)
1.22.0
All All
: Normal minor (vote)
: ---
Assigned To: Nobody - You can work on this!
: hhvm
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-10-01 19:31 UTC by Chad H.
Modified: 2014-01-10 00:38 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Chad H. 2013-10-01 19:31:24 UTC
It seems as though DBO_IGNORE isn't working on HHVM. Minimal test case:

$ hhvm eval.php 
> wfGetDB( DB_MASTER )->tableExists( 'foo' );
HipHop Notice: runtime/ext_mysql: failed executing [SELECT /* DatabaseBase::tableExists  */ 1 FROM `foo` LIMIT 1] [Table 'wikidb.foo' doesn't exist] in /www/mediawiki/core/includes/db/DatabaseMysql.php on line 38
Comment 1 Chad H. 2013-10-03 01:28:08 UTC
DBO_IGNORE does work, I misdiagnosed the cause. Figured it out a bit more today.

So it turns out HHVM shows a notice whenever a query fails due to the table not existing. tableExists() makes no assumptions about whether the table exists, so I rewrote it in Gerrit change #87281 to use information_schema instead.

Possibly a wider problem with mysql query errors + hhvm though. Needs more investigation. If there's a solution that makes Gerrit change #87281 unnecessary, I'm for it.
Comment 2 Chad H. 2013-10-07 21:20:58 UTC

*** This bug has been marked as a duplicate of bug 28481 ***
Comment 3 Andre Klapper 2014-01-10 00:38:11 UTC
[Using keyword instead of tracking bug for HipHop issues as requested in bug 40926 comment 5. Filter bugmail on this message.]

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links