microsoft / microsoft/VFSForGit

Wrap error "The device is not ready." in a proper error and exit

Open
#463 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

affects: live-site affects: mount-reliability
Dominant language
C#
Stars
6.1k
Forks
474
Avg merge
2d 4h
Merged PRs (30d)
8

Description

We see the below error coming thru telementry. It should be wrapped in a proper exception wrapper and exit.

Unhandled exception in connection handler

System.IO.IOException: The device is not ready.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.WriteCore(Byte[] buffer, Int32 offset, Int32 count)
at System.IO.FileStream.FlushWrite(Boolean calledFromFinalizer)
at System.IO.FileStream.Flush(Boolean flushToDisk)

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 by locating the connection handler responsible for the reported FileStream write and reproduce the "The device is not ready" IOException. Determine how connection errors are currently surfaced and define the expected wrapped error and process exit behavior. Done means this failure no longer appears as an unhandled exception and exits as intended.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.