[TRACKING ISSUE] Refactor client connection manager to simplify

Aberta
#540 0 comentários 0 reações 0 responsáveis Ver no GitHub

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
4/5
Tempo estimado
3-5 dias
Facilidade para iniciantes
20/100
Tipo de issue
Refatoração
Clareza
Precisa de esclarecimento
Status de atividade
Estagnada
Stack de tecnologia
java, python

Direção de pesquisa

Comece lendo o pull request do lado Java vinculado, hazelcast/hazelcast#20806, pois esta tracking issue não indica arquivos nem testes. Use suas alterações e a discussão para entender as responsabilidades do connection-manager de thread única e, em seguida, verifique se o comportamento listado de conexão, cluster-ID e failover está coberto.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

The tracking issue for the Java side PR.

See https://github.com/hazelcast/hazelcast/pull/20806 for details.


Most of the logic is turned into a single threaded one to
be able reason about the logic easily.
Important ones that is responsibility of the single thread

  • Writing to and removing from activeConnections
  • Checking if all connections are gone and initating new cluster
  • Checking if cluster id has changed and initating failover
    if necessary.

We still connect to other members in parallel because we mainly
want a fast start. We gave up on one thing. We no longer try to
open connection to all members while trying to connection back
to a cluster. This does not effect initial start since in the
initial start, we had to wait for initial connection and member-list
from it to be able to connect all members anyway.

Linguagem predominante
Python
Estrelas
115
Forks
78
Merge médio
2d 23h
PRs com merge (30d)
2

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de hazelcast/hazelcast-python-client

Todas as issues de hazelcast/hazelcast-python-client

Issues semelhantes

Mais issues de Python

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.