Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It is not possible to use client tools such as datagrip or redis insight #383

Closed
kyuminMoon opened this issue May 14, 2024 · 8 comments · Fixed by #389
Closed

It is not possible to use client tools such as datagrip or redis insight #383

kyuminMoon opened this issue May 14, 2024 · 8 comments · Fixed by #389
Assignees
Labels
answered Whether a question was answered or not bug Something isn't working question Further information is requested

Comments

@kyuminMoon
Copy link

kyuminMoon commented May 14, 2024

Feature request type

sample request

Is your feature request related to a problem? Please describe

I always thought this part was inconvenient while using it. Do you have any plans to create a dedicated GUI client tool or make the driver supported?

Describe the solution you'd like

Do you have any plans to create a dedicated GUI client tool or make the driver supported?
For reference, I am using garnet cluster mode.

Describe alternatives you've considered

No response

Additional context

No response

@badrishc
Copy link
Contributor

We have made sure in the past that RedisInsight works with Garnet. Let us know if you run into any issues.

@darrenge darrenge added question Further information is requested answered Whether a question was answered or not labels May 15, 2024
@kyuminMoon
Copy link
Author

kyuminMoon commented May 16, 2024

Currently, garnet is operated in cluster mode and is being used as a master slave structure.
When establishing a connection using intellij's Database function, the connection is established normally, but the schema is not viewed.

The versions used are as follows:
IntelliJ IDEA 2023.2.5
garnet : 1.0.8

The script used is as follows.

./GarnetServer --cluster --checkpointdir='/data/' --aof

redis-cli -h garnet-m -p 6379 cluster addslots $(seq 0 16383);
redis-cli -h garnet-m -p 6379 cluster set-config-epoch 1;
redis-cli -h garnet-s1 -p 6379 cluster set-config-epoch 2;
redis-cli -h garnet-s2 -p 6379 cluster set-config-epoch 3;
redis-cli -h garnet-m -p 6379 cluster meet garnet-s1 6379;
redis-cli -h garnet-m -p 6379 cluster meet garnet-s2 6379;
redis-cli -h garnet-s1 -p 6379 cluster replicate $(redis-cli -h garnet-m -p 6379 cluster myid);
redis-cli -h garnet-s2 -p 6379 cluster replicate $(redis-cli -h garnet-m -p 6379 cluster myid);

We confirmed that when applying the settings, data replication proceeds without problem.
However, the schema is not being searched.
image

And when using Redis Insight, the connection itself is not established.

Is there a problem with the method I used?

@badrishc
Copy link
Contributor

we have not tried with cluster, if you can debug and let us know which command is missing, we might be able to add it. cc @vazois

@kyuminMoon
Copy link
Author

kyuminMoon commented May 16, 2024

Sorry for the late reply.
When executing the CONFIG GET databases command, I confirmed that an error occurred because the result type was different.
The log is as follows.

CONFIG GET databases
-- ] --------------------------------------------------
-- 2024-05-16 12:09:22 [garnet] [0@192.x.x.x [2]] [introspection] [session id: 1757844920] [statement id: 264536377] error - class [B cannot be cast to class java.util.List ([B and java.util.List are in module java.base of loader 'bootstrap')
-- 2024-05-16 12:09:22 [garnet] [0@192.x.x.x [2]] [introspection] [session id: 1757844920] [statement id: 264536377] finished - execution time: 11 ms
-- [ --------------------------------------------------

Based on redis 7.2.3 version, the result is output as follows.

1) "databases"
2) "1"

However, garnet is output as follows:

"16"

@badrishc
Copy link
Contributor

Good work narrowing it down, this should not be hard to fix. Thanks.

@vazois
Copy link
Contributor

vazois commented May 16, 2024

Thanks for providing a repro. Fix for this here #389.

@vazois vazois self-assigned this May 16, 2024
@vazois vazois linked a pull request May 16, 2024 that will close this issue
@vazois vazois added the bug Something isn't working label May 16, 2024
@badrishc
Copy link
Contributor

@kyuminMoon - can you see if this makes your tool work or does it hit some other issue after this fix?

@kyuminMoon
Copy link
Author

@badrishc Thank you for the quick response
After testing with intellij and datagrip, it was confirmed that it was working properly!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered Whether a question was answered or not bug Something isn't working question Further information is requested
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants