Tim Vaillancourt
157dba920c
Add mysql port and version
2021-04-03 23:24:29 +02:00
Tim Vaillancourt
23a421cef7
Add 'Hostname:' prefix to output
2021-04-03 22:34:20 +02:00
Tim Vaillancourt
5e9b913035
Merge branch 'master' into add-server-cmd-hosts
2021-04-02 16:59:56 +02:00
Tim Vaillancourt
123b46f9bb
Split into 'applier' and 'inspector' commands
2021-04-02 16:57:13 +02:00
Tim Vaillancourt
cffb523bad
Fix help typo
2021-04-02 02:02:08 +02:00
Tim Vaillancourt
7ea47cbfb5
Fix order
2021-04-02 01:58:59 +02:00
Tim Vaillancourt
094d11d722
Use a single line
2021-04-02 01:58:06 +02:00
Tim Vaillancourt
2fb524f43a
Adds 'hosts' command to server
2021-04-02 01:50:11 +02:00
Rashiq
d3bf3cde4d
Merge branch 'master' into cathal/safer_cut_over
2021-03-08 20:59:14 +01:00
Rashiq
db513872c1
Merge branch 'master' into iss909
2021-03-08 18:20:03 +01:00
thsun
40bc5aedf2
enhance processing efficiency
2021-02-26 14:23:24 +08:00
thsun
960d801276
canonical code
2021-02-24 17:18:21 +08:00
Tim Vaillancourt
048d5838db
Fix whitespace after merge-conflict fix
2021-02-08 13:37:39 +01:00
Tim Vaillancourt
72ccd0b0d0
Fix whitespace after merge-conflict fix
2021-02-08 13:36:59 +01:00
Tim Vaillancourt
edbc8d6733
Merge branch 'master' into improve-conn-log
2021-02-08 13:35:30 +01:00
Cathal Coffey
3135a25c1f
HeartbeatLag must be < than --max-lag-millis and --cut-over-lock-timeout-seconds to continue
2021-02-07 14:31:40 +00:00
Cathal Coffey
503b7b0d6c
Consolidate the two sleepWhileTrue loops
2021-02-07 13:52:59 +00:00
Cathal Coffey
d5c2414893
Move 'heartbeat is too high' back to Debug logs again
2021-02-05 10:12:54 +00:00
Cathal Coffey
48ce0873de
Store lastHeartbeatOnChangelogTime instead of CurrentHeartbeatLag
2021-02-03 10:03:45 +00:00
Cathal Coffey
4efd156759
Move 'heartbeat is too high' to Debug logs
2021-02-02 09:17:31 +00:00
Cathal Coffey
8a26c9ebf4
Don't cut-over until it is safe to do so
2021-02-01 10:14:05 +00:00
Cathal Coffey
a4218cd6f4
Progress should print HeartbeatLag
2021-01-31 18:27:34 +00:00
Cathal Coffey
8aee288fd7
Handle onChangelogHeartbeatEvent and update CurrentHeartbeatLag
2021-01-31 18:24:26 +00:00
Cathal Coffey
7207bc146a
Make it easier to handle different onChangelogEvents
2021-01-31 18:23:09 +00:00
thsun
2b5d5e0a11
gofmt
2021-01-14 14:51:14 +08:00
thsun
d0f0b95cf8
rm main
2021-01-13 17:21:21 +08:00
thsun
3665d666b9
fix iss909
2021-01-13 16:29:39 +08:00
Tim Vaillancourt
bf408b0d0e
Merge branch 'master' into master
2020-12-16 12:53:59 +01:00
Tim Vaillancourt
88e59dd2a3
Merge branch 'master' into master
2020-10-22 23:22:32 +02:00
Tim Vaillancourt
8c4cd10d79
Merge branch 'master' into ipv6
2020-10-22 11:39:46 +02:00
Tim Vaillancourt
0e2d33ad86
Merge in https://github.com/github/gh-ost/pull/755
2020-10-20 16:08:49 +02:00
Tim Vaillancourt
f268259f5e
Merge branch 'master' into handle_driver_timeout_error
2020-08-19 22:04:55 +02:00
Tim Vaillancourt
10724f08c5
Merge branch 'parse-alter-statement' of https://github.com/openark/gh-ost into parse-alter-statement
2020-08-19 21:39:36 +02:00
Tim Vaillancourt
28bbe67c6d
Merge branch 'master' into connection-timeout
2020-08-19 21:08:22 +02:00
Tim Vaillancourt
f334dbde5e
Merge pull request #810 from yaserazfar/check_unchecked_errors
...
Adds error checking for an err variable that was left unchecked
2020-08-14 17:03:10 +02:00
Tim Vaillancourt
4bbc8deb77
Fix tabs from merge conflict
2020-08-13 15:50:38 +02:00
Tim Vaillancourt
5b6da5b7f3
Merge branch 'master' into handle_driver_timeout_error
2020-08-13 15:49:34 +02:00
Shlomi Noach
ae4dd1867a
extra unit test checks
2020-07-29 15:06:13 +03:00
Shlomi Noach
731df3cd15
comments
2020-07-23 14:04:14 +03:00
Shlomi Noach
c9249f2b71
Updating and using AlterTableOptions
2020-07-23 11:38:05 +03:00
Shlomi Noach
f482356a94
Merge branch 'master' into parse-alter-statement
2020-07-22 12:36:59 +03:00
Shlomi Noach
6c7b4736e1
Support a complete ALTER TABLE statement in --alter
2020-07-22 12:33:02 +03:00
Justin Fudally
b02900ae06
Merge branch 'master' into logging-interface-contrib
2020-07-21 16:01:29 -05:00
Shuode Li
57955b968b
Merge branch 'master' into master
2020-05-06 00:15:57 -07:00
Andrew Mason
90ad7a061f
Handle the rest of rows.Err
cases
2020-04-21 12:50:23 -04:00
Andrew Mason
61de098072
Add a check to rows.Err after processing all rows
...
Closes #822 .
In https://github.com/go-sql-driver/mysql/issues/1075 , @acharis notes
that the way the go-sql driver is written, query timeout errors don't
get set in `rows.Err()` until _after_ a call to `rows.Next()` is made.
Because this kind of error means there will be no rows in the result
set, the `for rows.Next()` will never enter the for loop, so we must
check the value of `rows.Err()` after the loop, and surface the error up
appropriately.
2020-03-31 16:25:16 -04:00
Justin Fudally
2178b5947b
remove spammy error
2020-03-30 10:05:23 -05:00
Justin Fudally
5816ede7b3
add error message
2020-03-30 09:55:49 -05:00
Justin Fudally
7893f8e1c3
catch error in collectFunc
2020-03-30 09:53:10 -05:00
Justin Fudally
df60fa4204
add error logging
2020-03-25 16:06:17 -05:00
Justin Fudally
57cf5f3c90
add override to ignore http errors
2020-03-25 15:58:32 -05:00
Justin Fudally
46dabd338b
go fmt
2020-03-25 15:48:19 -05:00
Justin Fudally
d31f3aac0c
Add CLI flag for ignoring http errors
2020-03-25 15:47:56 -05:00
Justin Fudally
ca0b822a3d
Add comment
2020-03-25 15:41:23 -05:00
Justin Fudally
64083e4705
Throttle on no metrics/error
2020-03-25 15:40:09 -05:00
Justin Fudally
0b2702bf53
Throttle on no metrics/error
2020-03-25 14:12:00 -05:00
Shlomi Noach
97f2d71616
fix unit tests
2020-02-16 12:52:26 +02:00
Shlomi Noach
9f5edc923e
Support --mysql-timeout flag
2020-02-16 12:48:23 +02:00
Yaser Azfar
2eb141010b
adds error checking for an err variable that was left unchecked
2019-12-27 16:54:43 +13:00
Shuode Li
13b5f48ca5
Remove useless code
2019-12-17 04:03:51 +00:00
Shuode Li
ae762694fb
Support Azure Database for MySQL.
2019-12-17 03:47:14 +00:00
Shlomi Noach
a36d6bee94
Merge branch 'logging-interface-contrib' into master
2019-12-11 07:03:37 +02:00
Shlomi Noach
d0ce7c014e
truncate lag digits
2019-10-23 10:18:56 +03:00
Abeyu M
3ca5f89fa5
add migrationcontext to gomysql_reader
2019-10-08 13:49:15 -04:00
Abeyu M
f4676bf463
implement a logging interface
2019-10-07 11:10:36 -04:00
Shlomi Noach
21e7ec6b7c
lag: %+vs notation, e.g. 1s
2019-10-07 07:06:11 +03:00
Shlomi Noach
271c7274a3
refactor progressPct into migrationContext
2019-10-07 06:59:56 +03:00
Shlomi Noach
7869889988
context, status and hooks: progressPct and CurrentLag
2019-10-06 17:08:35 +03:00
Shlomi Noach
3175c2fe74
Merge branch 'master' into ggunson-panic-message
2019-08-13 08:39:43 +03:00
Gillian Gunson
3362c5d322
Changing panic message
2019-08-12 12:40:31 -07:00
Shlomi Noach
b881bff1e8
fixed linter issue
2019-08-11 15:06:03 +03:00
Shlomi Noach
f0ed7aeb0b
Always use NO_AUTO_VALUE_ON_ZERO
2019-03-24 11:32:42 +02:00
Shlomi Noach
7ae32f7184
Merge branch 'master' into skip-strict-mode
2019-03-17 23:49:13 -07:00
Shlomi Noach
766040d83f
Merge branch 'master' into named-panic
2019-03-06 12:47:06 +02:00
Shlomi Noach
7ead4c4a56
named throttle, no-throttle
2019-02-25 14:02:57 +02:00
Shlomi Noach
ff17d2f844
Merge branch 'master' into named-panic
2019-02-25 14:00:12 +02:00
Rafe Kettler
b4da7cfbfb
Improve SSL support
...
Related issue: https://github.com/github/gh-ost/issues/521
- Add --ssl-cert and --ssl-key options to specify SSL public/private
key files
- Allow combining --ssl-allow-insecure with other --ssl* flags.
`mysql.RegisterTLSConfig` allows combining the corresponding
parameters in the `tls.Config` it receives, so gh-ost should
allow this. I found being able to pass --ssl-allow-insecure along
with --ssl-ca, --ssl-cert, and --ssl-key useful in testing.
- Use the same TLS config everywhere. Since the CLI only supports
a single set of --ssl* configuration parameters, this should be
fine -- `mysql.RegisterTLSConfig` documentation indicates the
TLS config given will not be modified, so it can safely be used
in many goroutines provided we also do not modify it. The previous
implementation did not work when the TLS config was duplicated,
which happens when gh-ost walks up the replication chain trying
to find the master. This is because, when the config is duplicated,
we must call `RegisterTLSConfig` again with the new config. This
config is exactly the same, so it's easiest to side-step the issue
by registering the TLS config once and using it everywhere.
2019-02-22 10:33:19 -08:00
babinomec
7d5749b84a
add --skip-strict-mode option
2019-02-14 15:58:49 +01:00
Shlomi Noach
9da2e21e03
Merge branch 'master' into add-tls-support
2019-02-10 11:27:36 +02:00
Brandon Bodnar
5b0dfb009c
Wireup allowing insecure ssl
2019-02-04 16:21:25 -06:00
Matt Belisle
79df0d1c5d
Adding --ssl-insecure flag
2019-02-04 14:46:08 -06:00
Brandon Bodnar
5319157789
Expand usage statement to indicate setting applies to multiple hosts
2019-02-01 13:20:17 -06:00
Brandon Bodnar
f67ec15f2b
Handle returned error
2019-02-01 13:16:54 -06:00
Brandon Bodnar
c440112d44
Explain default setting for TLS param in DSN
2019-01-31 17:23:19 -06:00
Brandon Bodnar
dc599bb036
Remove unnecessary branching
2019-01-31 17:20:11 -06:00
Brandon Bodnar
4f9367e690
Fix casing for initialism
2019-01-31 17:00:13 -06:00
Brandon Bodnar
23617f287f
Add initial support for ssl encryption connections to database servers.
...
- Adding a command line option for users to enforce tls/ssl connections
for the applier, inspector, and binlog reader.
- The user can optionally request server certificate verification through
a command line option to specify the ca cert via a file path.
- Fixes an existing bug appending the timeout option to the singleton
applier connection.
2019-01-31 15:22:03 -06:00
Shlomi Noach
1671530300
Merge branch 'master' into hints-owner-token
2019-01-28 08:28:58 +02:00
Shlomi Noach
3161cd5823
added: --hooks-hint-owner, --hooks-hint-token
2019-01-24 13:06:20 +02:00
Shlomi Noach
93b88e262a
Auto-merged master into gh-ost/patch-1 on deployment
2019-01-23 08:13:55 +02:00
twotwotwo
afa108f8fa
inspect: remove redundant join conditions
...
The TABLE_SCHEMA and TABLE_NAME are already guaranteed to have the same value in COLUMNS and UNIQUES because of the WHEREs in each query. Dropping it from the ON clause makes it complete much faster.
On (at least) MySQL 5.6 installs with thousands of tables, this query completes in a few seconds without the additional join conditions, but takes more than a minute with it.
2019-01-22 12:26:55 -08:00
Shlomi Noach
809908cb1d
Merge branch 'master' into ipv6
2019-01-20 09:02:34 +02:00
Shlomi Noach
5f587c3262
Adding --force-named-panic option
2019-01-14 13:27:44 +02:00
Shlomi Noach
d32304520c
Merge branch 'master' into minor_changes
2019-01-14 10:45:27 +02:00
Shlomi Noach
7c17cee010
reverting some changes
2019-01-01 11:47:41 +02:00
Shlomi Noach
0be91ba0f2
trying something...
2019-01-01 11:39:43 +02:00
Shlomi Noach
255314927d
Updated go-mysql library, now with fix to decimal. May break datetime
2019-01-01 10:57:46 +02:00
Shlomi Noach
419794e16d
Merge branch 'master' into master
2018-12-25 07:20:47 +02:00
黄恒
29e3d48c36
Merge branch 'master' into master
2018-12-11 13:12:47 +08:00
Eduardo Nunes
5f15f8a539
Remove not needed call by grouping columnLists
...
There is no need to call `applyColumnTypes` more than once for the same
`databaseName` and `tableName`, it is just move the additional
`columnList` to the first call.
2018-11-01 14:43:57 +01:00