René's URL Explorer Experiment


Title: key length errors (jobs table) · Issue #453 · datajoint/datajoint-python · GitHub

Open Graph Title: key length errors (jobs table) · Issue #453 · datajoint/datajoint-python

X Title: key length errors (jobs table) · Issue #453 · datajoint/datajoint-python

Description: While performing some DB maintenance testing, I encountered an error: pymysql.err.InternalError: (1071, 'Specified key was too long; max key length is 767 bytes') in Ubuntu 16.04/MariaDB 10.0 - Digging further, it appears that the jobs t...

Open Graph Description: While performing some DB maintenance testing, I encountered an error: pymysql.err.InternalError: (1071, 'Specified key was too long; max key length is 767 bytes') in Ubuntu 16.04/MariaDB 10.0 - Dig...

X Description: While performing some DB maintenance testing, I encountered an error: pymysql.err.InternalError: (1071, 'Specified key was too long; max key length is 767 bytes') in Ubuntu 16.04/MariaDB 10...

Opengraph URL: https://github.com/datajoint/datajoint-python/issues/453

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"key length errors (jobs table)","articleBody":"While performing some DB maintenance testing, I encountered an error:\r\n\r\n```\r\npymysql.err.InternalError: (1071, 'Specified key was too long; max key length is 767 bytes')\r\n```\r\n\r\nin Ubuntu 16.04/MariaDB 10.0 -\r\n\r\nDigging further, it appears that the jobs table key length \u0026 default database config for this setup result in a key longer than 767 bytes - default character set is ```utf8mb4``` which results in (255+32)*4 for the key.\r\n\r\nVarious posts/documentation pertaining to the InnoDB related parameters are below -\r\nOn this particular setup, enabling:\r\n\r\n```\r\ninnodb_file_format=Barracuda\r\ninnodb_large_prefix=on\r\n```\r\nto ```my.cnf``` and adding ```ROW_FORMAT=DYNAMIC``` to the query allowed the table to be created manually. Table creation (datajoint 0.10.0) with the single addition of the row format argument is as follows:\r\n\r\n```\r\nCREATE TABLE IF NOT EXISTS `pipline`.`~jobs` (\r\n`table_name` varchar(255) NOT NULL COMMENT \"className of the table\",\r\n`key_hash` char(32) NOT NULL COMMENT \"key hash\",\r\n`status` enum('reserved','error','ignore') NOT NULL COMMENT \"if tuple is missing, the job is available\",\r\n`key` blob DEFAULT NULL COMMENT \"structure containing the key\",\r\n`error_message` varchar(4096) NOT NULL DEFAULT \"\" COMMENT \"error message returned if failed\",\r\n`error_stack` blob DEFAULT NULL COMMENT \"error stack if failed\",\r\n`user` varchar(255) NOT NULL DEFAULT \"\" COMMENT \"database user\",\r\n`host` varchar(255) NOT NULL DEFAULT \"\" COMMENT \"system hostname\",\r\n`pid` int unsigned NOT NULL DEFAULT \"0\" COMMENT \"system process id\",\r\n`connection_id` bigint unsigned NOT NULL DEFAULT \"0\" COMMENT \"connection_id()\",\r\n`timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT \"automatic timestamp\",\r\nPRIMARY KEY (`table_name`,`key_hash`)\r\n) ENGINE=InnoDB, ROW_FORMAT=DYNAMIC, COMMENT \"job reservation table for `pipline`\"\r\n```\r\n\r\nThis issue should not apparently occur on current MySQL and MariaDB InnoDB configurations since they default to ```DYNAMIC``` row configurations; That said adding the ```ROW_FORMAT=DYNAMIC``` tweak still might be useful in some situations. If nothing else, it can be noted here or perhaps documented more officially.\r\n\r\nVarious links:\r\n\r\nhttps://github.com/gogits/gogs/issues/4894 - details provided about similar issue\r\nhttps://dev.mysql.com/doc/refman/5.6/en/innodb-restrictions.html - see issues concerning innodb restrictions\r\nhttps://dev.mysql.com/doc/refman/5.7/en/innodb-row-format-specification.html - misc on row formats\r\nhttps://mariadb.com/kb/en/library/xtradbinnodb-storage-formats/ - mariadb specific information\r\n\r\n","author":{"url":"https://github.com/ixcat","@type":"Person","name":"ixcat"},"datePublished":"2018-03-01T23:55:48.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/453/datajoint-python/issues/453"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:c67a83d8-5c2a-a421-172d-c757ab683ac8
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD09C:6F3CF:69312C8:932B636:6A504CDC
html-safe-nonceb0887d383cd5ad58842499219ba2095352fdee48f1fa829e5a01bd335dbf41a5
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMDlDOjZGM0NGOjY5MzEyQzg6OTMyQjYzNjo2QTUwNENEQyIsInZpc2l0b3JfaWQiOiI4NzQwNTA4MDY0MDUyOTU2MzgwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac965288b341aba38fd958265c7b9010aeb02d2434899cb9529f3ed9594ddda818
hovercard-subject-tagissue:301604551
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/datajoint/datajoint-python/453/issue_layout
twitter:imagehttps://opengraph.githubassets.com/87dcc5af415820e2c792aa4817f3f374541a1d3b37caabfa31b02d66e5b50fb0/datajoint/datajoint-python/issues/453
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/87dcc5af415820e2c792aa4817f3f374541a1d3b37caabfa31b02d66e5b50fb0/datajoint/datajoint-python/issues/453
og:image:altWhile performing some DB maintenance testing, I encountered an error: pymysql.err.InternalError: (1071, 'Specified key was too long; max key length is 767 bytes') in Ubuntu 16.04/MariaDB 10.0 - Dig...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameixcat
hostnamegithub.com
expected-hostnamegithub.com
Noned6dc8294eb500fa36bbc57472d61fe87c522f9c3c1d64f70f4926f66a66a7efb
turbo-cache-controlno-preview
go-importgithub.com/datajoint/datajoint-python git https://github.com/datajoint/datajoint-python.git
octolytics-dimension-user_id2375501
octolytics-dimension-user_logindatajoint
octolytics-dimension-repository_id5866704
octolytics-dimension-repository_nwodatajoint/datajoint-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id5866704
octolytics-dimension-repository_network_root_nwodatajoint/datajoint-python
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release5741a45fe07e5f377d0d4c524a92e3056acc51bb
ui-targetcanary-2
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/datajoint/datajoint-python/issues/453#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdatajoint%2Fdatajoint-python%2Fissues%2F453
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdatajoint%2Fdatajoint-python%2Fissues%2F453
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=datajoint%2Fdatajoint-python
Reloadhttps://github.com/datajoint/datajoint-python/issues/453
Reloadhttps://github.com/datajoint/datajoint-python/issues/453
Reloadhttps://github.com/datajoint/datajoint-python/issues/453
Please reload this pagehttps://github.com/datajoint/datajoint-python/issues/453
datajoint https://github.com/datajoint
datajoint-pythonhttps://github.com/datajoint/datajoint-python
Notifications https://github.com/login?return_to=%2Fdatajoint%2Fdatajoint-python
Fork 96 https://github.com/login?return_to=%2Fdatajoint%2Fdatajoint-python
Star 194 https://github.com/login?return_to=%2Fdatajoint%2Fdatajoint-python
Code https://github.com/datajoint/datajoint-python
Issues 8 https://github.com/datajoint/datajoint-python/issues
Pull requests 4 https://github.com/datajoint/datajoint-python/pulls
Discussions https://github.com/datajoint/datajoint-python/discussions
Actions https://github.com/datajoint/datajoint-python/actions
Security and quality 0 https://github.com/datajoint/datajoint-python/security
Insights https://github.com/datajoint/datajoint-python/pulse
Code https://github.com/datajoint/datajoint-python
Issues https://github.com/datajoint/datajoint-python/issues
Pull requests https://github.com/datajoint/datajoint-python/pulls
Discussions https://github.com/datajoint/datajoint-python/discussions
Actions https://github.com/datajoint/datajoint-python/actions
Security and quality https://github.com/datajoint/datajoint-python/security
Insights https://github.com/datajoint/datajoint-python/pulse
key length errors (jobs table)https://github.com/datajoint/datajoint-python/issues/453#top
https://github.com/dimitri-yatsenko
https://github.com/ixcat
enhancementIndicates new improvementshttps://github.com/datajoint/datajoint-python/issues?q=state%3Aopen%20label%3A%22enhancement%22
Release 0.11https://github.com/datajoint/datajoint-python/milestone/5
https://github.com/ixcat
ixcathttps://github.com/ixcat
on Mar 1, 2018https://github.com/datajoint/datajoint-python/issues/453#issue-301604551
gogs/gogs#4894https://github.com/gogs/gogs/issues/4894
https://dev.mysql.com/doc/refman/5.6/en/innodb-restrictions.htmlhttps://dev.mysql.com/doc/refman/5.6/en/innodb-restrictions.html
https://dev.mysql.com/doc/refman/5.7/en/innodb-row-format-specification.htmlhttps://dev.mysql.com/doc/refman/5.7/en/innodb-row-format-specification.html
https://mariadb.com/kb/en/library/xtradbinnodb-storage-formats/https://mariadb.com/kb/en/library/xtradbinnodb-storage-formats/
dimitri-yatsenkohttps://github.com/dimitri-yatsenko
ixcathttps://github.com/ixcat
enhancementIndicates new improvementshttps://github.com/datajoint/datajoint-python/issues?q=state%3Aopen%20label%3A%22enhancement%22
Release 0.11https://github.com/datajoint/datajoint-python/milestone/5
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.