Tungsten Replicator 7.1.0
Behavior Changes (2)
The following changes may affect existing scripts and integration tools. Any scripts or environment which make use of these tools should check and update for the new configuration:
Command-line Tools (1)
- The
tpm copy-keyscommand has been renamed totpm copyand a new command has been createdtpm cert copywith the same functionality.Issue: CT-2186
Backup and Restore (1)
- When performing a provision via
rsync,tprovisionwill now sleep for 2 seconds after locking tables to make sure all transactions have finished writing to disk.Issue: CT-2169
Improvements, new features and functionality (16)
Installation and Deployment (2)
- Added tpm flag
deploy-systemdas a more meaningful alias toinstallIssue: CT-2152 - Running
tpm uninstallwill now save all of the Tungsten database tracking schemas for later use. There is also a newtpm keepcommand, which allows the tracking schemas to be saved to disk at any time in multiple formats (.json, .dmp and .cmd)Issue: CT-2131
Command-line Tools (5)
- The
tungsten_send_diagcommand has a new argument--allwhich will tell thetpm diagcommand to gather all hosts with-a, and this replaces the previous method for gathering all hosts fortungsten_send_diag,--args '--all'Issue: CT-2150 - The
tpm diagcommand now supports the--skipsudoand--nosudoarguments to prevent operations from using the sudo command. Using this option may result intpm diagskipping/failing various gathers due to a lack of access.Issue: CT-2146 The
tpm reportcommand now displays the security-specific information for each channel shown, including file paths and tpm options. Security information and tpm options for each channel will also be shown when--extrais used with--list.Also added the
tpm ask certscommand with expiry and sha2566 info per alias, along with thetpm ask certtpmandtpm ask certlocationscommands with reference information about thesecurity.propertiesfile.Added help text for
tpm ask --longwhich shows the key/variable name along with the value. Thetmonitor -t testcommand now shows only the actual Tungsten-specific metrics lines.Added
tmonitor -T testto show metrics help and headers along with actual tungsten_* metrics linesIssue: CT-2088A new command
tpm certhas been added to aid in the creation, rotation and management of certificates for all areas of Tungsten.Known limitations: Percona 5.6, and all versions of MariaDB do not provide the
mysql_ssl_rsa_setupcommand required bytpm cert gen mysqlcerts.Issue: CT-2085- Added a new option
--preserve-schemato thetpm uninstallcommand in order to leave the tracking schema in the database.Issue: CT-561
Backup and Restore (3)
- The
tprovisionscript will sleep for 5 seconds by default when using thersyncmethod after issuing a flush logs. The sleep value is configurable as a command line option--flush-after-sleep.Issue: CT-2101 tungsten_get_mysql_datadircan now return additional mysql database directories.Issue: CT-1985- MySQL clone can now be used as an option for recovery using
tprovision.Issue: CT-1417
PostgreSQL Replication (2)
- Added a new
ddlscantemplate,ddl-mysql-postgres-staging.vm, to allow generation of staging table DDL for the PostgreSQL batch applier.Issue: CT-2136 - It is now possible to configure the PostgreSQL applier in Batch mode.Issue: CT-2031
Amazon S3 Replication (1)
- A new applier is now available that replicates to csv files on S3 storage. For more information, see "Deploying the Amazon S3 Applier"Issue: CT-606
Filters (1)
- A new shardbyrules filter has been added that will allow rule-based sharding of replication based on user configurable rules that would allow sharding at table level, whereas previously sharding would only be handled at schema level.Issue: CT-2164
Monitoring (2)
- Prometheus libraries have been upgraded from version 0.8.1 to 0.16.0Issue: CT-2166
- Prometheus exporters now provide the ssl cert expiration date as an epoch value in addition to the label.Issue: CT-2099
Bug Fixes (12)
Installation and Deployment (1)
- Fixed RPM package script to run
tpm installinstead oftpm updatewhen installing the rpmIssue: CT-2130
Command-line Tools (2)
- The
tpmcommand now searches more places to locate shell commands that are called, especially useful when$CONTINUENT_ROOT/share/env.shis not sourced.Issue: CT-2182 tpm uninstallwould sometimes print"ERROR >> db1 >> undefined method '+' for nil:NilClass"Issue: CT-2104
Backup and Restore (5)
- Using
mysqldumpfortprovisioncould incorrectly create a new SSL key pair/Issue: CT-2142 tprovisionwill now timeout if ssh is blocked from the target to the source host.Issue: CT-2139tprovisionwould accept bogus options and not produce an error. This has now been fixed.Issue: CT-2045tprovisionwill now print an error message and exit if the MySQL datadir does not exist.Issue: CT-1901tprovisionwould produce errors if the local hostname were different from the hostname used in the Tungsten install (short vs long names).Issue: CT-1363
Core Replicator (2)
- Fixed an issue while processing geometry data with SRID 4326 that would swap longitude and latitude. This applies only to MySQL 8, as prior MySQL versions do not allow specifying the order when applying a WKB (Well-known binary) to MySQL.Issue: CT-2172
Improved a query that is run by Tungsten when fetching tables metadata (column names, datatypes, etc). While it is not generally needed, the unoptimized query can run badly (especially) against old mysql versions with a lot of databases / tables. For now, the new optimized query is not used by default, but this could change in some future version.
This can be enabled by using the following property :
property=replicator.datasource.global.connectionSpec.usingOptimizedMetadataQuery=trueIssue: CT-2077
PostgreSQL Replication (2)
- Fixed a
NullPointerExceptionerror occurring at startup when applying to PostgreSQL.Issue: CT-2021 - Fixes an issue with the
ddl-mysql-postgres.vmddlscan template that caused varchar datatype lengths to be parsed incorrectly.Issue: CT-2019