Commit Graph

1407 Commits

Author SHA1 Message Date
Shlomi Noach
f0ed7aeb0b Always use NO_AUTO_VALUE_ON_ZERO 2019-03-24 11:32:42 +02:00
Shlomi Noach
4d7370529b Always use NO_AUTO_VALUE_ON_ZERO 2019-03-24 11:32:37 +02:00
Shlomi Noach
d6c650837f
Merge pull request #712 from babinomec/skip-strict-mode
add --skip-strict-mode option
2019-03-24 11:13:59 +02:00
Shlomi Noach
7ae32f7184
Merge branch 'master' into skip-strict-mode 2019-03-17 23:49:13 -07:00
Shlomi Noach
2c0aa36251
Merge pull request #695 from github/named-panic
Adding --force-named-panic option
2019-03-11 17:54:02 +02:00
Shlomi Noach
766040d83f
Merge branch 'master' into named-panic 2019-03-06 12:47:06 +02:00
Shlomi Noach
0e3685773a
Merge pull request #716 from RafeKettler/rafe/ssl-crt-key
Improve SSL support
2019-03-06 08:38:11 +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
a8fae9818d v1.0.48 2019-02-14 12:07:25 +02:00
Shlomi Noach
8e564debeb
Merge pull request #710 from github/deb-maintainer-email
Adding maintainer email in DEB package
2019-02-14 12:06:18 +02:00
Shlomi Noach
b82fc45221 Adding maintainer email in DEB package 2019-02-12 08:01:47 +02:00
Shlomi Noach
4ff5d6a055
Merge pull request #705 from brandonbodnar-wk/add-tls-support
Initial SSL Connection Support
2019-02-10 15:30:50 +02:00
Shlomi Noach
09ef7f4d24
Merge branch 'master' into add-tls-support 2019-02-10 11:59:27 +02:00
Shlomi Noach
909ef0e222
Merge pull request #707 from github/tests-updates
minor updates to test
2019-02-10 11:59:02 +02:00
Shlomi Noach
1327e3042a
Merge branch 'master' into tests-updates 2019-02-10 11:27:44 +02:00
Shlomi Noach
9da2e21e03
Merge branch 'master' into add-tls-support 2019-02-10 11:27:36 +02:00
Shlomi Noach
b12ac7837f
Merge pull request #703 from github/hints-owner-token
added: --hooks-hint-owner, --hooks-hint-token
2019-02-10 11:27:17 +02:00
Shlomi Noach
c37ea5dea0
Merge branch 'master' into tests-updates 2019-02-10 11:24:19 +02:00
Brandon Bodnar
1543098891 Document ssl-related command line flags. 2019-02-05 08:02:47 -06: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
79ddcecb1f
Merge pull request #696 from wcurrie/patch-1
Add Why Is "Connect to Replica" mode preferred?
2019-01-28 08:28:48 +02:00
Shlomi Noach
7ffcca0a2a
Merge branch 'master' into patch-1 2019-01-28 08:28:09 +02:00
Shlomi Noach
0d773f7b3d
Merge pull request #701 from github/gh-ost/patch-1
inspect: remove redundant join conditions
2019-01-28 08:26:34 +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
Shlomi Noach
e48844de0b
Merge pull request #578 from MOON-CLJ/minor_changes
minor changes and typo correction
2019-01-23 08:13:04 +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
Will Currie
5eec741327
Add Why Is "Connect to Replica" mode preferred? 2019-01-16 06:28:05 +11:00
Shlomi Noach
6c5805d844 documenting new flag 2019-01-14 13:32:43 +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
d5c374a7c9
Merge pull request #684 from github/test-decimal
Fixed DECIMAL datatype
2019-01-13 13:05:48 +02:00
Shlomi Noach
dd41d9a4b1 Testing nullable int 2019-01-03 11:18:07 +02:00
Shlomi Noach
7e0bdbe72a old timestamp, old datetime 2019-01-01 12:28:34 +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
f25d0b1a3c applying datetime patch 2019-01-01 11:02:27 +02:00
Shlomi Noach
14e396ed73 updated go-mysql 2019-01-01 10:58:12 +02:00