unistore: add timeout config for resource server joining the ring (#112392)

Signed-off-by: Maicon Costa <maiconscosta@gmail.com>
This commit is contained in:
maicon
2025-10-14 15:27:08 -04:00
committed by GitHub
parent 507720e601
commit 3d112755de
4 changed files with 8 additions and 1 deletions
+1 -1
View File
@@ -310,7 +310,7 @@ func (s *service) starting(ctx context.Context) error {
if s.cfg.EnableSharding {
s.log.Info("waiting until resource server is JOINING in the ring")
lfcCtx, cancel := context.WithTimeout(context.Background(), time.Second*10)
lfcCtx, cancel := context.WithTimeout(context.Background(), s.cfg.ResourceServerJoinRingTimeout)
defer cancel()
if err := ring.WaitInstanceState(lfcCtx, s.searchRing, s.ringLifecycler.GetInstanceID(), ring.JOINING); err != nil {
return fmt.Errorf("error switching to JOINING in the ring: %s", err)