Skip to content

cmd not terminating when resource is locked forever #4037

Description

@nickvergessen

Currently writing smashbox tests for locking.

  1. I created an artificial lock on a folder, which never expires.
  2. Create a new file in that folder locally
  3. Try to sync

Expected

The cmd terminates ❓

Actual

It never terminates,
From the sync log:

<<#### Post-Reconcile end ####################################################  214
file2.dat - server replied: Locked" QVariant(int, 423)
[...]
Restarting Sync, because another sync is needed

This happens forever.

Now I can see that it may be useful, to have the client retrying.
However it would be nice (for testing purpose) to have something like a --max-sync-retries settings, which then terminates the client, with an error exit code.

cc @guruz

Metadata

Metadata

Assignees

Labels

ReadyToTestQA, please validate the fix/enhancement

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions