{"action":"created","issue":{"url":"https://api.github.com/repos/github/gh-ost/issues/179","repository_url":"https://api.github.com/repos/github/gh-ost","labels_url":"https://api.github.com/repos/github/gh-ost/issues/179/labels{/name}","comments_url":"https://api.github.com/repos/github/gh-ost/issues/179/comments","events_url":"https://api.github.com/repos/github/gh-ost/issues/179/events","html_url":"https://github.com/github/gh-ost/issues/179","id":172316161,"number":179,"title":"unexpected error: Err: runtime error: index out of rang","user":{"login":"NOmri","id":21154961,"avatar_url":"https://avatars.githubusercontent.com/u/21154961?v=3","gravatar_id":"","url":"https://api.github.com/users/NOmri","html_url":"https://github.com/NOmri","followers_url":"https://api.github.com/users/NOmri/followers","following_url":"https://api.github.com/users/NOmri/following{/other_user}","gists_url":"https://api.github.com/users/NOmri/gists{/gist_id}","starred_url":"https://api.github.com/users/NOmri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NOmri/subscriptions","organizations_url":"https://api.github.com/users/NOmri/orgs","repos_url":"https://api.github.com/users/NOmri/repos","events_url":"https://api.github.com/users/NOmri/events{/privacy}","received_events_url":"https://api.github.com/users/NOmri/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":29,"created_at":"2016-08-21T11:11:42Z","updated_at":"2016-08-23T10:29:06Z","closed_at":null,"body":"Hi,\r\ni tried adding options to an ENUM field using the `--test-on-replica` parameter.\r\non a small test environment it worked perfectly, but on the production which is significantly bigger it had encountered a bug.\r\nI ran this command on Scientific Linux release 6.6 with Percona-server 5.6:\r\n\r\n```\r\n./gh-ost --user=\"user\" --password=\"pass\" --host=host --test-on-replica --database=\"db\" --table=\"table\" --verbose --alter=\"CHANGE COLUMN co1 col1 ENUM('1','2','3','4','5') NULL DEFAULT NULL COLLATE 'utf8_bin' AFTER col2\" --initially-drop-ghost-table --initially-drop-old-table --max-load=Threads_running=30 --chunk-size=2500 --cut-over=default --execute\r\n```\r\n\r\nThe error recieved:\r\n```\r\nINFO StreamEvents encountered unexpected error: Err: runtime error: index out of range\r\n Stack: goroutine 43 [running]:\r\ngithub.com/github/gh-ost/vendor/github.com/siddontang/go-mysql/mysql.Pstack(0x0, 0x0)\r\n\t/Users/shlomi-noach/dev/go/src/github.com/github/gh-ost/vendor/github.com/siddontang/go-mysql/mysql/util.go:18 +0x7b\r\ngithub.com/github/gh-ost/vendor/github.com/siddontang/go-mysql/replication.(*BinlogSyncer).onStream.func1(0xc8200cb000, 0xc82046e000)\r\n\t/Users/shlomi-noach/dev/go/src/github.com/github/gh-ost/vendor/github.com/siddontang/go-mysql/replication/binlogsyncer.go:488 +0x66\r\npanic(0x76ed80, 0xc82000e0f0)\r\n\t/usr/local/Cellar/go/1.6.2/libexec/src/runtime/panic.go:443 +0x4e9\r\ngithub.com/github/gh-ost/vendor/github.com/siddontang/go-mysql/replication.(*RowsEvent).decodeValue(0xc82017c280, 0xc8202a0c3b, 0x0, 0x5c5, 0x7, 0x0, 0x0, 0x4, 0x0, 0x0)\r\n\t/Users/shlomi-noach/dev/go/src/github.com/github/gh-ost/vendor/github.com/siddontang/go-mysql/replication/row_event.go:381 +0x99d\r\ngithub.com/github/gh-ost/vendor/github.com/siddontang/go-mysql/replication.(*RowsEvent).decodeRows(0xc82017c280, 0xc8202a0c39, 0x2\r\n2016-08-21 01:48:56 INFO Reconnecting... Will resume at mysql-bin.004414:942354356\r\n2016-08-21 01:48:56 INFO Registering replica at <host>\r\n2016-08-21 01:48:56 INFO Connecting binlog streamer at mysql-bin.004414:4\r\n2016-08-21 01:48:56 INFO rotate to next log name: mysql-bin.004414\r\n2016-08-21 01:48:56 INFO StreamEvents encountered unexpected error: Err: runtime error: index out of range\r\n```"},"comment":{"url":"https://api.github.com/repos/github/gh-ost/issues/comments/241690850","html_url":"https://github.com/github/gh-ost/issues/179#issuecomment-241690850","issue_url":"https://api.github.com/repos/github/gh-ost/issues/179","id":241690850,"user":{"login":"NOmri","id":21154961,"avatar_url":"https://avatars.githubusercontent.com/u/21154961?v=3","gravatar_id":"","url":"https://api.github.com/users/NOmri","html_url":"https://github.com/NOmri","followers_url":"https://api.github.com/users/NOmri/followers","following_url":"https://api.github.com/users/NOmri/following{/other_user}","gists_url":"https://api.github.com/users/NOmri/gists{/gist_id}","starred_url":"https://api.github.com/users/NOmri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NOmri/subscriptions","organizations_url":"https://api.github.com/users/NOmri/orgs","repos_url":"https://api.github.com/users/NOmri/repos","events_url":"https://api.github.com/users/NOmri/events{/privacy}","received_events_url":"https://api.github.com/users/NOmri/received_events","type":"User","site_admin":false},"created_at":"2016-08-23T10:29:06Z","updated_at":"2016-08-23T10:29:06Z","body":"alter=\"engine=innodb\" result with the same problem\r\n```\r\nINFO StreamEvents encountered unexpected error: Err: runtime error: index out of range\r\n Stack: goroutine 58 [running]:\r\ngithub.com/github/gh-ost/vendor/github.com/siddontang/go-mysql/mysql.Pstack(0x0, 0x0)\r\n        /Users/shlomi-noach/dev/go/src/github.com/github/gh-ost/vendor/github.com/siddontang/go-mysql/mysql/util.go:18 +0x7b\r\ngithub.com/github/gh-ost/vendor/github.com/siddontang/go-mysql/replication.(*BinlogSyncer).onStream.func1(0xc8203e84e0, 0xc8201e8cc0)\r\n        /Users/shlomi-noach/dev/go/src/github.com/github/gh-ost/vendor/github.com/siddontang/go-mysql/replication/binlogsyncer.go:488 +0x66\r\npanic(0x76ed80, 0xc8200100f0)\r\n        /usr/local/Cellar/go/1.6.2/libexec/src/runtime/panic.go:443 +0x4e9\r\ngithub.com/github/gh-ost/vendor/github.com/siddontang/go-mysql/replication.(*RowsEvent).decodeValue(0xc8203fc6e0, 0xc820408654, 0x3, 0x5ac, 0x7, 0x0, 0x0, 0x4, 0x0, 0x0)\r\n        /Users/shlomi-noach/dev/go/src/github.com/github/gh-ost/vendor/github.com/siddontang/go-mysql/replication/row_event.go:381 +0x988\r\ngithub.com/github/gh-ost/vendor/github.com/siddontang/go-mysql/replication.(*RowsEvent).decodeRows(0xc8203fc6e0, 0xc820408646, 0x1\r\n2016-08-23 03:28:36 INFO Reconnecting... Will resume at mysql-bin.004434:525296783\r\n2016-08-23 03:28:36 INFO Registering replica at host\r\n2016-08-23 03:28:36 INFO Connecting binlog streamer at mysql-bin.004434:4\r\n2016-08-23 03:28:36 INFO rotate to next log name: mysql-bin.004434\r\n2016-08-23 03:28:36 DEBUG Skipping handled query at mysql-bin.004434:515\r\n2016-08-23 03:28:36 DEBUG Skipping handled query at mysql-bin.004434:991\r\n2016-08-23 03:28:36 DEBUG Skipping handled query at mysql-bin.004434:1696\r\n2016-08-23 03:28:36 DEBUG Skipping handled query at mysql-bin.004434:2153\r\n2016-08-23 03:28:36 DEBUG Skipping handled query at mysql-bin.004434:2643\r\n2016-08-23 03:28:36 DEBUG Skipping handled query at mysql-bin.004434:3465\r\n2016-08-23 03:28:36 DEBUG Skipping handled query at mysql-bin.004434:4113\r\n2016-08-23 03:28:36 INFO StreamEvents encountered unexpected error: Err: runtime error: index out of range\r\n```"}}
{"actor":{"display_login":"NOmri"}}