baidu / baidu/bfs

bfs_client and nameserver return 0 in some abnormal cases

Open
#754 0 comments 0 reactions 0 assignees View on GitHub
bug optimization
Dominant language
C++
Stars
2.8k
Forks
551
PR merge metrics
No merged PRs in 30d

Description

1. when bfs.flag does not exist or nameserver has already been started, namserver can't start but return 0;
2. when touch a file already exists, bfs_client print fail message but return 0;
3. when du a directory not exist,bfs_client print fail message but return 0.

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the three cases described for nameserver and bfs_client: missing bfs.flag or an already-running nameserver, touching an existing file, and running du on a missing directory. Trace the command entry points and failure paths, then verify that each reported failure exits nonzero while successful operations retain their existing status.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
cli, distributed-systems, operating-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.