DBAs noticed over a thousand errors from snapshot1009, dumping nlwiktionary metadatadumps. Tracking down 4 specific instances, I found bad text table entries, where the text was presumably deflated but is apparently garbage. Dumps continue as usual, so it doesn't break them.
We should track and do someting about these entries; there are surely some on other wikis as well.
Note that according to the stack trace, the failure to retrieve a sha1 from the revision results in a lookup of the content. We are dumping metadata only, and so lookups of content should never happen.
Sample stack trace:
PHP Warning: gzinflate(): data error #0 [internal function]: MWExceptionHandler::handleError(integer, string, string, integer, array) #1 /srv/mediawiki/php-1.36.0-wmf.13/includes/Storage/SqlBlobStore.php(593): gzinflate(string) #2 /srv/mediawiki/php-1.36.0-wmf.13/includes/Storage/SqlBlobStore.php(520): MediaWiki\Storage\SqlBlobStore->decompressData(string, array) #3 /srv/mediawiki/php-1.36.0-wmf.13/includes/Storage/SqlBlobStore.php(430): MediaWiki\Storage\SqlBlobStore->expandBlob(string, array, string) #4 /srv/mediawiki/php-1.36.0-wmf.13/includes/Storage/SqlBlobStore.php(286): MediaWiki\Storage\SqlBlobStore->fetchBlobs(array, integer) #5 /srv/mediawiki/php-1.36.0-wmf.13/includes/libs/objectcache/wancache/WANObjectCache.php(1548): MediaWiki\Storage\SqlBlobStore->MediaWiki\Storage\{closure}(boolean, integer, array, NULL, array) #6 /srv/mediawiki/php-1.36.0-wmf.13/includes/libs/objectcache/wancache/WANObjectCache.php(1376): WANObjectCache->fetchOrRegenerate(string, integer, Closure, array, array) #7 /srv/mediawiki/php-1.36.0-wmf.13/includes/Storage/SqlBlobStore.php(291): WANObjectCache->getWithSetCallback(string, integer, Closure, array) #8 /srv/mediawiki/php-1.36.0-wmf.13/includes/Revision/RevisionStore.php(1046): MediaWiki\Storage\SqlBlobStore->getBlob(string, integer) #9 /srv/mediawiki/php-1.36.0-wmf.13/includes/Revision/RevisionStore.php(1312): MediaWiki\Revision\RevisionStore->loadSlotContent(MediaWiki\Revision\SlotRecord, NULL, NULL, NULL, integer) #10 [internal function]: MediaWiki\Revision\RevisionStore->MediaWiki\Revision\{closure}(MediaWiki\Revision\SlotRecord) #11 /srv/mediawiki/php-1.36.0-wmf.13/includes/Revision/SlotRecord.php(300): call_user_func(Closure, MediaWiki\Revision\SlotRecord) #12 /srv/mediawiki/php-1.36.0-wmf.13/includes/Revision/SlotRecord.php(544): MediaWiki\Revision\SlotRecord->getContent() #13 /srv/mediawiki/php-1.36.0-wmf.13/includes/Revision/RevisionSlots.php(202): MediaWiki\Revision\SlotRecord->getSha1() #14 [internal function]: MediaWiki\Revision\RevisionSlots->MediaWiki\Revision\{closure}(NULL, MediaWiki\Revision\SlotRecord) #15 /srv/mediawiki/php-1.36.0-wmf.13/includes/Revision/RevisionSlots.php(204): array_reduce(array, Closure, NULL) #16 /srv/mediawiki/php-1.36.0-wmf.13/includes/Revision/RevisionStoreRecord.php(178): MediaWiki\Revision\RevisionSlots->computeSha1() #17 /srv/mediawiki/php-1.36.0-wmf.13/includes/export/XmlDumpWriter.php(403): MediaWiki\Revision\RevisionStoreRecord->getSha1() #18 /srv/mediawiki/php-1.36.0-wmf.13/includes/export/XmlDumpWriter.php(316): XmlDumpWriter->{closure}() #19 /srv/mediawiki/php-1.36.0-wmf.13/includes/export/XmlDumpWriter.php(405): XmlDumpWriter->invokeLenient(Closure, string) #20 /srv/mediawiki/php-1.36.0-wmf.13/includes/export/WikiExporter.php(536): XmlDumpWriter->writeRevision(stdClass, array) #21 /srv/mediawiki/php-1.36.0-wmf.13/includes/export/WikiExporter.php(479): WikiExporter->outputPageStreamBatch(Wikimedia\Rdbms\ResultWrapper, stdClass) #22 /srv/mediawiki/php-1.36.0-wmf.13/includes/export/WikiExporter.php(299): WikiExporter->dumpPages(string, boolean) #23 /srv/mediawiki/php-1.36.0-wmf.13/includes/export/WikiExporter.php(184): WikiExporter->dumpFrom(string, boolean) #24 /srv/mediawiki/php-1.36.0-wmf.13/maintenance/includes/BackupDumper.php(318): WikiExporter->pagesByRange(integer, integer, boolean) #25 /srv/mediawiki/php-1.36.0-wmf.13/maintenance/dumpBackup.php(82): BackupDumper->dump(integer, integer) #26 /srv/mediawiki/php-1.36.0-wmf.13/maintenance/doMaintenance.php(106): DumpBackup->execute() #27 /srv/mediawiki/php-1.36.0-wmf.13/maintenance/dumpBackup.php(144): require_once(string) #28 /srv/mediawiki/multiversion/MWScript.php(101): require_once(string) #29 {main}
See https://logstash.wikimedia.org/goto/bc9d687961c403d0d34ef3df56d24c16