-
Notifications
You must be signed in to change notification settings - Fork 987
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
PartitionSelectorException
during refresh of Partitions
#2178
Labels
type: regression
A regression from a previous release
Milestone
Comments
tadashiya
pushed a commit
to tadashiya/lettuce-core
that referenced
this issue
Aug 10, 2022
4 tasks
I had the same issue in my environment. Please check when you have time. @mp911de 🙏 🙏 |
mp911de
changed the title
PartitionSelectorException in PooledClusterConnectionProvider when using enablePeriodicRefresh
Oct 7, 2022
PartitionSelectorException
during refresh of Partitions
Thanks for the report. It is indeed a subtle change, but you're right, there is a gap between the invalidation of the topology cache and the cache rebuild. It makes sense to close that gap. |
mp911de
pushed a commit
that referenced
this issue
Oct 7, 2022
Original pull request: #2179. Co-authored-by: Tadashi Yamasaki <[email protected]>
mp911de
pushed a commit
that referenced
this issue
Oct 7, 2022
Original pull request: #2179. Co-authored-by: Tadashi Yamasaki <[email protected]>
4 tasks
Thank you for your work. |
mp911de
added
type: regression
A regression from a previous release
and removed
type: feature
A new feature
labels
Oct 7, 2022
Reclassifying this as regression because in 6.1.x, we had the exact same behavior as the fix you provided. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug Report
Related to #2146, I encountered PartitionSelectorException.
When I use enablePeriodicRefresh(), in some case, masterCache = EMPTY and PooledClusterConnectionProvider fails to get a master node.
There is a time gap between
invalidateCache()
andthis.masterCache = masterCache
in Partition.java.https://github.com/lettuce-io/lettuce-core/blob/a60560e693b3f73acc3bc6947fa78735dc0dd547/src/main/java/io/lettuce/core/cluster/models/partitions/Partitions.java#L163-L167
Current Behavior
In some case, PartitionSelectorException occurs, when I use enablePeriodicRefresh().
Stack trace
Input Code
Input Code
Expected behavior/code
In Partitions#updateCache(), masterCache shouldn't be empty.
Environment
Possible Solution
Move invalidateCache() to if clause following.
The text was updated successfully, but these errors were encountered: