Versioned cache writes (ts latest, attributes, versioned entity caches) took
a connection to the slot owner from the Jedis slot map and ran EVALSHA on it
directly, bypassing the Jedis cluster command executor. Only that executor
renews the slot map on MOVED or connection errors, so after a failover or a
node address change every later write to the moved slots failed until the
JVM restarted. A failed ts latest cache write fails saveLatest, so the
subscription update was never published and WebSocket clients got nothing.
- Send versioned puts through the cluster client: it follows MOVED/ASK and
renews the slot map itself.
- WATCH/MULTI and evictByPrefix still need a connection to one node: on a
connection or redirect error, renew the slot map and retry once.
- Build the JedisCluster in TbJedisClusterConnectionFactory, so the slot map
can be renewed on demand and is refreshed in the background
(redis.cluster.topology-refresh-period-sec, default 30 s, 0 disables).
- A transaction that queues EVALSHA fails with NOSCRIPT on a freshly promoted
replica. Load the script on that node and report the transaction as not
applied, instead of failing the read that filled the cache.
- Log saveLatest/removeLatest failures at WARN, at most once per 30 s. They
were logged only with TRACE enabled.
RedisClusterTopologyChangeTest covers a failover (old master alive, MOVED)
and a stopped master (old address gone) on a Valkey cluster; both fail on
the previous code.
* added customer cache && refactored assign/unassing to/from customer nodes
* refactoring of customer action nodes & added common tests
* added tests for upgrade
* updated controller & service tests for customer api
* replaced findCustomerByTenantIdAndTitle with cacheable method
* add new line to end of ../upgrade/3.6.2/schema_update.sql file
* added cache for find user by tenant id and email & relation action nodes refactoring
* fixed synchronization issue & refactored logic & refactored node upgrade tests
* fixed testSaveUserWithSameEmail test in the UserControllerTest. Removed empty space & added exclamation mark
* updated tests for create relation node && added two tests for delete relation node
* replaced Lists with EnumSets where it was possible & replaced MethodSource with EnumSource where it was possible & added test for upgrade for both create and delete relation nodes
* updated upgrade tests & added tests for delete relation node
* refactoring
* updated create & delete relation nodes descriptions
* updated default config for delete relation node
* minor improvements for custom action nodes after self review
* added upgrade for customers with the same titles
* replaced parameterized test annotation when deleteForSingleEntity is false
* fix typo in reSaveCustomerWithNewTitle upgrade logic
* fixes after review & additional improvements
* fixed testAssignAndUnassignEntityViewToCustomer test
* updated upgrade logic & changed logic of public customers lookup
* fixed dao method & added test
* renamed method to findPublicCustomerByTenantId
* fix typo in the find public customer query
* added @Serial annotation for serialVersionUID & rollback saveAndFlush to save in UserServiceImpl
* fixes to async find or create logic
* fixed after review
* fix typo
* set Transactional annotation to findOrCreatePublicCustomer