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

nly 0 of 1 slaves were synced #4305

Closed
zsokolowski opened this issue May 20, 2022 · 1 comment
Closed

nly 0 of 1 slaves were synced #4305

zsokolowski opened this issue May 20, 2022 · 1 comment

Comments

@zsokolowski
Copy link

Expected behavior

no Exceptions

Actual behavior

level ERROR
loggerName org.redisson.RedissonBaseLock
logMessage Can't update lock {CURRENTLY_PROCESSED_ITEMS}:XQkzsm4yLHcuG8LoUKmxBQ:fairlock expiration
thread redisson-netty-2-19
thrown.cause.class java.lang.IllegalStateException
thrown.cause.localizedMessage Only 0 of 1 slaves were synced
thrown.cause.message Only 0 of 1 slaves were synced

We are using RedisQueues to read items

Steps to reproduce or test case

Redis version

AWS

Redisson version

3.17.0 and 3.17.1

Redisson configuration

        Config redissonConfiguration = new Config();
        redissonConfiguration
                .setNettyThreads(redisConfigurationModel.getNettyThreads())
                .useClusterServers()
                .setNatMapper(mapper)
                .setConnectTimeout(redisConfigurationModel.getConnectionTimeout())
                .setRetryAttempts(redisConfigurationModel.getRetryAttempts())
                .setMasterConnectionPoolSize(redisConfigurationModel.getConnectionPoolSize())
                .setRetryInterval(redisConfigurationModel.getRetryInterval())
                .setTimeout(redisConfigurationModel.getTimeout())
                .addNodeAddress(redisConfigurationNodeAddress);

I can provide exact values

@mrniko
Copy link
Member

mrniko commented May 20, 2022

You need to set checkLockSyncedSlaves = false. If for some reason sync with slaves doesn't work.

@mrniko mrniko closed this as completed Jun 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants