Comments (3)
Hi @thisismz, this should be a bug (we support both RESP3 and client side tracking).
Let me get back to you on this one
from dragonfly.
Hi @thisismz , I run your example with go 1.21.6
. First, I am not quite sure how you are getting this output:
panic: Unknown subcommand or wrong number of arguments for 'TRACKING'. Try CLIENT HELP.: ClientOption.DisableCache must be true for redis not supporting client-side caching or not supporting RESP3 [recovered] panic: Unknown subcommand or wrong number of arguments for 'TRACKING'. Try CLIENT HELP.: ClientOption.DisableCache must be true for redis not supporting client-side caching or not supporting RESP3
When I run it, I just get: panic: syntax error
.
How I reproduced: go mod init test && go get github.com/redis/rueidis && go run .
. The good thing is at least I managed to reproduce and figure out what the issue is. We recently added support for the CLIENT TRACKING
subcommand in #2139
However, it appears that we only added partial support. The only tthing we accept is CLIENT TRACKING ON/OFF
. However, rueidis
sends CLIENT TRACKING ON OPTIN
and dragonfly fails to parse the OPTIN
arguments and returns with a syntax error
.
Therefore to resolve this we need to parse the OPTIN
argument + test with ruedis
.
@romange what's the priority of this? Also, I noticed that we need to update the docs https://www.dragonflydb.io/docs/command-reference/compatibility to include CLIENT TRACKING
I am mentioning it here so we don't forget
from dragonfly.
Yes, it seems that you are correct; the error appears to be different between Linux and Windows. I executed this on my MacBook and received the same error as you. let me the opportunity to double-check.
However, it seems that by adding the following parameter, it appears that the issue has been resolved:
DisableCache: true
client, err := rueidis.NewClient(
rueidis.ClientOption{
InitAddress: []string{"127.0.0.1:6379"},
DisableCache: true,
})
But when we set a key twice, we receive the following error:
panic: redis nil message
goroutine 1 [running]:
main.main()
/Users/mozaffari/Documents/tst/dragonfly/main.go:22 +0x590
It seems like we might not have overwriting capabilities.
Hi @thisismz , I run your example with go
1.21.6
. First, I am not quite sure how you are getting this output:panic: Unknown subcommand or wrong number of arguments for 'TRACKING'. Try CLIENT HELP.: ClientOption.DisableCache must be true for redis not supporting client-side caching or not supporting RESP3 [recovered] panic: Unknown subcommand or wrong number of arguments for 'TRACKING'. Try CLIENT HELP.: ClientOption.DisableCache must be true for redis not supporting client-side caching or not supporting RESP3
When I run it, I just get:
panic: syntax error
.How I reproduced:
go mod init test && go get github.com/redis/rueidis && go run .
. The good thing is at least I managed to reproduce and figure out what the issue is. We recently added support for theCLIENT TRACKING
subcommand in #2139 However, it appears that we only added partial support. The only tthing we accept isCLIENT TRACKING ON/OFF
. However,rueidis
sendsCLIENT TRACKING ON OPTIN
and dragonfly fails to parse theOPTIN
arguments and returns with asyntax error
.Therefore to resolve this we need to parse the
OPTIN
argument + test withruedis
.@romange what's the priority of this? Also, I noticed that we need to update the docs https://www.dragonflydb.io/docs/command-reference/compatibility to include
CLIENT TRACKING
I am mentioning it here so we don't forget
from dragonfly.
Related Issues (20)
- [Helm] Add support for 'extraLabels' HOT 2
- Remove cancelled replication warning when `repltakeover` succeeds
- DFLY_PASSWORD environment variable was deprecated in favor of DFLY_requirepass HOT 14
- Data tiering: fiber preempts on read path and DbSlice::OnCbFinish() clears bumped_items_
- Data tiering: RunQuicky and fiber preemption
- Data tiering: fiber preemption and `PreUpdate && PostUpdate` might invalidate iterators
- Dragonfly replica crash HOT 36
- Crash on replica HOT 8
- Investigate why `test_policy_based_eviction_propagation` is flaky
- Dragonfly crashes when setting empty string in transaction HOT 1
- Support CONFIG subcommands HOT 4
- Crash with blocking commands
- Eval on a single shard does not log exec to journal HOT 4
- SAVE progress tracking HOT 1
- DragonflyDB + Codis? HOT 2
- fix cluster tests for "redis client socket isn't closed" error
- Unit test TieredStorageTest.AddBigValues fails
- replica execute multi as single
- pytest fail test_pipeline_batching_while_migrating HOT 1
- EVAL "return redis.call('TIME')" 0 returning zeros HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dragonfly.