Project

General

Profile

Actions

Bug #62480

closed

I/O is hang while I try to write to a file with two processes, maybe due to metadata corruption

Added by fuchen ma 9 months ago. Updated 7 months ago.

Status:
Duplicate
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

I have 3 clients mounted to a cephfs.
There is a file named 'GOKU_yplzmcdzkl_1692173797.mym', and I use a python script to write data to it by two concurrent processes with the following command:
'os.open('GOKU_yplzmcdzkl_1692173797.mym',1)'.
The processes hang and the writing is stuck too. I tried to open the file with vim and the vim also hangs. The ps aux command shows that the two processes' states are S and D.

Besides, I find that the size of that file is 0. Afterwards, I try to check the status of that file by each client, and the first two clients show that the file has a size of 0, while when I check the third client, using the ll command, it shows the file has a size of 210MB. And after that ll command, the writing is not stuck.

I would like to know how and why this happens. Thank you!!


Files

ll.png (260 KB) ll.png fuchen ma, 08/17/2023 06:00 AM
psaux.png (115 KB) psaux.png fuchen ma, 08/17/2023 06:01 AM

Related issues 1 (1 open0 closed)

Related to CephFS - Bug #63013: I/O is hang while I try to write to a file with two processes, maybe due to metadata corruptionNeed More InfoVenky Shankar

Actions
Actions #1

Updated by fuchen ma 9 months ago

anybody can please give me some suggestiongs?

Actions #2

Updated by Venky Shankar 7 months ago

  • Related to Bug #63013: I/O is hang while I try to write to a file with two processes, maybe due to metadata corruption added
Actions #3

Updated by Venky Shankar 7 months ago

  • Status changed from New to Duplicate
Actions

Also available in: Atom PDF