Skip to content

PLUGIN-1823: Retrying all SQLTransientConnectionExceptions #23

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 21 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ public class RedshiftConnectorUnitTest {
@Rule
public ExpectedException expectedEx = ExpectedException.none();

private static final RedshiftConnector CONNECTOR = new RedshiftConnector(null);
private static final RedshiftConnector CONNECTOR = new RedshiftConnector(new RedshiftConnectorConfig(
"username", "password", "jdbc", "", "localhost",
"db", 5432));

/**
* Unit test for getTableName()
Expand Down
33 changes: 32 additions & 1 deletion amazon-redshift-plugin/widgets/Redshift-batchsource.json
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,37 @@
}
}
]
},
{
"properties": [
{
"widget-type": "hidden",
"label": "Initial Retry Duration (sec)",
"name": "initialRetryDuration",
"widget-attributes": {
"default": 5,
"minimum": 0
}
},
{
"widget-type": "hidden",
"label": "Maximum Retry Duration (sec)",
"name": "maxRetryDuration",
"widget-attributes": {
"default": 80,
"minimum": 0
}
},
{
"widget-type": "hidden",
"label": "Maximum Retry Count",
"name": "maxRetryCount",
"widget-attributes": {
"default": 5,
"minimum": 0
}
}
]
}
],
"outputs": [
Expand Down Expand Up @@ -228,7 +259,7 @@
"name": "connection"
}
]
},
}
],
"jump-config": {
"datasets": [
Expand Down
31 changes: 31 additions & 0 deletions amazon-redshift-plugin/widgets/Redshift-connector.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,37 @@
}
}
]
},
{
"properties": [
{
"widget-type": "hidden",
"label": "Initial Retry Duration (sec)",
"name": "initialRetryDuration",
"widget-attributes": {
"default": 5,
"minimum": 0
}
},
{
"widget-type": "hidden",
"label": "Maximum Retry Duration (sec)",
"name": "maxRetryDuration",
"widget-attributes": {
"default": 80,
"minimum": 0
}
},
{
"widget-type": "hidden",
"label": "Maximum Retry Count",
"name": "maxRetryCount",
"widget-attributes": {
"default": 5,
"minimum": 0
}
}
]
}
],
"outputs": []
Expand Down
31 changes: 31 additions & 0 deletions aurora-mysql-plugin/widgets/AuroraMysql-action.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,37 @@
}
}
]
},
{
"properties": [
{
"widget-type": "hidden",
"label": "Initial Retry Duration (sec)",
"name": "initialRetryDuration",
"widget-attributes": {
"default": 5,
"minimum": 0
}
},
{
"widget-type": "hidden",
"label": "Maximum Retry Duration (sec)",
"name": "maxRetryDuration",
"widget-attributes": {
"default": 80,
"minimum": 0
}
},
{
"widget-type": "hidden",
"label": "Maximum Retry Count",
"name": "maxRetryCount",
"widget-attributes": {
"default": 5,
"minimum": 0
}
}
]
}
]
}
31 changes: 31 additions & 0 deletions aurora-mysql-plugin/widgets/AuroraMysql-batchsink.json
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,37 @@
}
}
]
},
{
"properties": [
{
"widget-type": "hidden",
"label": "Initial Retry Duration (sec)",
"name": "initialRetryDuration",
"widget-attributes": {
"default": 5,
"minimum": 0
}
},
{
"widget-type": "hidden",
"label": "Maximum Retry Duration (sec)",
"name": "maxRetryDuration",
"widget-attributes": {
"default": 80,
"minimum": 0
}
},
{
"widget-type": "hidden",
"label": "Maximum Retry Count",
"name": "maxRetryCount",
"widget-attributes": {
"default": 5,
"minimum": 0
}
}
]
}
],
"outputs": [],
Expand Down
31 changes: 31 additions & 0 deletions aurora-mysql-plugin/widgets/AuroraMysql-batchsource.json
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,37 @@
}
}
]
},
{
"properties": [
{
"widget-type": "hidden",
"label": "Initial Retry Duration (sec)",
"name": "initialRetryDuration",
"widget-attributes": {
"default": 5,
"minimum": 0
}
},
{
"widget-type": "hidden",
"label": "Maximum Retry Duration (sec)",
"name": "maxRetryDuration",
"widget-attributes": {
"default": 80,
"minimum": 0
}
},
{
"widget-type": "hidden",
"label": "Maximum Retry Count",
"name": "maxRetryCount",
"widget-attributes": {
"default": 5,
"minimum": 0
}
}
]
}
],
"outputs": [
Expand Down
31 changes: 31 additions & 0 deletions aurora-mysql-plugin/widgets/AuroraMysql-postaction.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,37 @@
}
}
]
},
{
"properties": [
{
"widget-type": "hidden",
"label": "Initial Retry Duration (sec)",
"name": "initialRetryDuration",
"widget-attributes": {
"default": 5,
"minimum": 0
}
},
{
"widget-type": "hidden",
"label": "Maximum Retry Duration (sec)",
"name": "maxRetryDuration",
"widget-attributes": {
"default": 80,
"minimum": 0
}
},
{
"widget-type": "hidden",
"label": "Maximum Retry Count",
"name": "maxRetryCount",
"widget-attributes": {
"default": 5,
"minimum": 0
}
}
]
}
]
}
31 changes: 31 additions & 0 deletions aurora-postgresql-plugin/widgets/AuroraPostgres-action.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,37 @@
}
}
]
},
{
"properties": [
{
"widget-type": "hidden",
"label": "Initial Retry Duration (sec)",
"name": "initialRetryDuration",
"widget-attributes": {
"default": 5,
"minimum": 0
}
},
{
"widget-type": "hidden",
"label": "Maximum Retry Duration (sec)",
"name": "maxRetryDuration",
"widget-attributes": {
"default": 80,
"minimum": 0
}
},
{
"widget-type": "hidden",
"label": "Maximum Retry Count",
"name": "maxRetryCount",
"widget-attributes": {
"default": 5,
"minimum": 0
}
}
]
}
]
}
31 changes: 31 additions & 0 deletions aurora-postgresql-plugin/widgets/AuroraPostgres-batchsink.json
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,37 @@
}
}
]
},
{
"properties": [
{
"widget-type": "hidden",
"label": "Initial Retry Duration (sec)",
"name": "initialRetryDuration",
"widget-attributes": {
"default": 5,
"minimum": 0
}
},
{
"widget-type": "hidden",
"label": "Maximum Retry Duration (sec)",
"name": "maxRetryDuration",
"widget-attributes": {
"default": 80,
"minimum": 0
}
},
{
"widget-type": "hidden",
"label": "Maximum Retry Count",
"name": "maxRetryCount",
"widget-attributes": {
"default": 5,
"minimum": 0
}
}
]
}
],
"outputs": [],
Expand Down
31 changes: 31 additions & 0 deletions aurora-postgresql-plugin/widgets/AuroraPostgres-batchsource.json
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,37 @@
}
}
]
},
{
"properties": [
{
"widget-type": "hidden",
"label": "Initial Retry Duration (sec)",
"name": "initialRetryDuration",
"widget-attributes": {
"default": 5,
"minimum": 0
}
},
{
"widget-type": "hidden",
"label": "Maximum Retry Duration (sec)",
"name": "maxRetryDuration",
"widget-attributes": {
"default": 80,
"minimum": 0
}
},
{
"widget-type": "hidden",
"label": "Maximum Retry Count",
"name": "maxRetryCount",
"widget-attributes": {
"default": 5,
"minimum": 0
}
}
]
}
],
"outputs": [
Expand Down
31 changes: 31 additions & 0 deletions aurora-postgresql-plugin/widgets/AuroraPostgres-postaction.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,37 @@
}
}
]
},
{
"properties": [
{
"widget-type": "hidden",
"label": "Initial Retry Duration (sec)",
"name": "initialRetryDuration",
"widget-attributes": {
"default": 5,
"minimum": 0
}
},
{
"widget-type": "hidden",
"label": "Maximum Retry Duration (sec)",
"name": "maxRetryDuration",
"widget-attributes": {
"default": 80,
"minimum": 0
}
},
{
"widget-type": "hidden",
"label": "Maximum Retry Count",
"name": "maxRetryCount",
"widget-attributes": {
"default": 5,
"minimum": 0
}
}
]
}
]
}
Loading