-
Notifications
You must be signed in to change notification settings - Fork 81
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
Error on insert in RedisCollection #443
Comments
Hi @GraySerg that's a new one here. First, let's note what this means: After a bit of googling, this looks like something that can happen if Redis falls into a bad state (e.g. looks like a really popular one is if the Redis Server runs out of memory). Can you validate the:
|
|
These stats are from a Redis instance where this failure is actively happening? The oddity here is that 1: There's some major syntactic issue in one of the commands. This seems unlikely given we're doing a JSON set here, and the object is explicitly being serialized to a JSON string. Do you have an exact command/object/timeout this is failing on? |
Yes, it from production server.
|
@GraySerg - do you happen to have a copy of the ttl and the eventData that you're trying to insert when this is happening? (if the |
TLL is 2 days.
|
Hi @GraySerg - I am unable to reproduce this error on my end with the similar objects and timeout, with much heavier loads than what you're quoting. Can you able to share a reproduction of this issue outside of your production environment? IMO the likeliest cause is still environmental (there just isn't any reason the commands you quoted should be failing in this way) |
It happens only in Redis cluster. If Redis only on one node it works fine. |
Oh interesting. . . Curious, how many shards are in your Redis Cluster? Is it possible one of those shards doesn't have Redis Stack Running but rather some vanilla version of Redis without the module support? Because a missing command would cause the above error. |
We have 3 shards by default, and all 3 equals Redis Stack. |
Hi @slorello89 |
On production server frequently occurs that error. Collection contains about 6000 entities.
StackExchange.Redis.RedisServerException: EXECABORT Transaction discarded because of previous errors. at Redis.OM.RedisConnection.ExecuteInTransactionAsync(Tuple2[] commandArgsTuples) at Redis.OM.RedisCommands.JsonSetAsync(IRedisConnection connection, String key, String path, String json, TimeSpan timeSpan) at Redis.OM.RedisCommands.JsonSetAsync(IRedisConnection connection, String key, String path, Object obj, TimeSpan timeSpan) at Redis.OM.RedisCommands.SetAsync(IRedisConnection connection, Object obj, TimeSpan timeSpan) at Redis.OM.Searching.RedisCollection1.InsertAsync(T item, TimeSpan timeSpan)
No information about "previous errors". Update entites in collection works fine
The text was updated successfully, but these errors were encountered: