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

Redis Clustering Disposing Redis Connection #9286

Open
alfkonee opened this issue Jan 19, 2025 · 0 comments
Open

Redis Clustering Disposing Redis Connection #9286

alfkonee opened this issue Jan 19, 2025 · 0 comments

Comments

@alfkonee
Copy link

Hello Team

I think there might be a issue with the Redis Clustering I suspect it's disposing the RedisClient and cannot resolve a new client during subsequent membership checks

      Object name: 'Microsoft.Win32.SafeHandles.SafeWaitHandle'.
         at System.Threading.WaitHandle.WaitOneNoCheck(Int32 millisecondsTimeout, Boolean useTrivialWaits, Object associatedObject, WaitHandleWaitSourceMap waitSource)
         at OpenTelemetry.Instrumentation.StackExchangeRedis.StackExchangeRedisConnectionInstrumentation.<GetProfilerSessionsFactory>b__13_0() in /_/src/Vendoring/OpenTelemetry.Instrumentation.StackExchangeRedis/StackExchangeRedisConnectionInstrumentation.cs:line 72
         at StackExchange.Redis.RedisBase.ExecuteAsync[T](Message message, ResultProcessor`1 processor, T defaultValue, ServerEndPoint server) in /_/src/StackExchange.Redis/RedisBase.cs:line 45
         at StackExchange.Redis.RedisDatabase.HashGetAllAsync(RedisKey key, CommandFlags flags) in /_/src/StackExchange.Redis/RedisDatabase.cs:line 496
         at Orleans.Clustering.Redis.RedisMembershipTable.ReadAll()
         at Orleans.Runtime.MembershipService.MembershipTableManager.RefreshInternal(Boolean requireCleanup) in /_/src/Orleans.Runtime/MembershipService/MembershipTableManager.cs:line 130
         at Orleans.Runtime.MembershipService.MembershipTableManager.Refresh() in /_/src/Orleans.Runtime/MembershipService/MembershipTableManager.cs:line 96
         at Orleans.Runtime.MembershipService.MembershipTableManager.PeriodicallyRefreshMembershipTable() in /_/src/Orleans.Runtime/MembershipService/MembershipTableManager.cs:line 256
warn: Orleans.Runtime.MembershipService.MembershipTableManager[100659]
      Failed to refresh membership table, will retry shortly
      System.ObjectDisposedException: Cannot access a disposed object.
      Object name: 'Microsoft.Win32.SafeHandles.SafeWaitHandle'.
         at System.Threading.WaitHandle.WaitOneNoCheck(Int32 millisecondsTimeout, Boolean useTrivialWaits, Object associatedObject, WaitHandleWaitSourceMap waitSource)
         at OpenTelemetry.Instrumentation.StackExchangeRedis.StackExchangeRedisConnectionInstrumentation.<GetProfilerSessionsFactory>b__13_0() in /_/src/Vendoring/OpenTelemetry.Instrumentation.StackExchangeRedis/StackExchangeRedisConnectionInstrumentation.cs:line 72
         at StackExchange.Redis.RedisBase.ExecuteAsync[T](Message message, ResultProcessor`1 processor, T defaultValue, ServerEndPoint server) in /_/src/StackExchange.Redis/RedisBase.cs:line 45
         at StackExchange.Redis.RedisDatabase.HashGetAllAsync(RedisKey key, CommandFlags flags) in /_/src/StackExchange.Redis/RedisDatabase.cs:line 496
         at Orleans.Clustering.Redis.RedisMembershipTable.ReadAll()
         at Orleans.Runtime.MembershipService.MembershipTableManager.RefreshInternal(Boolean requireCleanup) in /_/src/Orleans.Runtime/MembershipService/MembershipTableManager.cs:line 130
         at Orleans.Runtime.MembershipService.MembershipTableManager.Refresh() in /_/src/Orleans.Runtime/MembershipService/MembershipTableManager.cs:line 96
         at Orleans.Runtime.MembershipService.MembershipTableManager.PeriodicallyRefreshMembershipTable() in /_/src/Orleans.Runtime/MembershipService/MembershipTableManager.cs:line 256
warn: Orleans.Runtime.MembershipService.MembershipTableManager[100659]
      Failed to refresh membership table, will retry shortly
      System.ObjectDisposedException: Cannot access a disposed object.
      Object name: 'Microsoft.Win32.SafeHandles.SafeWaitHandle'.
         at System.Threading.WaitHandle.WaitOneNoCheck(Int32 millisecondsTimeout, Boolean useTrivialWaits, Object associatedObject, WaitHandleWaitSourceMap waitSource)
         at OpenTelemetry.Instrumentation.StackExchangeRedis.StackExchangeRedisConnectionInstrumentation.<GetProfilerSessionsFactory>b__13_0() in /_/src/Vendoring/OpenTelemetry.Instrumentation.StackExchangeRedis/StackExchangeRedisConnectionInstrumentation.cs:line 72
         at StackExchange.Redis.RedisBase.ExecuteAsync[T](Message message, ResultProcessor`1 processor, T defaultValue, ServerEndPoint server) in /_/src/StackExchange.Redis/RedisBase.cs:line 45
         at StackExchange.Redis.RedisDatabase.HashGetAllAsync(RedisKey key, CommandFlags flags) in /_/src/StackExchange.Redis/RedisDatabase.cs:line 496
         at Orleans.Clustering.Redis.RedisMembershipTable.ReadAll()
         at Orleans.Runtime.MembershipService.MembershipTableManager.RefreshInternal(Boolean requireCleanup) in /_/src/Orleans.Runtime/MembershipService/MembershipTableManager.cs:line 130
         at Orleans.Runtime.MembershipService.MembershipTableManager.Refresh() in /_/src/Orleans.Runtime/MembershipService/MembershipTableManager.cs:line 96
         at Orleans.Runtime.MembershipService.MembershipTableManager.PeriodicallyRefreshMembershipTable() in /_/src/Orleans.Runtime/MembershipService/MembershipTableManager.cs:line 256

Could we please check on this??

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

1 participant