microsoft / microsoft/VFSForGit

If a background task is created, that constantly fails with a retryable error, VFS4G is stuck

Open
#1,251 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
6.1k
Forks
474
Avg merge
2d 4h
Merged PRs (30d)
8

Description

If we have a background task, that is constantly failing due to a retryable error, GVFS.Mount process ends up consuming all available CPU and the whole enlistment is frozen. To avoid that, we need to:

  1. Better classify which errors are retryable and which are not. Today all IOExceptions are treated as retryable, but those include things like System.IO.PathTooLongException, which is unlikely to succeed after retrying.
  2. Introduce a retry limit on background tasks. If we've retried the task for thousands of times, perhaps it's worth to at least move it to the back of the queue, or give up entirely. Or at maybe terminate GVFS.Mount process, emitting problem description to logs, so that it's easy to identify, what the issue was and what's causing it.

Contributor guide

Open the contributing guide

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.

Research direction

Start in the GVFS.Mount background-task retry handling, then trace how IOExceptions such as System.IO.PathTooLongException are classified and how repeatedly failing tasks remain queued. The issue names no files or tests; completion would require an agreed retry policy, bounded handling for persistent failures, and useful problem details in logs.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
operating-systems
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.