Skip to content

Commit b41551c

Browse files
committed
error messages changes
1 parent 35537d7 commit b41551c

File tree

6 files changed

+16
-15
lines changed

6 files changed

+16
-15
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ errorMessageBlankPassword=SQL error while getting query schema:
1515
errorMessageInvalidPassword=SQL error while getting query schema: Error: 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=Exception while trying to validate schema of database table
18+
errorMessageInvalidSinkDatabase=Error occurred while trying to get schema from database.Error message: 'FATAL: database "invalidDB" does not exist'. Error code: '0'. SQLState: '3D000''
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=Exception while trying to validate schema of database table
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''
2525
errorMessageUpdateUpsertOperationName=Table key must be set if the operation is 'Update' or 'Upsert'.

mysql-plugin/src/e2e-test/features/mysqlsink/DesignTimeValidation.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,4 +254,4 @@ Feature: MySQL Sink - Design time validation scenarios
254254
Then Replace input plugin property: "password" with value: "password" for Credentials and Authorization related fields
255255
Then Enter input plugin property: "referenceName" with value: "targetRef"
256256
Then Click on the Validate button
257-
Then Verify that the Plugin is displaying an error message: "blank.connection.message" on the header
257+
Then Verify that the Plugin is displaying an error message: "blank.HostConnection.message" on the header

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,18 @@ validationSuccessMessage=No errors found.
22
invalid.username.message=SQL error while getting query schema:
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=Exception while trying to validate schema of database table
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''
66
invalid.password.message=SQL error while getting query schema:
77
invalid.databasename.message=SQL error while getting query schema:
88
invalid.query.message=SQL error while getting query schema:
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=Exception while trying to validate schema
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''
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=Exception while trying to validate schema of database table
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''
1819
blank.jdbcPluginName.message=Required property 'jdbcPluginName' has no value.

oracle-plugin/src/e2e-test/features/sink/OracleDesignTimeValidation.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,5 +260,5 @@ Feature: Oracle sink- Verify Oracle sink plugin design time validation scenarios
260260
Then Select radio button plugin property: "connectionType" with value: "service"
261261
Then Select radio button plugin property: "role" with value: "normal"
262262
Then Click on the Validate button
263-
Then Verify that the Plugin is displaying an error message: "blank.connection.message" on the header
263+
Then Verify that the Plugin is displaying an error message: "blank.HostBlank.message" on the header
264264

oracle-plugin/src/e2e-test/resources/errorMessage.properties

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ errorMessageInvalidNumberOfSplits=Invalid value for Number of Splits '0'. Must b
77
errorMessageNumberOfSplitNotNumber=Unable to create config for batchsource Oracle 'numSplits' is invalid: Value of field\
88
\ 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=SQL error while getting query schema: Error: Listener refused the connection with the following error: ORA-12514, \
11-
TNS:listener does not currently know of service requested in connect descriptor , SQLState: 08006, ErrorCode: 12514
10+
errorMessageInvalidSourceDatabase=Error occurred while trying to get schema from database.Error message: 'Listener refused the connection with the following error: ORA-12514, TNS:listener does not currently know of service requested in connect descriptor '. Error code: '12514'. SQLState: '08006'
1211
errorMessageInvalidImportQuery=Import Query select must contain the string '$CONDITIONS'. if Number of Splits is not set\
1312
\ to 1. Include '$CONDITIONS' in the Import Query
1413
errorMessageBlankUsername=Username is required when password is given.
15-
errorMessageInvalidTableName=Exception while trying to validate schema of database table '"table"' for connection
16-
errorMessageInvalidSinkDatabase=Exception while trying to validate schema of database table '"TARGETTABLE_
17-
errorMessageInvalidHost=Exception while trying to validate schema of database table '"table"' for connection
14+
errorMessageInvalidTableName=Error encountered while configuring the stage: 'Error occurred while trying to get schema from database.Error message: 'IO Error: Unknown host specified '. Error code: '17002'. SQLState: '08006''
15+
errorMessageInvalidSinkDatabase=Error encountered while configuring the stage: 'Error occurred while trying to get schema from database.Error message: 'IO Error: Unknown host specified '. Error code: '17002'. SQLState: '08006''
16+
errorMessageInvalidHost=Error encountered while configuring the stage: 'Error occurred while trying to get schema from database.Error message: 'IO Error: Unknown host specified '. Error code: '17002'. SQLState: '08006''
1817
errorLogsMessageInvalidBoundingQuery=Spark program 'phase-1' failed with error: Stage 'Oracle' encountered : \
1918
java.io.IOException: ORA-00936: missing expression . Please check the system logs for more details.
2019
blank.database.message=Required property 'database' has no value.
21-
blank.connection.message=Exception while trying to validate schema of database table
20+
blank.connection.message=Error encountered while configuring the stage: 'Error occurred while trying to get schema from database.Error message: 'ORA-01005: null password given; logon denied '. Error code: '1005'. SQLState: '72000''
21+
blank.HostBlank.message=Error encountered while configuring the stage: 'Error occurred while trying to get schema from database.Error message: 'IO Error: The Network Adapter could not establish the connection'. Error code: '17002'. SQLState: '08006''

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ errorMessageBlankPassword=SQL error while getting query schema: The server reque
1616
errorMessageInvalidPassword=SQL error while getting query schema: FATAL: password authentication failed for user
1717
errorMessageInvalidSourceHost=SQL error while getting query schema: The connection attempt failed.
1818
errorMessageInvalidTableName=Table 'table' does not exist. Ensure table '"table"' is set correctly and that the
19-
errorMessageInvalidSinkDatabase=Exception while trying to validate schema of database table '"targettable_
20-
errorMessageInvalidHost=Exception while trying to validate schema of database table '"table"' for connection
19+
errorMessageInvalidSinkDatabase='Error occurred while trying to get schema from database.Error message: 'FATAL: database "invalidDB" does not exist'. Error code: '0'. SQLState: '3D000''
20+
errorMessageInvalidHost=Error encountered while configuring the stage: 'Error occurred while trying to get schema from database.Error message: 'The connection attempt failed.'. Error code: '0'. SQLState: '08001''
2121
errorLogsMessageInvalidBoundingQuery=Spark program 'phase-1' failed with error: Stage 'PostgreSQL' encountered : \
2222
java.io.IOException: The column index is out of range: 1, number of columns: 0.. Please check the system logs for more details.

0 commit comments

Comments
 (0)