Skip to content
Permalink
master

Commits on Jul 27, 2021

  1. typo (#1011)

    "or and" => "or an"
    eddroid committed Jul 27, 2021

Commits on Jul 19, 2021

  1. Use github.com/go-sql-driver 1.6.0 (#1006)

    * Replace deprecated go-mysql library
    
    * Use github.com/go-sql-driver 1.6.0
    
    * go mod vendor
    
    * go mod vendor again
    timvaillancourt committed Jul 19, 2021

Commits on Jul 15, 2021

Commits on Jul 14, 2021

  1. Check RowsAffected when applying DML events to get more accurate stat…

    …istics (#844)
    
    * Check RowsAffected when applying DML events to get more accurate statistics
    
    Addresses #600.
    
    When applying a DML event, check the RowsAffected on the `Result`
    struct. Since all DML event queries are point queries, this will only
    ever be 0 or 1. The applier then takes this value and multiplies by
    the `rowsDelta` of the event, resulting in a properly-signed, accurate
    row delta to use in the statistics.
    
    If an error occurs here, log it, but do not surface this as an
    actual error .. simply assume the DML affected a row and move on. It
    will be inaccurate, but this is already the case.
    
    * Fix import
    
    * update wording to warning log message
    
    Co-authored-by: Tim Vaillancourt <timvaillancourt@github.com>
    
    Co-authored-by: Tim Vaillancourt <timvaillancourt@github.com>
    ajm188 and timvaillancourt committed Jul 14, 2021

Commits on Jul 13, 2021

Commits on Jun 24, 2021

  1. Add go mod (#935)

    * Add a go.mod file
    
    * run go mod vendor again
    
    * Move to a well-supported ini file reader
    
    * Remove GO111MODULE=off
    
    * Use go 1.16
    
    * Rename github.com/outbrain/golib -> github.com/openark/golib
    
    * Remove *.go-e files
    
    * Fix for `strconv.ParseInt: parsing "": invalid syntax` error
    
    * Add test for '[osc]' section
    
    Co-authored-by: Nate Wernimont <nate.wernimont@workiva.com>
    timvaillancourt and natewernimont-wk committed Jun 24, 2021

Commits on Jun 17, 2021

  1. v1.1.2 (#990)

    timvaillancourt committed Jun 17, 2021
  2. Set the ServerName for TLS configuration (#988)

    When TLS hostname validation used for the MySQL connection, the
    ServerName property needs to be set so that it knows which name to
    validate on the certificate.
    
    Without this option and with InsecureSkipVerify set to false, validation
    will error here with a fatal error otherwise:
    
    ```
    FATAL tls: either ServerName or InsecureSkipVerify must be specified in the tls.Config
    ```
    dbussink committed Jun 17, 2021

Commits on Jun 10, 2021

  1. Enum to varchar (#963)

    * v1.1.0
    
    * WIP: copying AUTO_INCREMENT value to ghost table
    Initial commit: towards setting up a test suite
    
    Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
    
    * greping for 'expect_table_structure' content
    
    * Adding simple test for 'expect_table_structure' scenario
    
    * adding tests for AUTO_INCREMENT value after row deletes. Should initially fail
    
    * clear event beforehand
    
    * parsing AUTO_INCREMENT from alter query, reading AUTO_INCREMENT from original table, applying AUTO_INCREMENT value onto ghost table if applicable and user has not specified AUTO_INCREMENT in alter statement
    
    * support GetUint64
    
    Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
    
    * minor update to test
    
    Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
    
    * adding test for user defined AUTO_INCREMENT statement
    
    * Generated column as part of UNIQUE (or PRIMARY) KEY
    
    Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
    
    * skip analysis of generated column data type in unique key
    
    Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
    
    * All MySQL DBs limited to max 3 concurrent/idle connections
    
    Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
    
    * hooks: reporting GH_OST_ETA_SECONDS. ETA stored as part of migration context
    
    Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
    
    * GH_OST_ETA_NANOSECONDS
    
    Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
    
    * N/A denoted by negative value
    
    Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
    
    * ETAUnknown constant
    
    Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
    
    * Convering enum to varchar
    
    Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
    
    * test: not null
    
    Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
    
    * first attempt at setting enum-to-string right
    
    Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
    
    * fix insert query
    
    Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
    
    * store enum values, use when populating
    
    Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
    
    * apply EnumValues to mapped column
    
    Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
    
    * fix compilation error
    
    Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
    
    * gofmt
    
    Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
    shlomi-noach committed Jun 10, 2021

Commits on May 31, 2021

  1. hooks: reporting GH_OST_ETA_SECONDS. ETA as part of migration context (

    …#936)
    
    * v1.1.0
    
    * WIP: copying AUTO_INCREMENT value to ghost table
    Initial commit: towards setting up a test suite
    
    Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
    
    * greping for 'expect_table_structure' content
    
    * Adding simple test for 'expect_table_structure' scenario
    
    * adding tests for AUTO_INCREMENT value after row deletes. Should initially fail
    
    * clear event beforehand
    
    * parsing AUTO_INCREMENT from alter query, reading AUTO_INCREMENT from original table, applying AUTO_INCREMENT value onto ghost table if applicable and user has not specified AUTO_INCREMENT in alter statement
    
    * support GetUint64
    
    Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
    
    * minor update to test
    
    Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
    
    * adding test for user defined AUTO_INCREMENT statement
    
    * Generated column as part of UNIQUE (or PRIMARY) KEY
    
    Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
    
    * skip analysis of generated column data type in unique key
    
    Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
    
    * All MySQL DBs limited to max 3 concurrent/idle connections
    
    Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
    
    * hooks: reporting GH_OST_ETA_SECONDS. ETA stored as part of migration context
    
    Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
    
    * GH_OST_ETA_NANOSECONDS
    
    Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
    
    * N/A denoted by negative value
    
    Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
    
    * ETAUnknown constant
    
    Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
    shlomi-noach committed May 31, 2021

Commits on May 27, 2021

  1. All MySQL DBs limited to max 3 concurrent/idle connections #15 (#931)

    * v1.1.0
    
    * WIP: copying AUTO_INCREMENT value to ghost table
    Initial commit: towards setting up a test suite
    
    Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
    
    * greping for 'expect_table_structure' content
    
    * Adding simple test for 'expect_table_structure' scenario
    
    * adding tests for AUTO_INCREMENT value after row deletes. Should initially fail
    
    * clear event beforehand
    
    * parsing AUTO_INCREMENT from alter query, reading AUTO_INCREMENT from original table, applying AUTO_INCREMENT value onto ghost table if applicable and user has not specified AUTO_INCREMENT in alter statement
    
    * support GetUint64
    
    Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
    
    * minor update to test
    
    Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
    
    * adding test for user defined AUTO_INCREMENT statement
    
    * Generated column as part of UNIQUE (or PRIMARY) KEY
    
    Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
    
    * skip analysis of generated column data type in unique key
    
    Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
    
    * All MySQL DBs limited to max 3 concurrent/idle connections
    
    Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
    shlomi-noach committed May 27, 2021

Commits on May 25, 2021

  1. Add GO111MODULE=off to build.sh, use Golang 1.16 (#966)

    * Add GO111MODULE=off to build.sh
    
    * Use golang 1.16
    
    * Update go version in README.md
    
    * Add missing GO111MODULE=off
    
    * Add missing GO111MODULE=off again
    
    * Use go1.16.3 explicitly
    
    * Use 1.16 for CI test
    
    * Update min go version
    
    * Use go 1.16.4
    timvaillancourt committed May 25, 2021

Commits on May 24, 2021

  1. Generated column as part of UNIQUE (or PRIMARY) KEY (#919)

    * v1.1.0
    
    * WIP: copying AUTO_INCREMENT value to ghost table
    Initial commit: towards setting up a test suite
    
    Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
    
    * greping for 'expect_table_structure' content
    
    * Adding simple test for 'expect_table_structure' scenario
    
    * adding tests for AUTO_INCREMENT value after row deletes. Should initially fail
    
    * clear event beforehand
    
    * parsing AUTO_INCREMENT from alter query, reading AUTO_INCREMENT from original table, applying AUTO_INCREMENT value onto ghost table if applicable and user has not specified AUTO_INCREMENT in alter statement
    
    * support GetUint64
    
    Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
    
    * minor update to test
    
    Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
    
    * adding test for user defined AUTO_INCREMENT statement
    
    * Generated column as part of UNIQUE (or PRIMARY) KEY
    
    Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
    
    * skip analysis of generated column data type in unique key
    
    Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
    shlomi-noach committed May 24, 2021

Commits on May 19, 2021

Commits on May 14, 2021

  1. Copy auto increment (#967)

    * v1.1.0
    
    * WIP: copying AUTO_INCREMENT value to ghost table
    Initial commit: towards setting up a test suite
    
    Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
    
    * greping for 'expect_table_structure' content
    
    * Adding simple test for 'expect_table_structure' scenario
    
    * adding tests for AUTO_INCREMENT value after row deletes. Should initially fail
    
    * clear event beforehand
    
    * parsing AUTO_INCREMENT from alter query, reading AUTO_INCREMENT from original table, applying AUTO_INCREMENT value onto ghost table if applicable and user has not specified AUTO_INCREMENT in alter statement
    
    * support GetUint64
    
    Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
    
    * minor update to test
    
    Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
    
    * adding test for user defined AUTO_INCREMENT statement
    
    Co-authored-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
    timvaillancourt and shlomi-noach committed May 14, 2021

Commits on May 7, 2021

  1. Merge pull request #968 from timvaillancourt/parallel-ci-tests

    Use matrix build for replica test CI
    timvaillancourt committed May 7, 2021
  2. Merge pull request #819 from github/tar-xz-dbdeployer-upgrade

    replication tests CI: switch to .tar.xz binaries, upgrade dbdeployer
    timvaillancourt committed May 7, 2021
  3. Fix var name

    timvaillancourt committed May 7, 2021
  4. Use right var name

    timvaillancourt committed May 7, 2021
  5. Fix git checkout

    timvaillancourt committed May 7, 2021
  6. Use HEAD

    timvaillancourt committed May 7, 2021
  7. Merge pull request #921 from ccoffey/cathal/safer_cut_over

    Cut-over should wait for heartbeat lag to be low enough to succeed
    timvaillancourt committed May 7, 2021
Older