Skip to content

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

Open

Description

@turbonaitis

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.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions