Project

General

Profile

Actions

Bug #63013

open

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

Added by fuchen ma 8 months ago. Updated 6 months ago.

Status:
Need More Info
Priority:
Normal
Assignee:
Category:
Correctness/Safety
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
1 - critical
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
Labels (FS):
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.

By the way, this is the same to the issue: https://tracker.ceph.com/issues/62480.


Files

ll.png (260 KB) ll.png fuchen ma, 09/28/2023 02:34 AM
psaux.png (115 KB) psaux.png fuchen ma, 09/28/2023 02:34 AM

Related issues 1 (0 open1 closed)

Related to Ceph - Bug #62480: I/O is hang while I try to write to a file with two processes, maybe due to metadata corruptionDuplicate

Actions
Actions

Also available in: Atom PDF