Unlock instant, AI-driven research and patent intelligence for your innovation.

File uploading method and device

A file upload and file technology, applied in the field of communications, can solve the problems of incomplete file data and data loss, and achieve the effect of ensuring data integrity

Inactive Publication Date: 2015-12-09
CHENGDU HUAWEI TECH
View PDF4 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Breakpoint resuming is during the file upload process. In case of a failure, after the failure is repaired, the file that has been uploaded to the data server will not be retransmitted, but will be transmitted from the breakpoint of the last transmission. The breakpoint is based on It is determined by the maximum value of the uploaded file recorded in the metadata server. For example, in the above process, when the client agent sends the data of the file in its cache to the data server, if task 2 fails, that is, in task 2 The 1M-2M part of the data is not successfully sent to the data server, and task 3 is successful, that is, the 2M-3M part of the data in task 3 is successfully sent to the data server. At this time, the client agent receives the success of task 3 sent by the data server. After responding to the message, the file size 3M sent to the data server after task 3 is completed is sent to the metadata server. At this time, the metadata server records that the file has been uploaded to a size of 3M. If there is a failure during the transmission , after the fault is fixed, it is considered that the last breakpoint is 3M, that is, the size of the uploaded file is 3M, but in fact, the data of 1M-2M in task 2 is lost, resulting in incomplete data of the uploaded file

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • File uploading method and device
  • File uploading method and device
  • File uploading method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0057] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0058] The file upload method provided by the embodiment of the present invention can be applied in the scene where the business client uploads the file to the data server through the business server and the client agent in the asynchronous file system. When resuming the upload, the transmission will start from the breakpoint of the previous ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The embodiments of the invention provide a file uploading method and device. The method includes the following steps that: a client proxy determines to generate a file write-in state identifier according to write-in response for a file fed back by a data server; the client proxy receives a disc refreshing request for the file, wherein the disc refreshing request for the file is transmitted by a business server, and the disc refreshing request is used for requesting the client proxy server to update the metadata of the file; and the client proxy determines whether to update the metadata of the file according to the write-in state identifier. According to the file uploading method and device of the invention, the client proxy can determine whether to update the metadata of the file according to the write-in state identifier after receiving the disc refreshing request transmitted by the business server; the file write-in state identifier reflects whether the client proxy successfully writes the file into the data server or not; and therefore, the metadata of the file can be consistent with the updated data of the file, and thus, after breakpoint resume, data of the file before a breakpoint can be completely uploaded successfully, and the data integrity of the upload file.

Description

technical field [0001] The embodiments of the present invention relate to communication technologies, and in particular to a method and device for uploading files. Background technique [0002] With the development of Internet technology, users need to upload the files created by themselves to the data server for other users to read, so as to realize file sharing. [0003] In the prior art, when an asynchronous file system uploads a file, the business client uploads the file to the business server, and the business server divides the file data into at least one piece and sends it to the client agent, and the client agent stores the file data in its own After caching, the data of the file is sent to the data server, and the size of the file sent to the data server is sent to the metadata server. When the client agent sends the data of the file to the data server, it divides the data in its cache into multi-tasks and threads and sends it to the data server. For example, if th...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): H04L29/08H04L29/06
CPCH04L67/06H04L63/123
Inventor 鹿智婷胡研研
Owner CHENGDU HUAWEI TECH