Project

General

Profile

Actions

Bug #63646

open

mds: incorrectly issued the Fc caps in LOCK_EXCL_XSYN state for filelock

Added by Xiubo Li 6 months ago. Updated 5 months ago.

Status:
Pending Backport
Priority:
Normal
Assignee:
Category:
Correctness/Safety
Target version:
% Done:

0%

Source:
Tags:
backport_processed
Backport:
quincy, reef
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
MDS
Labels (FS):
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

# sudo ceph tell mds.a dump inode 1099928481958
{
    "path": "/volumes/csi/csi-vol-8/c1/user/08905",
    "ino": 1099928481958,
    "rdev": 0,
    "ctime": "2023-11-22T17:43:18.475402+0000",
    "btime": "2023-11-22T17:43:18.471402+0000",
    "mode": 33188,
    "uid": 1000,
    "gid": 1000,
    "nlink": 1,
    "dir_layout": {
        "dir_hash": 0,
        "unused1": 0,
        "unused2": 0,
        "unused3": 0
    },
    "layout": {
        "stripe_unit": 4194304,
        "stripe_count": 1,
        "object_size": 4194304,
        "pool_id": 3,
        "pool_ns": "" 
    },
    "old_pools": [],
    "size": 57944,
    "truncate_seq": 1,
    "truncate_size": 18446744073709551615,
    "truncate_from": 0,
    "truncate_pending": 0,
    "mtime": "2023-11-22T17:43:18.474402+0000",
    "atime": "2023-11-22T17:43:18.471402+0000",
    "time_warp_seq": 1,
    "change_attr": 8,
    "export_pin": -1,
    "export_ephemeral_random_pin": 0,
    "export_ephemeral_distributed_pin": false,
    "client_ranges": [
        {
            "client": 292645041,
            "byte range": {
                "first": 0,
                "last": 4194304
            },
            "follows": 27828
        }
    ],
    "dirstat": {
        "version": 0,
        "mtime": "0.000000",
        "num_files": 0,
        "num_subdirs": 0,
        "change_attr": 0
    },
    "rstat": {
        "version": 0,
        "rbytes": 57944,
        "rfiles": 1,
        "rsubdirs": 0,
        "rsnaps": 0,
        "rctime": "2023-11-22T17:43:18.475402+0000" 
    },
    "accounted_rstat": {
        "version": 0,
        "rbytes": 57944,
        "rfiles": 1,
        "rsubdirs": 0,
        "rsnaps": 0,
        "rctime": "2023-11-22T17:43:18.475402+0000" 
    },
    "version": 42583120,
    "file_data_version": 0,
    "xattr_version": 1,
    "backtrace_version": 42574155,
    "stray_prior_path": "",
    "max_size_ever": 0,
    "quota": {
        "max_bytes": 0,
        "max_files": 0
    },
    "last_scrub_stamp": "0.000000",
    "last_scrub_version": 0,
    "symlink": "",
    "xattrs": [
        {
            "key": "security.selinux",
            "val": "system_u:object_r:container_file_t:s0:c14,c27\u0000" 
        }
    ],
    "dirfragtree": {
        "splits": []
    },
    "old_inodes": [],
    "oldest_snap": 18446744073709551614,
    "damage_flags": 0,
    "is_auth": true,
    "auth_state": {
        "replicas": {}
    },
    "replica_state": {
        "authority": [
            0,
            -2
        ],
        "replica_nonce": 0
    },
    "auth_pins": 3,
    "is_frozen": false,
    "is_freezing": false,
    "pins": {
        "ptrwaiter": 13,
        "request": 240,
        "lock": 1,
        "caps": 1,
        "dirtyrstat": 0,
        "dirty": 0,
        "waiter": 1,
        "authpin": 1
    },
    "nref": 257,
    "versionlock": {
        "gather_set": [],
        "state": "lock",
        "is_leased": false,
        "num_rdlocks": 0,
        "num_wrlocks": 0,
        "num_xlocks": 0,
        "xlock_by": {}
    },
    "authlock": {},
    "linklock": {},
    "dirfragtreelock": {},
    "filelock": {
        "gather_set": [],
        "state": "excl->xsyn",
        "is_leased": false,
        "num_rdlocks": 0,
        "num_wrlocks": 0,
        "num_xlocks": 0,
        "xlock_by": {}
    },
    "xattrlock": {},
    "snaplock": {
        "gather_set": [],
        "state": "sync",
        "is_leased": false,
        "num_rdlocks": 2,
        "num_wrlocks": 0,
        "num_xlocks": 0,
        "xlock_by": {}
    },
    "nestlock": {
        "gather_set": [],
        "state": "lock",
        "is_leased": false,
        "num_rdlocks": 0,
        "num_wrlocks": 0,
        "num_xlocks": 0,
        "xlock_by": {}
    },
    "flocklock": {},
    "policylock": {},
    "states": [
        "auth" 
    ],
    "client_caps": [
        {
            "client_id": 292644945,
            "pending": "pAsLsXsFc",
            "issued": "pAsLsXsFc",
            "wanted": "-",
            "last_sent": 26
        },
        {
            "client_id": 292645008,
            "pending": "pAsLsXsFc",
            "issued": "pAsLsXsFc",
            "wanted": "-",
            "last_sent": 3
        },
        {
            "client_id": 292645041,
            "pending": "pAsLsXsFc",
            "issued": "pAsLsXsFcr",
            "wanted": "-",
            "last_sent": 25
        },
        {
            "client_id": 294423859,
            "pending": "pAsLsXsFc",
            "issued": "pAsLsXsFc",
            "wanted": "-",
            "last_sent": 184
        },
        {
            "client_id": 294423874,
            "pending": "pAsLsXsFc",
            "issued": "pAsLsXsFc",
            "wanted": "-",
            "last_sent": 10
        },
        {
            "client_id": 294423919,
            "pending": "pAsLsXsFc",
            "issued": "pAsLsXsFc",
            "wanted": "-",
            "last_sent": 9
        },
        {
            "client_id": 294423985,
            "pending": "pAsLsXsFc",
            "issued": "pAsLsXsFc",
            "wanted": "-",
            "last_sent": 12
        },
        {
            "client_id": 294424000,
            "pending": "pAsLsXsFc",
            "issued": "pAsLsXsFc",
            "wanted": "-",
            "last_sent": 3
        }
    ],
    "loner": 292645041,
    "want_loner": -1,
    "mds_caps_wanted": []
}

Related issues 3 (1 open2 closed)

Copied to CephFS - Backport #63808: quincy: mds: incorrectly issued the Fc caps in LOCK_EXCL_XSYN state for filelockResolvedXiubo LiActions
Copied to CephFS - Backport #63809: reef: mds: incorrectly issued the Fc caps in LOCK_EXCL_XSYN state for filelockIn ProgressXiubo LiActions
Copied to CephFS - Backport #63833: pacific: mds: incorrectly issued the Fc caps in LOCK_EXCL_XSYN state for filelockResolvedXiubo LiActions
Actions

Also available in: Atom PDF