Sharing: member setup must not give up silently on the lock

Open Beginner friendly
#5,231 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
78/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
go
Domain
backend

Research direction

Start with SetupReceiver in model/sharing/setup.go and trace how it handles waiting more than 20 seconds for the sharing lock and how setup jobs are queued. Log the timeout and requeue the setup job; done when a lock timeout no longer silently skips member setup and the job is retried.

Written by the indexing model from the issue text.

Description

SetupReceiver (model/sharing/setup.go) returns without an error when it waits more than 20 seconds for the sharing lock, and skips the whole setup of the member (track triggers, initial replication). Log it and push the setup job again instead.

Size: ~80 lines. Depends on: nothing.

Dominant language
Go
Stars
1.3k
Forks
147
Avg merge
22h 40m
Merged PRs (30d)
134

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from linagora/cozy-stack

All issues in linagora/cozy-stack

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.