Skip to content

replicator tries to send file same place 2x in a row #93

Open

Description

@ctengel

try 1 fail - looks like it tried to do the same replication 2x?

$ simpler-objects-async-replicate --replicas 3 http://localhost:29164/ bucket
http://obj1/bucket/f1.gz => http://obj3/bucket/f1.gz
http://obj4/bucket/f2.bundle => http://obj3/bucket/f2git.bundle
http://obj1/bucket/f4.jpg => http://obj3/bucket/f4.jpg
http://obj1/bucket/f4.jpg => http://obj3/bucket/f4.jpg
Traceback (most recent call last):
  File "/home/simplerobjects/venv/bin/simpler-objects-async-replicate", line 8, in <module>
    sys.exit(cli())
             ~~~^^
  File "/home/simplerobjects/venv/lib64/python3.14/site-packages/simpler_objects/async_replicate.py", line 134, in cli
    results = [auto_replica(args.locator, b, args.replicas, evacuate) for b in buckets]
               ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/simplerobjects/venv/lib64/python3.14/site-packages/simpler_objects/async_replicate.py", line 112, in auto_replica
    assert replicate_object(src, dst) == obj['size']
           ~~~~~~~~~~~~~~~~^^^^^^^^^^
  File "/home/simplerobjects/venv/lib64/python3.14/site-packages/simpler_objects/async_replicate.py", line 45, in replicate_object
    assert not any(get_object_size(dest, skip_404=True))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

try 2 fail - tried elsewhere, but different file, same thing

$ simpler-objects-async-replicate --replicas 3 http://localhost:29164/ bucket
http://obj1/bucket/f4.jpg => http://obj4/bucket/f4.jpg
http://obj3/bucket/f5.jpg => http://obj1/bucket/f5.jpg
http://obj3/bucket/f5.jpg => http://obj4/bucket/f5.jpg
http://obj3/bucket/f6.jpg => http://obj1/bucket/f6.jpg
http://obj3/bucket/f6.jpg => http://obj1/bucket/f6.jpg
Traceback (most recent call last):
  File "/home/simplerobjects/venv/bin/simpler-objects-async-replicate", line 8, in <module>
    sys.exit(cli())
             ~~~^^
  File "/home/simplerobjects/venv/lib64/python3.14/site-packages/simpler_objects/async_replicate.py", line 134, in cli
    results = [auto_replica(args.locator, b, args.replicas, evacuate) for b in buckets]
               ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/simplerobjects/venv/lib64/python3.14/site-packages/simpler_objects/async_replicate.py", line 112, in auto_replica
    assert replicate_object(src, dst) == obj['size']
           ~~~~~~~~~~~~~~~~^^^^^^^^^^
  File "/home/simplerobjects/venv/lib64/python3.14/site-packages/simpler_objects/async_replicate.py", line 45, in replicate_object
    assert not any(get_object_size(dest, skip_404=True))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError

try 3 success - tried elsewhere

$ simpler-objects-async-replicate --replicas 3 http://localhost:29164/ bucket
http://obj1/bucket/f6.jpg => http://obj4/bucket/f6.jpg

try 4 noop - done

$ simpler-objects-async-replicate --replicas 3 http://localhost:29164/ bucket
$

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions