Commit Graph

18 Commits

Author SHA1 Message Date
Bernd Verst 9095b0e7e7
Switch to Go 1.21, Updates linter, updates workflows, adds sarama 1.42.1 (#3251)
Signed-off-by: Bernd Verst <github@bernd.dev>
2023-11-28 18:13:09 -08:00
Alexandre b242ef9ec6
feat: close mongo db (#2954)
Fixes #2949
Signed-off-by: Alexandre <alexandreliberato@mailfence.com>
Signed-off-by: Alessandro (Ale) Segala <43508+ItalyPaleAle@users.noreply.github.com>
Co-authored-by: Alessandro (Ale) Segala <43508+ItalyPaleAle@users.noreply.github.com>
2023-06-30 07:34:34 -07:00
Bernd Verst 5bb753be94 always use UTC
Signed-off-by: Bernd Verst <github@bernd.dev>
2023-05-25 00:05:04 -07:00
Bernd Verst 5999c2a3d5 fix lint in mongo test
Signed-off-by: Bernd Verst <github@bernd.dev>
2023-05-24 22:57:00 -07:00
Bernd Verst 9d3b070bc4 update test to work in multiple time zones
Signed-off-by: Bernd Verst <github@bernd.dev>
2023-05-24 22:51:49 -07:00
Bernd Verst 1d6d90cea6 fix mongo data type json marshaling
Signed-off-by: Bernd Verst <github@bernd.dev>
2023-05-24 22:16:52 -07:00
ItalyPaleAle 24ff1b6175 MongoDB: Detect replica sets to improve error reporting and bulk operations
Changes the MongoDB state store to detect if it's connected to a replica set.

- When performing BulkSet or BulkDelete operations and connected to a replica set, uses a transaction to perform the operations more correctly (atomically) and faster
- When performing transactions, return an error if not connected to a replica set (the operation would fail, but this short-circuits the effort)

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
2023-03-31 20:01:05 +00:00
Bernd Verst 575567e30f
Add `connectionString` metadata option for MongoDB (#2659)
Signed-off-by: Bernd Verst <github@bernd.dev>
2023-03-14 16:40:17 +00:00
Bernd Verst ede060959a
Refactors all state store to standardize metadata parsing (#2257) 2022-11-05 15:36:44 -07:00
Marcos Candeia 8964d8bf41
Define common metadata across components (#1994)
* Add base metadata for all components

Signed-off-by: Marcos Candeia <marrcooos@gmail.com>

* Fix lint issues on consul and mysql tests

Signed-off-by: Marcos Candeia <marrcooos@gmail.com>

* Pin candeia/dapr runtime version

Signed-off-by: Marcos Candeia <marrcooos@gmail.com>

* Add replace directive to use mcandeia/dapr on all go submodules

Signed-off-by: Marcos Candeia <marrcooos@gmail.com>

* Fixed runtime config instantiation

Signed-off-by: Marcos Candeia <marrcooos@gmail.com>

Signed-off-by: Marcos Candeia <marrcooos@gmail.com>
2022-08-25 10:10:53 -07:00
Dmitry Shmulevich c7adb917f3
update license to Apache v2.0 (#1406) 2022-01-04 19:53:31 -08:00
Long Dai 988fed05ab
ci: standard linter config (#1102)
* ci: standard linter config

Signed-off-by: Long <long.dai@intel.com>

* Update utils.go

* fix pulsar issue

Signed-off-by: Long <long.dai@intel.com>

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-09-21 15:21:59 -07:00
Dmitry Shmulevich 1ac87d93c5
Add more tests for MongoDB state store component (#948) 2021-06-16 13:51:35 -07:00
Dmitry Shmulevich 1580e4ab04
Add 'server' field to MongoDB metadata to support DNS seedlist connection format. (#947)
*  for non-empty `server` field, the connection URI is set to 'mongodb+srv://<server>/'

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-06-16 11:32:22 -07:00
Yaron Schneider 3ef025c604
change headers (#679) 2021-02-09 18:57:55 -08:00
Shalabh Mohan Shrivastava 7b0fbe65cc
Setting URL correctly when username/password is not provided (#369)
* Adding Username/password optional

* fixing lint errors
2020-06-25 13:29:52 -07:00
Yaron Schneider df6c3c3e32
add params for mongoDB (#216) 2020-02-10 11:04:37 -08:00
Shalabh Mohan Shrivastava 3ae5547e41 Adding MongoDB State Store Implementation (#53)
* Adding MongoDB State Store Implementation

Adding MongoDB State Store Implementation

* Fix bugs and add unit tests

* Adding write/read concerns

* go sum changes

* adding defer cancellation

* fixing the bug for default case override

* Resolving code review comment

* Adding go mod vendor files

* Fixing lint errors
2019-10-31 12:03:04 -07:00