Commit 3f0261f
Add support for PostgreSQL Transport (#4443)
* Bring sqlserver files in line with sqlserver transport to avoid confusion in naming
* First changes for PostgreSql transport
* nullable fix
* test fix
* manifest file test fix
* Added test project
* Do some random work on postgresql support
- Update query for current sequence value
- Update addressing types
- Update query for estimating queue length
* build fix
* fix setting value key
* remove unused code
* customise queue names with schema for postgres when provisioning queues
* added todo for something that errors
* removed commented out code
* connection validator for postgres
* Fix subscription table parameter for postgresql
* fix test
* Translate transport sending queues in instances
* fix test
* Change ToTransportQualifiedQueueNameCore to use double quotes
* use postgres customisation for error queue names
* alternative to get latest identity value for table that doesn't rely on current session increment
* revert double assigning of schema
* Use new alpha of the transport with fixed delay bug
* Add connection string default
* Translate queue names when using dispatcher directly in tests
* fix query to work with postgres syntax
* fix syntax issues (functionality still broken)
* fix RunScenario test
* Translate queues for forwarding message in Audit and Error ingestion
* attempt to get postgres running on ci
* added test category for psotgres
* update postgres env variable
* reverting app.config changes
* clarify not using nolock
* update connection string name so it matches existing ones
* Perform az login for postgres
* fix error catching on failed connection
* fix sqlserver tests
* query fix
* Fix indicator update for transports that display endpointname on SP, ie slq server and postgresql
* Translate throughput queue for sending from monitoring
* fix extra character
* Add test for throughput fix
* Cleanup
* Avoid translating audit log queue multiple times
* Avoid translating multiple times when reporting throughput
* Avoid translating error log queue multiple times
* Remove message driven pubsub comment
* Fix bad merge
* More bad merge fixes
* Formatting
* translate staging queue
* fix dequeue tests
* variable name cleanup + add ability to quote subscription table
* Run container tests for postgres
* Fix docker command
* Use compose file to run postgres
* Fix container name
* Fix pwd
* Fix service deps
* Skip volume
* Add health check
* use default username and database
* Revert pool size
* Remove unneded settings
* limit postgreSQL connections for monitoring and audit to prevent connection starvation
* fix rebase
* fix null reference in tests
* more test fixing
* change name of default max concurrency level properties and apply to sql server transport
* fix CI test
* revert changes to SQL server max connections defaults
* Decrease the queue lenght read frequency for SQL Server and PostgreSQL
* Update to Postgres transport 8.1.4
* Update src/ServiceControl.Transports.PostgreSql/transport.manifest
* fix from rebase
* reapply change lost in rebase
* reapply change lost in rebase
---------
Co-authored-by: SzymonPobiega <[email protected]>
Co-authored-by: Phil Bastian <[email protected]>
Co-authored-by: Andreas Öhlund <[email protected]>1 parent f36ddbc commit 3f0261f
File tree
82 files changed
+1331
-127
lines changed- .github/workflows
- src
- Particular.LicensingComponent.Persistence.InMemory
- ServiceControl.AcceptanceTests.RavenDB
- ServiceControl.Audit.UnitTests/Infrastructure
- ServiceControl.Audit
- Auditing
- Infrastructure
- Settings
- ServiceControl.Config.Tests
- AddInstance
- AddMonitoringInstance
- EditInstance
- EditAuditInstance
- EditErrorInstance
- EditMonitoringInstance
- Validation
- ServiceControl.Monitoring.AcceptanceTests
- TestSupport
- ServiceControl.Monitoring
- Infrastructure
- ServiceControl.Persistence.RavenDB/Throughput
- ServiceControl.Persistence.Tests
- Throughput
- ServiceControl.Transports.PostgreSql.Tests
- ApprovalFiles
- ServiceControl.Transports.PostgreSql
- ServiceControl.Transports.SqlServer.Tests
- ApprovalFiles
- ServiceControl.Transports.SqlServer
- ServiceControl.Transports.Tests
- ApprovalFiles
- ServiceControl.Transports
- ServiceControlInstaller.Engine.UnitTests/ApprovalFiles
- ServiceControlInstaller.Engine
- Validation
- ServiceControlInstaller.Packaging.UnitTests
- ServiceControl
- Infrastructure
- Settings
- Operations
- Recoverability/Retrying/Infrastructure
- TestHelper
- container-integration-test
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
82 files changed
+1331
-127
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
| 68 | + | |
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
77 | 85 | | |
78 | 86 | | |
79 | 87 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
25 | 30 | | |
26 | 31 | | |
27 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
50 | | - | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
51 | 53 | | |
52 | 54 | | |
53 | 55 | | |
| |||
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | | - | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
121 | 127 | | |
122 | 128 | | |
123 | 129 | | |
| |||
138 | 144 | | |
139 | 145 | | |
140 | 146 | | |
141 | | - | |
| 147 | + | |
142 | 148 | | |
143 | 149 | | |
144 | 150 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
31 | | - | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| 91 | + | |
91 | 92 | | |
92 | 93 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
49 | 53 | | |
50 | 54 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
21 | | - | |
22 | | - | |
23 | 22 | | |
24 | 23 | | |
25 | 24 | | |
26 | 25 | | |
27 | 26 | | |
28 | 27 | | |
29 | 28 | | |
30 | | - | |
| 29 | + | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
| 53 | + | |
52 | 54 | | |
53 | 55 | | |
54 | 56 | | |
55 | 57 | | |
56 | 58 | | |
57 | | - | |
| 59 | + | |
58 | 60 | | |
59 | | - | |
| 61 | + | |
60 | 62 | | |
61 | 63 | | |
62 | 64 | | |
| |||
65 | 67 | | |
66 | 68 | | |
67 | 69 | | |
68 | | - | |
| 70 | + | |
69 | 71 | | |
70 | | - | |
| 72 | + | |
71 | 73 | | |
72 | | - | |
73 | | - | |
| 74 | + | |
| 75 | + | |
74 | 76 | | |
75 | | - | |
| 77 | + | |
76 | 78 | | |
77 | 79 | | |
78 | 80 | | |
| |||
83 | 85 | | |
84 | 86 | | |
85 | 87 | | |
86 | | - | |
| 88 | + | |
87 | 89 | | |
88 | | - | |
| 90 | + | |
89 | 91 | | |
90 | 92 | | |
91 | 93 | | |
| |||
140 | 142 | | |
141 | 143 | | |
142 | 144 | | |
143 | | - | |
| 145 | + | |
144 | 146 | | |
145 | 147 | | |
146 | 148 | | |
| |||
155 | 157 | | |
156 | 158 | | |
157 | 159 | | |
| 160 | + | |
158 | 161 | | |
159 | | - | |
| 162 | + | |
| 163 | + | |
160 | 164 | | |
161 | 165 | | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| |||
0 commit comments