Commit Graph

692 Commits

Author SHA1 Message Date
Phil Kedy 509b54258e
Fixing backup current daprd command (#843) 2021-04-26 15:29:28 -07:00
zhangchao 69b24d0394 fix lint 2021-04-23 22:32:26 +08:00
zhangchao b1c81523c2 fix add add a ctx context variable in the Redis struct. And implement `Close() error` function. 2021-04-23 22:15:33 +08:00
zhangchao c55d88cd98 fix add add a ctx context variable in the Redis struct. And implemet `Close() error` function 2021-04-23 22:02:07 +08:00
zhangchao 4c0aef5c4e fix use r.ctx instead of context.Background() in pubsub redis component 2021-04-23 21:57:44 +08:00
Phil Kedy 391fc98c58 Fixing go.mod 2021-04-22 14:42:56 -04:00
Phil Kedy 4d0b2291a8
Merge branch 'master' into upgrade_redis_client_to_v8 2021-04-22 14:31:39 -04:00
Charlie Stanley a50362aabe
Merge pull request #836 from pkedy/remove_download_go_dependencies_from_build
Removing the Download Go Dependencies step from the build workflow
2021-04-22 11:01:56 -07:00
Phil Kedy 6d00917246 pubsub conformance tests: Use a single timer for the duration of the subscribe wait loop 2021-04-22 13:35:45 -04:00
Phil Kedy 8fd8f095ba Removing the Download Go Dependencies step from the build workflow 2021-04-22 13:25:29 -04:00
zhangchao 5190fe4e7d Merge branch 'master' into upgrade_redis_client_to_v8
resolve conflict

* master:
  Increasing overall test timeout to allow for conformance tests to run (#834)
  Improve SMTP binding performance (#782)
  add redis cluter mode for pubsub (#823)
  downgrade the verbosity of lock renewal errors from warn to debug. This error is expected when messages are processed before beingrenewed (#803)
  Improve pulsar publisher performance. (#827)
  optimze(state/redis): output detail redis error (#825)
  Consul nameresolution component (#750)
  Add DNS name resolver. Add unit tests. (#743)
  Azure Service Bus: Changed log level of error on close to info (#830)
  Removed dependency on dapr/dapr in favor of dapr/kit. Fixed go mod dependencies afterwards. Go 1.16 in go.mod. Removed accidental log dependency. (#807)
  Update state/blobstorage.go to add metadata. (#786)
  Azure Service Bus publishing retries when server is "too busy" (#821)

# Conflicts:
#	bindings/redis/redis.go
#	go.mod
#	go.sum
#	pubsub/redis/redis.go
2021-04-22 09:13:01 +08:00
Phil Kedy 7ec47083dd
Increasing overall test timeout to allow for conformance tests to run (#834)
* Increasing overall test timeout to allow for conformance tests to run

* Download Go dependencies before running go test so that the time spent downloading does not count against the testing timeout

* Tweak

* Testing if `go mod download` improves overall github actions time

* Tweak
2021-04-21 15:05:07 -07:00
Edwin van Wijk c1541031fd
Improve SMTP binding performance (#782)
* Fix issues from review by @skyao

* Fix lint errors

Co-authored-by: Yaron Schneider <yaronsc@microsoft.com>
2021-04-21 11:57:26 -07:00
Taction 466426894b
add redis cluter mode for pubsub (#823)
Co-authored-by: Phil Kedy <phil.kedy@gmail.com>
Co-authored-by: Yaron Schneider <yaronsc@microsoft.com>
2021-04-21 11:33:30 -07:00
Joni Collinge 744e5be6fa
downgrade the verbosity of lock renewal errors from warn to debug. This error is expected when messages are processed before beingrenewed (#803)
Co-authored-by: Phil Kedy <phil.kedy@gmail.com>
Co-authored-by: Yaron Schneider <yaronsc@microsoft.com>
2021-04-21 11:01:19 -07:00
Xueqian Wang f761b51c77
Improve pulsar publisher performance. (#827)
* Improve pulsar publisher performance.

* Addressed comments and added some debug logs

* Use peek instead of get for closing producers

* Fixed lint issue

* Added debug log in close

* Change back o 100

* Close producer before client

* Fixed cached number of producer and added todo for making it configurable

Co-authored-by: Yaron Schneider <yaronsc@microsoft.com>
2021-04-21 10:53:07 -07:00
yellow chicks 2320824409
optimze(state/redis): output detail redis error (#825)
Co-authored-by: Yaron Schneider <yaronsc@microsoft.com>
2021-04-21 10:43:05 -07:00
Abdulaziz Elsheikh 1d5ab57db6
Consul nameresolution component (#750)
* nr_consul component initial commit

* nr_consul added missing config prop in metadata

* nr_consul additional tests, improvement around queryOptions defaults

* nr_consul added documentation

* nr_consul fixes to satisfy linting rules

* nr_consul removed default behaviour around tags, readme cleanup

* nr_consul fix on abstraction

* nr_consul fix service resolution

* nr_consul changed rand to fix lint issue

* nr_consul  fix typo

* nr_consul refactor error logs, fix panic risk, validate port int

* nr_consul removed need for testify/mock dependency - credit to @pkedy

* nr_consul refactored di approach and fix lint issues

* nr_consul updated readme

* nr_consul added mapping layer between custom and api types for configuration, renamed clientConfig to client

* nr_consul remove trailing white space

* nr_consul updated readme and cleanup

* nr_consul changed logger import inline with #807

* nr_consul changed logger import inline with #807

Co-authored-by: Yaron Schneider <yaronsc@microsoft.com>
Co-authored-by: Phil Kedy <phil.kedy@gmail.com>
2021-04-21 13:26:29 -04:00
abogdanov37 05ee14be5e
Add DNS name resolver. Add unit tests. (#743)
* Add DNS name resolver. Add unit tests.

* Fix code format

* Add namespace support for DNS name resolver. Fix comments

* Update dns.go

* Update dns_test.go

* Update dns.go

* Update dns_test.go

Co-authored-by: Andrey Bogdanov <andrey.bogdanov@zyfra.com>
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
Co-authored-by: Aaron Crawfis <Aaron.Crawfis@microsoft.com>
2021-04-20 08:38:11 -07:00
Phil Kedy edfa3e5473
Azure Service Bus: Changed log level of error on close to info (#830) 2021-04-19 17:08:27 -07:00
Phil Kedy 688df9bda4
Removed dependency on dapr/dapr in favor of dapr/kit. Fixed go mod dependencies afterwards. Go 1.16 in go.mod. Removed accidental log dependency. (#807) 2021-04-19 12:06:10 -07:00
Daniel Beall a35a715f9c
Update state/blobstorage.go to add metadata. (#786)
Co-authored-by: Phil Kedy <phil.kedy@gmail.com>
2021-04-15 21:40:09 -07:00
Phil Kedy 58b43fbfdb
Azure Service Bus publishing retries when server is "too busy" (#821)
* Adding retry/backoff to publishing to Azure Service Bus when the server is too busy and throttles the connection

* Fixing linter issues
2021-04-14 11:56:55 -07:00
Phil Kedy 814145dca3
Merge branch 'master' into upgrade_redis_client_to_v8 2021-04-12 19:52:16 -04:00
Phil Kedy 63f4764757
Merge pull request #780 from Syuparn/fix_redis_sentinel_state_password
fix password config for redis sentinel state
2021-04-12 19:45:02 -04:00
Phil Kedy d5f55445d7
Merge branch 'master' into fix_redis_sentinel_state_password 2021-04-12 19:33:13 -04:00
Phil Kedy 9810b00c2d
Merge pull request #789 from 0to1/patch-1
Update Readme.md
2021-04-12 19:32:20 -04:00
Phil Kedy 20164f43c1
Merge branch 'master' into patch-1 2021-04-12 19:24:47 -04:00
zhangchao 7c9d8e6f97 fix go.sum for lint 2021-04-11 00:34:00 +08:00
zhangchao 2aa3ec5870 fix go.sum 2021-04-10 23:49:36 +08:00
zhangchao 3ec4b336a9 upgrade go-redis/redis to v8, and use context in pubsub/redis to cancel redis request. 2021-04-10 23:41:58 +08:00
Phil Kedy b71a8b560e
Merge pull request #382 from jjcollinge/jjcollinge/pubsub-context
Add context to PubSub handler
2021-04-08 17:21:07 -04:00
Artur Souza 3993d9a559
Merge branch 'master' into jjcollinge/pubsub-context 2021-04-08 14:11:01 -07:00
Phil Kedy ec45e137de
Merge pull request #771 from Hugome/feat/mqtt-binding-improve
feat: change binding mqtt options to the same as pubsub
2021-04-08 13:53:49 -04:00
Phil Kedy 6803b49e56 tls -> ssl for good measure 2021-04-06 17:50:42 -04:00
Phil Kedy bc0c4fd72e Adding small coalesce on scheme to ensure backward compatibility in both the pubsub and binding mqtt components 2021-04-06 17:32:47 -04:00
Phil Kedy 810ec429a7 Adding small coalesce on scheme to ensure backward compatibility in both the pubsub and binding mqtt components 2021-04-06 17:30:33 -04:00
0to1 f01b3e0cef
Update Readme.md
Add missing closing bracket ")"
2021-03-30 18:03:19 +08:00
Joni Collinge 617392fcca
Merge branch 'master' into jjcollinge/pubsub-context 2021-03-28 18:50:28 +01:00
Syuparn 760a4caccc fix password config for redis sentinel state 2021-03-27 19:21:45 +09:00
Phil Kedy 55b6657d1c
Merge branch 'master' into feat/mqtt-binding-improve 2021-03-26 16:33:53 -04:00
Phil Kedy a43a0d908b
Merge pull request #763 from Taction/add_more_config_for_redis
add some redis client config that may be commonly used
2021-03-26 16:24:38 -04:00
Phil Kedy 08d9ce05cf Fixed linter issue 2021-03-26 11:10:41 -04:00
Phil Kedy bad759f6d8 Adding the mqtt binding to the conformance tests 2021-03-26 11:05:19 -04:00
Hugo Meyronneinc f172b9a4d6
feat: change binding mqtt options to the same as pubsub 2021-03-25 21:11:25 +01:00
Joni Collinge 6c8b0ef77d
Merge branch 'master' into jjcollinge/pubsub-context 2021-03-25 19:57:22 +00:00
Phil Kedy 22b475e636
Merge branch 'master' into add_more_config_for_redis 2021-03-25 12:58:39 -04:00
Lynn Orrell c1905ba63b
Local Storage Binding Updates (#776)
* Introduced localstorage binding

* Code cleanup

* Linter cleanup

* Linter cleanup

* Now using ioutil.ReadAll() as io.ReadAll() fails to build on Windows

* Renamed metadata field

* Now returning the filename on create

* Now only generating a UUID filename for creates

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
Co-authored-by: Phil Kedy <phil.kedy@gmail.com>
Co-authored-by: Yaron Schneider <yaronsc@microsoft.com>
2021-03-24 20:56:20 -07:00
Phil Kedy 4124734e57
Merge branch 'master' into add_more_config_for_redis 2021-03-24 12:14:03 -04:00
zhangchao 9304037b70 rename backoff* to redis* 2021-03-24 20:58:56 +08:00