Skip to content

Commit 154750f

Browse files
committed
new error messages fix
1 parent 0b57ce6 commit 154750f

File tree

5 files changed

+32
-32
lines changed

5 files changed

+32
-32
lines changed

cloudsql-mysql-plugin/src/e2e-test/resources/errorMessage.properties

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
errorMessageInvalidSourceDatabase=Error occurred while trying to get schema from database.
1+
errorMessageInvalidSourceDatabase=SQL Error occurred, sqlState: '42000', errorCode: '1044', errorMessage: SQL Exception occurred: [Message='Access denied for user '
22
errorMessageInvalidImportQuery=Import Query select must contain the string '$CONDITIONS'. if Number of Splits is not set\
33
\ to 1. Include '$CONDITIONS' in the Import Query
44
errorMessageCloudMySqlInvalidReferenceName=Invalid reference name
55
errorMessageBlankUsername=Username is required when password is given.
6-
errorMessageBlankPassword=Error occurred while trying to get schema from database.Error message: 'Access denied for user
6+
errorMessageBlankPassword=SQL Error occurred, sqlState: '28000', errorCode: '1045', errorMessage: SQL Exception occurred: [Message='Access denied for user '
77
errorMessageInvalidFetchSize=Invalid fetch size. Fetch size must be a positive integer.
88
errorMessageBlankSplitBy=Split-By Field Name must be specified if Number of Splits is not set to 1. Specify the Split-by Field Name.
99
errorMessageInvalidNumberOfSplits=Invalid value for Number of Splits '0'. Must be at least 1. Specify a Number of Splits no less than 1.
@@ -17,9 +17,9 @@ validationSuccessMessage=No errors found.
1717
validationErrorMessage=COUNT ERROR found
1818
errorLogsMessageInvalidTableName=Spark program 'phase-1' failed with error: Stage 'CloudSQL MySQL' encountered : io.cdap.cdap.etl.api.validation.ValidationException: Errors were encountered during validation. \
1919
Table 'Table123' does not exist.. Please check the system logs for more details.
20-
errorLogsMessageInvalidCredentials =Spark program 'phase-1' failed with error: Stage 'CloudSQL MySQL' encountered : io.cdap.cdap.api.exception.ProgramFailureException: Error occurred while trying to get schema from database.Error message: 'Access denied for user 'testUser'
20+
errorLogsMessageInvalidCredentials=Spark program 'phase-1' failed with error: Stage 'CloudSQL MySQL' encountered : io.cdap.cdap.api.exception.ProgramFailureException: SQL Error occurred, sqlState: '28000', errorCode: '1045', errorMessage: SQL Exception occurred: [Message='Access denied for user 'testUser'
2121
errorLogsMessageInvalidBoundingQuery=Spark program 'phase-1' failed with error: Stage 'CloudSQL MySQL' encountered : java.io.IOException: You have an error in your SQL syntax; \
2222
check the manual that corresponds to your MySQL server version for the right syntax to use near 'table' at line 1. Please check the system logs for more details.
23-
errorMessageInvalidPassword=Error occurred while trying to get schema from database.Error message: 'Access denied for user
23+
errorMessageInvalidPassword=SQL Error occurred, sqlState: '28000', errorCode: '1045', errorMessage: SQL Exception occurred: [Message='Access denied for user '
2424
errorMessagePrivateConnectionName=Enter the internal IP address of the Compute Engine VM cloudsql proxy is running on, to connect to a private
25-
errorMessageWithBlankPassword=Error encountered while configuring the stage: 'Error occurred while trying to get schema from database.Error message: 'Access denied for user
25+
errorMessageWithBlankPassword=Error encountered while configuring the stage: 'SQL Error occurred, sqlState: '28000', errorCode: '1045', errorMessage: SQL Exception occurred: [Message='Access denied for user '

cloudsql-postgresql-plugin/src/e2e-test/resources/errorMessage.properties

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,19 @@ errorMessageInvalidNumberOfSplits=Invalid value for Number of Splits '0'. Must b
77
errorMessageNumberOfSplitNotNumber=Unable to create config for batchsource CloudSQLPostgreSQL 'numSplits' is invalid: Value of \
88
field class io.cdap.plugin.db.config.AbstractDBSpecificSourceConfig.numSplits is expected to be a number.
99
errorMessageInvalidFetchSize=Invalid fetch size. Fetch size must be a positive integer.
10-
errorMessageInvalidSourceDatabase=Error occurred while trying to get schema from database.Error message: 'FATAL: database "invalidDatabase" does not exist'.
10+
errorMessageInvalidSourceDatabase=SQL Error occurred, sqlState: '3D000', errorCode: '0', errorMessage: SQL Exception occurred: [Message='FATAL: database "invalidDatabase" does not exist', SQLState='3D000', ErrorCode='0'].
1111
errorMessageInvalidImportQuery=Import Query select must contain the string '$CONDITIONS'. if Number of Splits is not set\
1212
\ to 1. Include '$CONDITIONS' in the Import Query
1313
errorMessageBlankUsername=Username is required when password is given.
14-
errorMessageBlankPassword=Error occurred while trying to get schema from database.Error message: 'Something unusual has occurred to cause the driver to fail.
15-
errorMessageInvalidPassword=Error occurred while trying to get schema from database.Error message: 'FATAL: password authentication failed for user
14+
errorMessageBlankPassword=SQL Error occurred, sqlState: '99999', errorCode: '0', errorMessage: SQL Exception occurred: [Message='Something unusual has occurred to cause the driver to fail. Please report this exception.', SQLState='99999', ErrorCode='0'].
15+
errorMessageInvalidPassword=SQL Error occurred, sqlState: '28P01', errorCode: '0', errorMessage: SQL Exception occurred: [Message='FATAL: password authentication failed for user
1616
errorMessageInvalidSourceHost=SQL error while getting query schema: The connection attempt failed.
1717
errorMessageInvalidTableName=Table 'table' does not exist. Ensure table '"table"' is set correctly and that the
18-
errorMessageInvalidSinkDatabase=Error occurred while trying to get schema from database.Error message: 'FATAL: database "invalidDB" does not exist'. Error code: '0'. SQLState: '3D000''
18+
errorMessageInvalidSinkDatabase=Error encountered while configuring the stage: 'SQL Error occurred, sqlState: '3D000', errorCode: '0', errorMessage: SQL Exception occurred: [Message='FATAL: database "invalidDB" does not exist', SQLState='3D000', ErrorCode='0'].'
1919
errorLogsMessageInvalidBoundingQuery=The column index is out of range: 1, number of columns: 0..
2020
errorMessageConnectionName=Connection Name must be in the format <PROJECT_ID>:<REGION>:<INSTANCE_NAME> to connect to \
2121
a public CloudSQL PostgreSQL instance.
2222
errorMessagePrivateConnectionName=Enter the internal IP address of the Compute Engine VM cloudsql proxy is running on, \
2323
to connect to a private CloudSQL PostgreSQL instance.
24-
errorMessageWithBlankPassword=Error encountered while configuring the stage: 'Error occurred while trying to get schema from database.Error message: 'Something unusual has occurred to cause the driver to fail. Please report this exception.'. Error code: '0'. SQLState: '99999''
24+
errorMessageWithBlankPassword=Error encountered while configuring the stage: 'SQL Error occurred, sqlState: '99999', errorCode: '0', errorMessage: SQL Exception occurred: [Message='Something unusual has occurred to cause the driver to fail. Please report this exception.', SQLState='99999', ErrorCode='0'].'
2525
errorMessageUpdateUpsertOperationName=Table key must be set if the operation is 'Update' or 'Upsert'.
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
11
validationSuccessMessage=No errors found.
2-
errorMessageInvalidSourceDatabase=Error occurred while trying to get schema from database.Error message: 'Cannot open database "test123" requested by the login. The login failed.
2+
errorMessageInvalidSourceDatabase=SQL Error occurred, sqlState: 'S0001', errorCode: '4060', errorMessage: SQL Exception occurred: [Message='Cannot open database "test123" requested by the login. The login failed.
33
errorMessageInvalidImportQuery=Import Query select must contain the string '$CONDITIONS'.
44
errorMessageMssqlInvalidReferenceName=Invalid reference name 'invalidRef&^*&&*'.
55
errorMessageBlankUsername=Username is required when password is given.
6-
errorMessageBlankPassword=Error occurred while trying to get schema from database.Error message: 'Login failed for user
6+
errorMessageBlankPassword=SQL Error occurred, sqlState: 'S0001', errorCode: '18456', errorMessage: SQL Exception occurred: [Message='Login failed for user '
77
errorMessageInvalidFetchSize=Invalid fetch size. Fetch size must be a positive integer.
88
errorMessageBlankSplitBy=Split-By Field Name must be specified if Number of Splits is not set to 1.
99
errorMessageInvalidNumberOfSplits=Invalid value for Number of Splits '0'. Must be at least 1.
1010
errorMessageNumberOfSplitNotNumber=Unable to create config for batchsource
1111
errorMessageBoundingQuery=Bounding Query must be specified if Number of Splits is not set to 1.
1212
errorMessagenumofSplit=Split-By Field Name must be specified if Number of Splits is not set to 1.
13-
errorMessageInvalidSinkDatabase=Error encountered while configuring the stage: 'Error occurred while trying to get schema from database.Error message: 'Cannot open database "test123" requested by the login.
13+
errorMessageInvalidSinkDatabase=Error encountered while configuring the stage: 'SQL Error occurred, sqlState: 'S0001', errorCode: '4060', errorMessage: SQL Exception occurred: [Message='Cannot open database "test123" requested by the login. The login failed.
1414
errorMessageInvalidSinkTableName=Table 'Table123@' does not exist.
15-
errormessageBlankHost=Error encountered while configuring the stage: 'Error occurred while trying to get schema from database.Error message: 'The TCP/IP connection to the host localhost, port 1433 has failed. Error: "Connection refused (Connection refused). \
16-
Verify the connection properties. Make sure that an instance of SQL Server is running on the host and accepting TCP/IP connections at the port. Make sure that TCP connections to the port are not blocked by a firewall.".'. Error code: '0'. SQLState: '08S01''
15+
errormessageBlankHost=Error encountered while configuring the stage: 'SQL Error occurred, sqlState: '08S01', errorCode: '0', errorMessage: SQL Exception occurred: [Message='The TCP/IP connection to the host localhost, port 1433 has failed. \
16+
Error: "Connection refused (Connection refused). Verify the connection properties. Make sure that an instance of SQL Server is running on the host and accepting TCP/IP connections at the port. Make sure that TCP connections to the port are not blocked by a firewall.".', SQLState='08S01', ErrorCode='0'].'
1717
errorMessageInvalidTableName=Spark program 'phase-1' failed with error: Stage 'SQL Server2' encountered : io.cdap.cdap.etl.api.validation.ValidationException: \
1818
Errors were encountered during validation. Table 'Table123@' does not exist.. Please check the system logs for more details.
1919
errorMessageInvalidCredentials=Spark program 'phase-1' failed with error: Unable to create config for batchsink SqlServer \
2020
'connection' is invalid: Failed to assign value
21-
errorMessageInvalidsourcetable=Spark program 'phase-1' failed with error: Stage 'SQL Server' encountered : io.cdap.cdap.api.exception.ProgramFailureException: \
22-
Error occurred while trying to get schema from database.Error message: 'Incorrect syntax near the keyword 'table'.'. Error code: '156'. SQLState: 'S0001'. Please check the system logs for more details.
21+
errorMessageInvalidsourcetable=Spark program 'phase-1' failed with error: Stage 'SQL Server' encountered : io.cdap.cdap.api.exception.ProgramFailureException: SQL Error occurred, sqlState: 'S0001', errorCode: '156', \
22+
errorMessage: SQL Exception occurred: [Message='Incorrect syntax near the keyword 'table'.', SQLState='S0001', ErrorCode='156'].. Please check the system logs for more details.
2323
errorMessageInvalidCredentialSource=Spark program 'phase-1' failed with error: Stage 'SQL Server' encountered : java.lang.IllegalArgumentException: \
2424
Plugin with id SQL Server:source.jdbc.sqlserver does not exist in program phase-1 of application
2525
errorLogsMessageInvalidBoundingQuery=Spark program 'phase-1' failed with error: Stage 'SQL Server' encountered : java.io.IOException: Could not find stored procedure
2626
blank.jdbcPluginName.message=Required property 'jdbcPluginName' has no value.
27-
blank.connection.message=Error encountered while configuring the stage: 'Error occurred while trying to get schema from database.Error message: 'Login failed for user '
27+
blank.connection.message=Error encountered while configuring the stage: 'SQL Error occurred, sqlState: 'S0001', errorCode: '18456', errorMessage: SQL Exception occurred: [Message='Login failed for user '
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
validationSuccessMessage=No errors found.
2-
invalid.username.message=Error occurred while trying to get schema from database.Error message: 'Access denied for user '
2+
invalid.username.message=SQL Error occurred, sqlState: '28000', errorCode: '1045', errorMessage: SQL Exception occurred: [Message='Access denied for user '
33
invalidtableName.error.message=Table '123#' does not exist. Ensure table '123#' is set correctly
44
invalidreferenceName.error.message=Invalid reference name
5-
invalid.host.message=Error encountered while configuring the stage: 'Error occurred while trying to get schema from database.Error message: 'Communications link failure The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.'. Error code: '0'. SQLState: '08S01''
6-
invalid.password.message=Error occurred while trying to get schema from database.Error message: 'Access denied for user '
7-
invalid.databasename.message=Error occurred while trying to get schema from database.
8-
invalid.query.message=Error occurred while trying to get schema from database.Error message: 'No tables used'.
5+
invalid.host.message=Error encountered while configuring the stage: 'SQL Error occurred, sqlState: '08S01', errorCode: '0', errorMessage: SQL Exception occurred: [Message='Communications link failure The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.', SQLState='08S01', ErrorCode='0'].'
6+
invalid.password.message=SQL Error occurred, sqlState: '28000', errorCode: '1045', errorMessage: SQL Exception occurred: [Message='Access denied for user '
7+
invalid.databasename.message=SQL Error occurred, sqlState: '42000', errorCode: '1049', errorMessage: SQL Exception occurred: [Message='Unknown database 'test123'', SQLState='42000', ErrorCode='1049'].
8+
invalid.query.message=SQL Error occurred, sqlState: 'HY000', errorCode: '1096', errorMessage: SQL Exception occurred: [Message='No tables used', SQLState='HY000', ErrorCode='1096'].
99
numberofsplits.error.message=Unable to create config for batchsource Mysql 'numSplits' is invalid
1010
boundingQuery.error.message=Bounding Query must be specified if Number of Splits is not set to 1.
1111
splitfield.error.message=Split-By Field Name must be specified if Number of Splits is not set to 1
12-
invalid.sink.database.message=Error encountered while configuring the stage: 'Error occurred while trying to get schema from database.Error message: 'Unknown database 'test123''. Error code: '1049'. SQLState: '42000''
12+
invalid.sink.database.message=Error encountered while configuring the stage: 'SQL Error occurred, sqlState: '42000', errorCode: '1049', errorMessage: SQL Exception occurred: [Message='Unknown database 'test123'', SQLState='42000', ErrorCode='1049'].'
1313
blank.username.message=Username is required when password is given.
1414
errorMessageInvalidFetchSize=Invalid fetch size. Fetch size must be a positive integer.
1515
errorMessageInvalidNumberOfSplits=Invalid value for Number of Splits '0'. Must be at least 1.
1616
errorMessageInvalidImportQuery=Import Query select must contain the string '$CONDITIONS'.
17-
blank.connection.message=Error encountered while configuring the stage: 'Error occurred while trying to get schema from database.Error message: 'Access denied for user
18-
blank.HostConnection.message=Error encountered while configuring the stage: 'Error occurred while trying to get schema from database.Error message: 'Communications link failure The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.'. Error code: '0'. SQLState: '08S01''
17+
blank.connection.message=Error encountered while configuring the stage: 'SQL Error occurred, sqlState: '28000', errorCode: '1045', errorMessage: SQL Exception occurred: [Message='Access denied for user '
18+
blank.HostConnection.message=Error encountered while configuring the stage: 'SQL Error occurred, sqlState: '08S01', errorCode: '0', errorMessage: SQL Exception occurred: [Message='Communications link failure The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.', SQLState='08S01', ErrorCode='0'].'
1919
blank.jdbcPluginName.message=Required property 'jdbcPluginName' has no value.

0 commit comments

Comments
 (0)