raw simulator: error reading copied files

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

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
3/5
Tempo estimado
Meio dia
Facilidade para iniciantes
62/100
Tipo de issue
Bug
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
python
Domínio
testing-qa

Direção de pesquisa

Start with the attached repro script (test_raw_simulator_copy.py), which copies a file between buckets and then reads it through b2sdk.v3.RawSimulator. The issue's workaround says copied files must be registered in file_id_to_bucket_id, so trace how the simulator's copy path updates that mapping and where the read path looks it up. Done means the repro reads the copied file without error and the simulator tests still pass.

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

Descrição

When the raw simulator is used, reading a file that has been copied between buckets generates an error. A workaround is to subclass b2sdk.v3.RawSimulator and register copied files in file_id_to_bucket_id.

Repro:

test_raw_simulator_copy.py

Linguagem predominante
Python
Estrelas
214
Forks
68
Merge médio
51min
PRs com merge (30d)
6

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 Backblaze/b2-sdk-python

Todas as issues de Backblaze/b2-sdk-python

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.