×

Method, device, node and system for managing file in distributed data warehouse

  • US 9,830,327 B2
  • Filed: 11/26/2014
  • Issued: 11/28/2017
  • Est. Priority Date: 11/29/2013
  • Status: Active Grant
First Claim
Patent Images

1. A method for managing file in distributed data warehouse, comprising:

  • acquiring, by a data node, a deleting instruction carrying a data block identifier, wherein the deleting instruction is sent by a management node;

    suspending, by the data node, the deleting instruction; and

    deleting, by the data node, a data block corresponding to the data block identifier after a condition is met;

    wherein the process of suspending, by the data node, the deleting instruction comprises storing the data block identifier into a delay queue;

    wherein the process of deleting, by the data node, the data block corresponding to the data block identifier after the condition is met comprises;

    deleting, by the data node, data blocks corresponding to all the data block identifiers in the delay queue in response to an emptying instruction sent by a client for emptying the data blocks corresponding to all the data block identifiers in the delay queue wherein before deleting the data blocks corresponding to all the data block identifiers in the delay queue in response to an emptying instruction sent by a client for emptying the data blocks corresponding to all the data block identifiers in the delay queue, the method further comprises;

    determining data blocks in the data node corresponding to all the data block identifiers in the delay queue;

    calculating a parameter of occupation of the determined data blocks in the data node; and

    sending the parameter of occupation to the management node, wherein the client determines after checking the parameter of occupation whether to send to the data node the emptying instruction for emptying the data blocks corresponding to all the data block identifiers in the delay queue;

    wherein the parameter of occupation comprises a delay deleting storage space and a delay deleting percentage, the process of calculating a parameter of occupation of the determined data blocks in the data node comprises;

    calculating a storage space occupied by the determined data blocks in the data node as the delay deleting storage space; and

    calculating a percentage of an entire storage space of the data node occupied by the delay deleting storage space as the delay deleting percentage.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×