Skip to content

Commit

Permalink
WL#14207, Replace language in APIs and source code/docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
soklakov committed Sep 8, 2020
1 parent a150675 commit af8cf8a
Show file tree
Hide file tree
Showing 38 changed files with 2,218 additions and 1,249 deletions.
2 changes: 2 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

Version 8.0.23

- WL#14207, Replace language in APIs and source code/docs.

Version 8.0.22

- Fix for Bug#98667 (31711961), "All pipe instances are busy" exception on multiple connections to named Pipe.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@
* An enumeration that identifies the type of the view intended for getting hosts lists for multi-host connections.
*/
public enum HostsListView {
ALL, MASTERS, SLAVES;
ALL, SOURCES, REPLICAS;
}
24 changes: 12 additions & 12 deletions src/main/core-api/java/com/mysql/cj/conf/PropertyDefinitions.java
Original file line number Diff line number Diff line change
Expand Up @@ -522,14 +522,14 @@ public enum DatabaseTerm {
//
// CATEGORY_HA
//
new BooleanPropertyDefinition(PropertyKey.allowMasterDownConnections, DEFAULT_VALUE_FALSE, RUNTIME_MODIFIABLE,
Messages.getString("ConnectionProperties.allowMasterDownConnections"), "5.1.27", CATEGORY_HA, Integer.MAX_VALUE),
new BooleanPropertyDefinition(PropertyKey.allowSourceDownConnections, DEFAULT_VALUE_FALSE, RUNTIME_MODIFIABLE,
Messages.getString("ConnectionProperties.allowSourceDownConnections"), "5.1.27", CATEGORY_HA, Integer.MAX_VALUE),

new BooleanPropertyDefinition(PropertyKey.allowSlaveDownConnections, DEFAULT_VALUE_FALSE, RUNTIME_MODIFIABLE,
Messages.getString("ConnectionProperties.allowSlaveDownConnections"), "6.0.2", CATEGORY_HA, Integer.MAX_VALUE),
new BooleanPropertyDefinition(PropertyKey.allowReplicaDownConnections, DEFAULT_VALUE_FALSE, RUNTIME_MODIFIABLE,
Messages.getString("ConnectionProperties.allowReplicaDownConnections"), "6.0.2", CATEGORY_HA, Integer.MAX_VALUE),

new BooleanPropertyDefinition(PropertyKey.readFromMasterWhenNoSlaves, DEFAULT_VALUE_FALSE, RUNTIME_MODIFIABLE,
Messages.getString("ConnectionProperties.readFromMasterWhenNoSlaves"), "6.0.2", CATEGORY_HA, Integer.MAX_VALUE),
new BooleanPropertyDefinition(PropertyKey.readFromSourceWhenNoReplicas, DEFAULT_VALUE_FALSE, RUNTIME_MODIFIABLE,
Messages.getString("ConnectionProperties.readFromSourceWhenNoReplicas"), "6.0.2", CATEGORY_HA, Integer.MAX_VALUE),

new BooleanPropertyDefinition(PropertyKey.autoReconnect, DEFAULT_VALUE_FALSE, RUNTIME_MODIFIABLE,
Messages.getString("ConnectionProperties.autoReconnect"), "1.1", CATEGORY_HA, 0),
Expand All @@ -546,8 +546,8 @@ public enum DatabaseTerm {
new StringPropertyDefinition(PropertyKey.ha_loadBalanceStrategy, "random", RUNTIME_MODIFIABLE,
Messages.getString("ConnectionProperties.loadBalanceStrategy"), "5.0.6", CATEGORY_HA, Integer.MIN_VALUE),

new IntegerPropertyDefinition(PropertyKey.loadBalanceBlacklistTimeout, 0, RUNTIME_MODIFIABLE,
Messages.getString("ConnectionProperties.loadBalanceBlacklistTimeout"), "5.1.0", CATEGORY_HA, Integer.MIN_VALUE, 0, Integer.MAX_VALUE),
new IntegerPropertyDefinition(PropertyKey.loadBalanceBlocklistTimeout, 0, RUNTIME_MODIFIABLE,
Messages.getString("ConnectionProperties.loadBalanceBlocklistTimeout"), "5.1.0", CATEGORY_HA, Integer.MIN_VALUE, 0, Integer.MAX_VALUE),

new IntegerPropertyDefinition(PropertyKey.loadBalancePingTimeout, 0, RUNTIME_MODIFIABLE,
Messages.getString("ConnectionProperties.loadBalancePingTimeout"), "5.1.13", CATEGORY_HA, Integer.MIN_VALUE, 0, Integer.MAX_VALUE),
Expand Down Expand Up @@ -583,8 +583,8 @@ public enum DatabaseTerm {
new BooleanPropertyDefinition(PropertyKey.pinGlobalTxToPhysicalConnection, DEFAULT_VALUE_FALSE, RUNTIME_MODIFIABLE,
Messages.getString("ConnectionProperties.pinGlobalTxToPhysicalConnection"), "5.0.1", CATEGORY_HA, Integer.MIN_VALUE),

new IntegerPropertyDefinition(PropertyKey.queriesBeforeRetryMaster, 50, RUNTIME_MODIFIABLE,
Messages.getString("ConnectionProperties.queriesBeforeRetryMaster"), "3.0.2", CATEGORY_HA, 7, 0, Integer.MAX_VALUE),
new IntegerPropertyDefinition(PropertyKey.queriesBeforeRetrySource, 50, RUNTIME_MODIFIABLE,
Messages.getString("ConnectionProperties.queriesBeforeRetrySource"), "3.0.2", CATEGORY_HA, 7, 0, Integer.MAX_VALUE),

new BooleanPropertyDefinition(PropertyKey.reconnectAtTxEnd, DEFAULT_VALUE_FALSE, RUNTIME_MODIFIABLE,
Messages.getString("ConnectionProperties.reconnectAtTxEnd"), "3.0.10", CATEGORY_HA, 4),
Expand All @@ -595,8 +595,8 @@ public enum DatabaseTerm {
new StringPropertyDefinition(PropertyKey.resourceId, DEFAULT_VALUE_NULL_STRING, RUNTIME_MODIFIABLE,
Messages.getString("ConnectionProperties.resourceId"), "5.0.1", CATEGORY_HA, Integer.MIN_VALUE),

new IntegerPropertyDefinition(PropertyKey.secondsBeforeRetryMaster, 30, RUNTIME_MODIFIABLE,
Messages.getString("ConnectionProperties.secondsBeforeRetryMaster"), "3.0.2", CATEGORY_HA, 8, 0, Integer.MAX_VALUE),
new IntegerPropertyDefinition(PropertyKey.secondsBeforeRetrySource, 30, RUNTIME_MODIFIABLE,
Messages.getString("ConnectionProperties.secondsBeforeRetrySource"), "3.0.2", CATEGORY_HA, 8, 0, Integer.MAX_VALUE),

new IntegerPropertyDefinition(PropertyKey.selfDestructOnPingSecondsLifetime, 0, RUNTIME_MODIFIABLE,
Messages.getString("ConnectionProperties.selfDestructOnPingSecondsLifetime"), "5.1.6", CATEGORY_HA, Integer.MAX_VALUE, 0,
Expand Down
14 changes: 7 additions & 7 deletions src/main/core-api/java/com/mysql/cj/conf/PropertyKey.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public enum PropertyKey {
PROTOCOL("protocol", false),
/** The name pipes path to use when "protocol=pipe'. */
PATH("path", "namedPipePath", false),
/** The server type in a replication setup. Possible values: "master" and "slave". */
/** The server type in a replication setup. Possible values: "source" and "replica". */
TYPE("type", false),
/** The address value ("host:port") from the properties instance passed to the driver. */
ADDRESS("address", false),
Expand All @@ -62,11 +62,11 @@ public enum PropertyKey {

allowLoadLocalInfile("allowLoadLocalInfile", true), //
allowLoadLocalInfileInPath("allowLoadLocalInfileInPath", true), //
allowMasterDownConnections("allowMasterDownConnections", true), //
allowSourceDownConnections("allowSourceDownConnections", "allowMasterDownConnections", true), //
allowMultiQueries("allowMultiQueries", true), //
allowNanAndInf("allowNanAndInf", true), //
allowPublicKeyRetrieval("allowPublicKeyRetrieval", true), //
allowSlaveDownConnections("allowSlaveDownConnections", true), //
allowReplicaDownConnections("allowReplicaDownConnections", "allowSlaveDownConnections", true), //
allowUrlInLocalInfile("allowUrlInLocalInfile", true), //
alwaysSendSetIsolation("alwaysSendSetIsolation", true), //
authenticationPlugins("authenticationPlugins", true), //
Expand Down Expand Up @@ -140,7 +140,7 @@ public enum PropertyKey {
largeRowSizeThreshold("largeRowSizeThreshold", true), //
loadBalanceAutoCommitStatementRegex("loadBalanceAutoCommitStatementRegex", true), //
loadBalanceAutoCommitStatementThreshold("loadBalanceAutoCommitStatementThreshold", true), //
loadBalanceBlacklistTimeout("loadBalanceBlacklistTimeout", true), //
loadBalanceBlocklistTimeout("loadBalanceBlocklistTimeout", "loadBalanceBlacklistTimeout", true), //
loadBalanceConnectionGroup("loadBalanceConnectionGroup", true), //
loadBalanceExceptionChecker("loadBalanceExceptionChecker", true), //
loadBalanceHostRemovalGracePeriod("loadBalanceHostRemovalGracePeriod", true), //
Expand Down Expand Up @@ -178,10 +178,10 @@ public enum PropertyKey {
profilerEventHandler("profilerEventHandler", true), //
profileSQL("profileSQL", true), //
propertiesTransform("propertiesTransform", true), //
queriesBeforeRetryMaster("queriesBeforeRetryMaster", true), //
queriesBeforeRetrySource("queriesBeforeRetrySource", "queriesBeforeRetryMaster", true), //
queryInterceptors("queryInterceptors", true), //
queryTimeoutKillsConnection("queryTimeoutKillsConnection", true), //
readFromMasterWhenNoSlaves("readFromMasterWhenNoSlaves", true), //
readFromSourceWhenNoReplicas("readFromSourceWhenNoReplicas", "readFromMasterWhenNoSlaves", true), //
readOnlyPropagatesToServer("readOnlyPropagatesToServer", true), //
reconnectAtTxEnd("reconnectAtTxEnd", true), //
replicationConnectionGroup("replicationConnectionGroup", true), //
Expand All @@ -192,7 +192,7 @@ public enum PropertyKey {
retriesAllDown("retriesAllDown", true), //
rewriteBatchedStatements("rewriteBatchedStatements", true), //
rollbackOnPooledClose("rollbackOnPooledClose", true), //
secondsBeforeRetryMaster("secondsBeforeRetryMaster", true), //
secondsBeforeRetrySource("secondsBeforeRetrySource", "secondsBeforeRetryMaster", true), //
selfDestructOnPingMaxOperations("selfDestructOnPingMaxOperations", true), //
selfDestructOnPingSecondsLifetime("selfDestructOnPingSecondsLifetime", true), //
sendFractionalSeconds("sendFractionalSeconds", true), //
Expand Down
Loading

0 comments on commit af8cf8a

Please sign in to comment.