Bernd Verst
3e08736911
Add support for Redis 7 in all Dapr Components ( #2228 )
...
* Add support for Redis 7
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
* Add Redis 7 to conformance tests
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
* automatically detect redis version, make redis7 state conformant
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
* Additions for REDIS without JSON support
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
* Return helpful query API error when missing redis-json
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
* Change Redis 7 port for conformance test
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
* Fix nil reference
Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
* Update Redis7 port
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
* Enable ContextTimeoutEnabled for Redis v9 client
Co-Authored-By: Bernd Verst <4535280+berndverst@users.noreply.github.com>
Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
* Add timeouts, address code review
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
* Add another timeout
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
* Redis: so much more context
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
* modtidy
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
* fix issue from latest merge
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
* modtidy
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
* Add generic redis nil error
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
* fix redis version check
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
* upgrade redis v9 client
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
* Remove flaky redis v7 pubsub conformance test
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
* modtidy
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
Co-authored-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
2022-12-16 14:12:11 -08:00
1046102779
2dd7433a59
feature: add context to state API
...
Signed-off-by: 1046102779 <seachen@tencent.com>
2022-12-08 15:56:51 +08:00
Bernd Verst
ede060959a
Refactors all state store to standardize metadata parsing ( #2257 )
2022-11-05 15:36:44 -07:00
Alessandro (Ale) Segala
ca3e80b76b
Updated depguard linter config ( #2245 )
...
* Updated depguard linter config
1. Add older (pre-v4) versions of `github.com/cenkalti/backoff` to the denylist
2. Add `github.com/agrea/ptr` to the denylist (use `github.com/dapr/kit/ptr` instead)
3. Fixed error messages for denied deps
Port of dapr/dapr#5438
Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
* ⚙️ 🧹
Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
* Remove some github.com/pkg/errors
Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
* make modtidy-all after rebase
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
Co-authored-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
Co-authored-by: Dapr Bot <56698301+dapr-bot@users.noreply.github.com>
2022-11-03 22:19:21 -07:00
1046102779
203c6c7757
feature: add context to state API
...
Signed-off-by: 1046102779 <seachen@tencent.com>
2022-10-25 07:21:35 +08:00
1046102779
5a367b401a
feature: add context to state API
...
Signed-off-by: 1046102779 <seachen@tencent.com>
2022-10-21 17:25:14 +08:00
Alessandro (Ale) Segala
bcea284c7b
Components' init functions should return interfaces ( #1997 )
...
* Components' init functions should return interfaces
Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
* 💄
Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
* pin latest berndverst contrib fork
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
* Fixed component registration in tests
Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
* Updated all cert tests
Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
Co-authored-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
2022-08-25 18:27:45 -07:00
deepanshuagarwal
a0ef46265b
Adding Pinger interface and Removing mandatory nature of Ping fuction ( #1784 )
...
* add `Pinger` interface.
Signed-off-by: chanyong.moon <dev.chanyongmoon@gmail.com>
* Convert Ping fuction to optional
Signed-off-by: Deepanshu Agarwal <deepanshu.agarwal1984@gmail.com>
* Removing unrequired Ping implementations
Signed-off-by: Deepanshu Agarwal <deepanshu.agarwal1984@gmail.com>
* Addressing comments
Signed-off-by: Deepanshu Agarwal <deepanshu.agarwal1984@gmail.com>
Co-authored-by: chanyong.moon <dev.chanyongmoon@gmail.com>
2022-06-14 08:27:54 -07:00
seeflood
dc849d40a0
feat: lock component ( #1574 )
...
* feat: lock store.
Signed-off-by: seeflood <349895584@qq.com>
* make modtidy-all
Signed-off-by: seeflood <349895584@qq.com>
* lock/redis/standalone.go
Signed-off-by: seeflood <349895584@qq.com>
Co-authored-by: Looong Dai <long.dai@intel.com>
Co-authored-by: Yaron Schneider <schneider.yaron@live.com>
2022-04-24 18:11:13 -07:00
Dmitry Shmulevich
c7adb917f3
update license to Apache v2.0 ( #1406 )
2022-01-04 19:53:31 -08:00
Bernd Verst
aa7d2ee1dd
Adds Default TTL Option for Redis State Store ( #1059 )
...
* Adds Default TTL Option for Redis State Store
* Add additional tests
* Parse correct property key
Co-authored-by: Bernd Verst <me@bernd.dev>
2021-08-09 18:06:59 -07:00
Long Dai
10a2e5ee85
state: correct FIRST_WRITE ( #995 )
...
* state: correct FIRST_WRITE
Signed-off-by: Long Dai <long0dai@foxmail.com>
* add a test case
Signed-off-by: Long <long0dai@foxmail.com>
2021-08-03 17:26:45 -07:00
Bernd Verst
7df53a1d76
Adds support for TTL in Redis State Store ( #990 )
...
* Adds support for TTL in Redis State Store
* return explicit errors
* Refactor Redis TTL
* reduce nestedness
* Changing if logic for ttl to fit lint
* Ignore lint for nestif
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-07-14 16:37:51 -07:00
Taction
464d53d94b
Move the common Redis code to internal ( #859 )
...
* Move pubsub redis client to internal
* Add failover for common redis. Refactor state redis.
* refactor binding redis
* fix lint
* Refactor to setting partten
* fix db and lint
* fix lint
* for backward compatibility
* Using a type alias to handle decoding duration values of -1 for Redis.
* Linter fixes
Co-authored-by: Phil Kedy <phil.kedy@gmail.com>
2021-06-06 23:24:36 -07:00
문찬용
b387fcdff3
add Ping operation to`store` interface. ( #757 )
...
* add `Ping` operation.
* add `Ping` implementation of GA components
* add context to an argument for Ping
* add `Ping` implementation of blobstorage
* fix error string for passing lint
* Update blobstorage.go
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-05-25 23:48:46 -07: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
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
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
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
a15c616bb0
Make state.GetResponse ETag to a *string ( #733 )
...
* Make state.GetResponse ETag to a *string
* Small fixes post merge of #716
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-03-03 13:28:59 -08:00
Yaron Schneider
3ef025c604
change headers ( #679 )
2021-02-09 18:57:55 -08:00
Yaron Schneider
99256e6bec
Provide distinction between missing and empty etags ( #600 )
...
* provide distinction between missing and empty etags
* linter
* linter 2
2021-01-14 10:41:38 -08:00
halspang
f647d9eedb
Upgrade golang lint to 1.31 ( #490 )
...
Upgrade golang lint to 1.31.0
https://github.com/dapr/components-contrib/issues/439
2020-10-12 12:54:15 -07:00
Artur Souza
ab1ff1055a
Fixing bug where trx del in redis fails without etag. ( #482 ) ( #484 )
2020-09-26 18:24:12 -07:00
Nghia Tran
e51cff7fec
Use concurrency control in Multi() ( #466 )
...
Change Multi() to use same setQuery and delQuery mechanisms as Set() and Delete().
2020-09-22 15:13:39 -07:00
Young Bu Park
ee97c3c56a
Use dapr logger ( #238 )
...
* Use dapr logger
* skip linter false alarm
2020-02-28 15:49:49 -08:00
sayboras
8adf323961
Add github action for CI ( #59 )
...
* Initial commit
* Fixed all linting error
* Used prepared query instead of string format
* Enabled linter for test
Enabled below linters
- gochecknoglobals
- gochecknoinits
* Enabled below linters
- godox
- interfacer
- maligned
* Revert name change for StateStore in pkg state
* Incorporate review comments
* Cleanup the github ci
* Correct typo
* Add golangci-lint version in github ci step
* Update Readme.md
2019-10-28 15:39:48 -07:00
Aman Bhardwaj
04bef3ac3f
Adding license header and updating to MIT license. ( #26 )
2019-10-09 10:58:08 -07:00
yaron2
22fea6f43d
initial commit
2019-09-26 15:47:41 -07:00