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

riot-redis migrate from elasticache clustered enabled issue #87

Open
SQLConjuror opened this issue May 26, 2022 · 3 comments
Open

riot-redis migrate from elasticache clustered enabled issue #87

SQLConjuror opened this issue May 26, 2022 · 3 comments

Comments

@SQLConjuror
Copy link

SQLConjuror commented May 26, 2022

Hi

riot-redis version: riot-redis-2.0.8

In my source elasticache (test) that is clustered enabled, I wanted to migrate 25355 keys.

[root@ip-10-100-1-111 ~]# redis-cli -h test-redis-cluster-migrate.bbssxp.clustercfg.apse1.cache.amazonaws.com
test-redis-cluster-migrate.bbssxp.clustercfg.apse1.cache.amazonaws.com:6379>
test-redis-cluster-migrate.bbssxp.clustercfg.apse1.cache.amazonaws.com:6379> info keyspace

Keyspace

db0:keys=25355,expires=0,avg_ttl=0

But when I ran the command below, first I get warnings, and then only 10067 was migrated.

[root@ip-10-100-1-111 bin]# ./riot-redis --cluster -r redis://test-redis-cluster-migrate.bbssxp.clustercfg.apse1.cache.amazonaws.com:6379 replicate -r redis://efRK7H password@redis-16673.c19675.us-west1-1.gcp.cloud.rlrcp.com:16673 --live
Replicating from RedisURI [host='test-redis-cluster-migrate.bbssxp.clustercfg.apse1.cache.amazonaws.com', port=6379] to RedisURI [host='redis-16673.c19675.us-west1-1 .gcp.cloud.rlrcp.com', port=16673] ? % │█WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by io.lettuce.core.internal.DefaultMethods$MethodHandleLookup (file:/root/riot-redis-2.0.8/lib/lettuce-core-5.3.1.RELEASE.jar) to constructor java.lang.invoke.MethodHandles$Lookup(java.lang.Class)
WARNING: Please consider reporting this to the maintainers of io.lettuce.core.internal.DefaultMethods$MethodHandleLookup
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Could not read values: Deque full
Replicating from RedisURI [host='test-redis-cluster-migrate.bbssxp.clustercfg.apse1.cache.amazonaws.com', port=6379] to RedisURI [host='redis-16673.c19675.us-west1-1 Replicating from RedisURI [host='test-redis-cluster-migrate.bbssxp.clustercfg.apse1.cache.amazonaws.com', port=6379] to RedisURI [host='redis-16673.c19675.us-west1-1 Replicating from RedisURI [host='test-redis-cluster-migrate.bbssxp.clustercfg.apse1.cache.amazonaws.com', port=6379] to RedisURI [host='redis-16673.c19675.us-west1-1 Replicating from RedisURI [host='test-redis-cluster-migrate.bbssxp.clustercfg.apse1.cache.amazonaws.com', port=6379] to RedisURI [host='redis-16673.c19675.us-west1-1 Replicating from RedisURI [host='test-redis-cluster-migrate.bbssxp.clustercfg.apse1.cache.amazonaws.com', port=6379] to RedisURI [host='redis-16673.c19675.us-west1-1 Replicating from RedisURI [host='test-redis-cluster-migrate.bbssxp.clustercfg.apse1.cache.amazonaws.com', port=6379] to RedisURI [host='redis-16673.c19675.us-west1-1 Replicating from RedisURI [host='test-redis-cluster-migrate.bbssxp.clustercfg.apse1.cache.amazonaws.com', port=6379] to RedisURI [host='redis-16673.c19675.us-west1-1.gcp.cloud.rlrcp.com', port=16673] ? % │ █ │ 10100/? (0:00:44 / ?) 229.5/s
[root@ip-10-100-1-111 bin]#

Below we can see that only 10067 were migrated

redis-16673.c19675.us-west1-1.gcp.cloud.rlrcp.com:16673> info keyspace
Keyspace
db0:keys=10067,expires=0,avg_ttl=0
redis-16673.c19675.us-west1-1.gcp.cloud.rlrcp.com:16673>

Please advise.

Thank you.

@M-JobPixel
Copy link

I think this is the issue I'm running in to as well.

I am trying to replicate from elasticache (cluster enabled) to sentinel redis running on k8s.

RIOT runs fine, with no issue when I use it in snapshot mode, but when I run it in either live or liveonly mode it starts with

Listening  ? % │█                                                               │ 0/? (0:00:00 / ?) ?/s

and then emits the following Warnings:

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by io.lettuce.core.internal.DefaultMethods$MethodHandleLookup (file:/home/ubuntu/riot-redis-2.18.3/lib/lettuce-core-6.2.0.RELEASE.jar) to constructor java.lang.invoke.MethodHandles$Lookup(java.lang.Class)
WARNING: Please consider reporting this to the maintainers of io.lettuce.core.internal.DefaultMethods$MethodHandleLookup
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
~/riot-redis-2.18.3$ ./bin/riot-redis --version

      ▀        █     ██████████████████████████
 █ ██ █  ███  ████   ██████████████████████████
 ██   █ █   █  █     ██████████████████████████
 █    █ █   █  █     ██████████████████████████
 █    █  ███    ██   ██████████████████████████  v2.18.3

It also doesn't seem to be working. If I switch to another window in screen and run a compare I can see that the replication is not being kept up to date.

Any ideas on why this is performing an illegal reflective access or how to stop it?

@SQLConjuror
Copy link
Author

Hi M-JobPixel,

Have you tried using the docker method instead?

docker run jruaux/riot-redis

this could be a bug in the old version of RIOT.

@M-JobPixel
Copy link

M-JobPixel commented Oct 4, 2022

I have not. I will take a look at doing that...

Yes that seems to work ok. No warnings.

I haven't yet seen that it syncs things but I'll report back soon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants