raw simulator: error reading copied files

Offen
#626 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
Ein halber Tag
Anfängerfreundlichkeit
62/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
python
Bereich
testing-qa

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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

Vorherrschende Sprache
Python
Sterne
214
Forks
68
Ø Merge
51 Min.
Gemergte PRs (30 T.)
6

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus Backblaze/b2-sdk-python

Alle Issues in Backblaze/b2-sdk-python

Ähnliche Issues

Weitere Issues zu Python

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.