Patent ID: 9424204
Filing Date: 2016-08-23
CPC Classification: G06F,H04L

Claim Text:
1. A caching method performed by a lock server node in a distributed storage system which includes the lock server node and a plurality of lock client nodes, the method comprising: receiving a first lock request sent by a first lock client node for locking a first data stripe, wherein the first lock request contains an identity (ID) of the first data stripe; determining that the first lock request is a read lock request received for the first time on the first data stripe or a write lock request on the first data stripe; recording, in recorded attribute information of data stripes stored in the distributed storage system, that the first lock client node is an owner of the first data stripe; and returning to the first lock client node a first response message indicating that the first lock client node is the owner of the first data stripe and instructing the first lock client node to cache the first data stripe; receiving a second lock request sent by the first lock client node for locking a second data stripe, wherein the second lock request contains an ID of the second data stripe; determining that the second lock request is a read lock request which is not received for the first time on the second data stripe; and returning to the first lock client node a second response message which contains owner information identifying an owner of the second data stripe other than the first lock client node, wherein the second response message is configured to instruct the first lock client node to obtain the second data stripe from the owner of the second data stripe.