CN108536613A - Data clearing method, device and server - Google Patents

Data clearing method, device and server Download PDF

Info

Publication number
CN108536613A
CN108536613A CN201810191254.4A CN201810191254A CN108536613A CN 108536613 A CN108536613 A CN 108536613A CN 201810191254 A CN201810191254 A CN 201810191254A CN 108536613 A CN108536613 A CN 108536613A
Authority
CN
China
Prior art keywords
service request
identification information
thread
context data
business datum
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810191254.4A
Other languages
Chinese (zh)
Other versions
CN108536613B (en
Inventor
姚逢靖
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Advanced New Technologies Co Ltd
Advantageous New Technologies Co Ltd
Original Assignee
Alibaba Group Holding Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201810191254.4A priority Critical patent/CN108536613B/en
Publication of CN108536613A publication Critical patent/CN108536613A/en
Application granted granted Critical
Publication of CN108536613B publication Critical patent/CN108536613B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/0223User address space allocation, e.g. contiguous or non contiguous base addressing
    • G06F12/023Free address space management
    • G06F12/0253Garbage collection, i.e. reclamation of unreferenced memory
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/362Software debugging
    • G06F11/366Software debugging using diagnostics

Abstract

A kind of data clearing method of this specification embodiment offer, device and server.This method includes:Service request is received, the identification information of the business datum of the service request is set;The execution thread for creating the service request obtains the first thread context data of the execution thread;Whether the identification information for detecting the first thread context data is consistent with the identification information of the business datum;When the result of detection is no, the first thread context data of the execution thread is cleared up.

Description

Data clearing method, device and server
Technical field
This specification embodiment is related to computer processing technical field, more particularly to a kind of data clearing method, device and Server.
Background technology
With the development of computer technology, some operation systems are often used thread variable often in mission thread operation Carry out the transmission of service parameter.But operation system is often complicated and changeable, if a large amount of thread variable in running processing procedure not It can clear up in time, be easy to cause a large amount of memory overflows.
Currently, being usually to need when service ending for the cleaning of the thread variable in memory, unification is utilized Thread thrashing code is handled.It is complicated and changeable due to business in the manner of cleaning up of existing thread variable, usually there is code Nesting, this is easy for occurring leading to problems such as the cleaning of thread variable not in time because of thread thrashing code nesting error or omitting, Cause the accumulation of memory overflow, system crash.Accordingly, it is desirable to provide more reliable or more effective scheme.
Invention content
The purpose of this specification embodiment is to provide a kind of data clearing method, device and server, it is ensured that in time Thread variable is cleared up, the accumulation problem of memory overflow is avoided.
This specification embodiment is realized in:
A kind of data clearing method, including:
Service request is received, the identification information of the business datum of the service request is set;
The execution thread for creating the service request obtains the first thread context data of the execution thread;
Whether the identification information for detecting the first thread context data is consistent with the identification information of the business datum;
When the result of detection is no, the first thread context data of the execution thread is cleared up.
A kind of data scrubbing device, including:
Service request receiving module, for receiving service request;
Identification information setup module, the identification information of the business datum for the service request to be arranged;
Execution thread creation module, the execution line for creating the service request;
Thread context data acquisition module, the first thread context data for obtaining the execution thread;
Identification information detection module, for detect the first thread context data identification information whether with the industry The identification information for data of being engaged in is consistent;
Data scrubbing module, for when the result that the identification information detection module detects is no, clearing up the execution The first thread context data of thread.
A kind of data scrubbing server, including processor and memory, the memory storage are executed by the processor Computer program instructions, the computer program instructions include:
Service request is received, the identification information of the business datum of the service request is set;
The execution thread for creating the service request obtains the first thread context data of the execution thread;
Whether the identification information for detecting the first thread context data is consistent with the identification information of the business datum;
When the result of detection is no, the first thread context data of the execution thread is cleared up.
As seen from the above, this specification one or more embodiment passes through the business datum for currently received service request Be arranged identification information, by the identification information can detect in memory with the presence or absence of service request executed complete but not and The thread context data of Shi Qingli, and in detecting memory exist do not clear up in time thread context data when can and When cleaning, avoid thread operation processing procedure in occur memory overflow accumulation problem.
Description of the drawings
In order to illustrate more clearly of this specification one or more embodiment or technical solution in the prior art, below will A brief introduction will be made to the drawings that need to be used in the embodiment or the description of the prior art, it should be apparent that, in being described below Attached drawing is only some embodiments described in this specification, for those of ordinary skill in the art, is not paying creation Property labour under the premise of, other drawings may also be obtained based on these drawings.
Fig. 1 is a kind of flow diagram of the embodiment for the data clearing method that this specification provides;
Fig. 2 is the flow diagram of another embodiment for the data clearing method that this specification provides;
Fig. 3 is the flow diagram of another embodiment for the data clearing method that this specification provides;
Fig. 4 is a kind of structural schematic diagram of the embodiment for the data scrubbing device that this specification provides;
Fig. 5 is the structural schematic diagram for another embodiment that this specification also provides data scrubbing device;
Fig. 6 is the schematic configuration diagram according to the data scrubbing server of an exemplary embodiment of this specification.
Specific implementation mode
A kind of data clearing method of this specification embodiment offer, device and server.
In order to make those skilled in the art more fully understand the technical solution in this specification, below in conjunction with this explanation Attached drawing in book embodiment is clearly and completely described the technical solution in this specification embodiment, it is clear that described Embodiment be only this specification a part of the embodiment, instead of all the embodiments.The embodiment of base in this manual, Every other embodiment obtained by those of ordinary skill in the art without making creative efforts, should all belong to The range of this specification protection.
A kind of a kind of specific embodiment of data clearing method of this specification introduced below.Fig. 1 is that this specification provides A kind of flow diagram of embodiment of data clearing method, present description provides the methods as described in embodiment or flow chart Operating procedure, but may include either more or less operating procedure without performing creative labour based on routine.In embodiment The step of enumerating sequence is only a kind of mode in numerous step execution sequences, does not represent and unique executes sequence.In reality In system or server product when executing, can either method shown in the drawings sequence be executed or is held parallel according to embodiment Row (such as environment of parallel processor or multiple threads).It is specific as shown in Figure 1, the method may include:
S102:Service request is received, the identification information of the business datum of the service request is set.
In this specification embodiment, operation system can be the business of the service request after receiving service request Identification information is arranged in data.Specifically, the identification information is used as the distinguishing identifier of different business datums.
In practical applications, the identification information can be the identification information that current business system generates, or from The identification information that other interaction ends obtain.In specific embodiment, the identification information is according to certain regular sequence generated Number or business request number etc. can indicate the business datum once asked unique mark data.
S104:Create the execution thread of the service request.
In this specification embodiment, operation system can be that the service request creates after receiving new service request Execution thread.
S106:Obtain the first thread context data of the execution thread.
In this specification embodiment, the first thread context data can be the memory for storing corresponding execution thread In thread context data.
In this specification embodiment, the thread context data can according to business datum generate data, it is described Identification information corresponding to business datum can be the identification information of corresponding thread context data.
In further embodiments, the thread context data can according to business datum and business datum mark The data that information generates.
In this specification embodiment, according to business datum generate thread context data may include using business datum as Thread context data, or it is used as thread context data after business datum is packed.
Correspondingly, it may include by industry to generate thread context data according to the identification information of business datum and business datum The identification information of data of being engaged in and business datum is believed as thread context data, or by the mark of the business datum and business datum Breath is used as thread context data after being packed.
In addition, in this specification embodiment, the business datum in the first thread context data can be current industry The business datum of business request, or the business datum of the service request executed before.
S108:Detect the first thread context data identification information whether the identification information with the business datum Unanimously.
In this specification embodiment, after obtaining first thread context data, it can detect in the first thread Whether the identification information of context data is consistent with the identification information of the business datum of current service request, in order to be believed according to mark Whether breath judges whether the business datum corresponding to the first thread context data of current execution thread is to have held always The business datum for the service request that row is completed.
S110:When the result of detection is no, the first thread context data of the execution thread is cleared up.
Specifically, when the result of step S108 detections is no, it may be determined that corresponding to the first thread context data Business datum be the service request for having executed completion business datum;Correspondingly, may determine that memory leaks, it can Directly to clean up current thread context data (the i.e. described first thread context data).
From the foregoing, it can be seen that by the way that mark is arranged for the business datum of currently received service request in this specification embodiment Information can detect that the business datum corresponding to the thread context data of current execution thread is based on the identification information The no business datum for current service request, and then may determine whether that service request has executed completion but clear in time The thread context data of reason.
In further embodiments, as shown in Fig. 2, Fig. 2 is the another real of the data clearing method that this specification provides Apply the flow diagram of example.Specifically, when the result of step S108 detections is to be, it may be determined that the first thread context number According to the business datum that corresponding business datum is current service request;Correspondingly, on the basis of embodiment shown in Fig. 1, The method can also include:
S112:The service request is executed according to the business datum of current service request.
In further embodiments, the method can also include:
The second thread context data are generated according to the business datum of the service request.
In further embodiments, the method further includes:
Third thread context data are generated according to the business datum of the service request and corresponding identification information.
Specifically, in this specification embodiment, the second thread context data and the third thread context number According to generation method may refer to the generation steps of above-mentioned thread context data, details are not described herein.
In addition, generating the second thread context data according to the business datum of the service request and being asked according to the business The business datum asked and corresponding identification information generate the step of third thread context data can before step S108, It can be after step S108.
In a specific embodiment, when according to the business datum of the service request the second thread context number of generation According to the step of generating third thread context data according to the business datum of the service request and corresponding identification information When before step S108, the identification information of the detection first thread context data whether the mark with the business datum Knowing information may include unanimously:
Detect the first thread context data identification information whether the mark with the second thread context data It is consistent to know information;
And/or
Detect the first thread context data identification information whether the mark with the third thread context data It is consistent to know information.
After current service request processing terminates, above and below the second thread context data and the third thread Literary data can be as the first thread context data of corresponding execution thread.
In further embodiments, as shown in figure 3, Fig. 3 is the another real of the data clearing method that this specification provides Apply the flow diagram of example.Specifically, in some scenes, after creating execution thread for current service request, the execution There are no the thread context data generated corresponding to current service data in the memory of thread, completion has not also been executed When thread context data corresponding to the business datum of service request, above and below the first thread for the execution thread that step S106 is obtained Literary data can be sky.Correspondingly, the method can also include:
S114:Judge whether the first thread context data is empty;
S116:When the result judged is no, whether the identification information of the execution detection first thread context data It is consistent with the identification information of the business datum.
In other embodiments, the method can also include:
When the result judged is is, the service request is executed according to the business datum.
In practical applications, after service request executes completion, corresponding business thread or more can also directly be cleared up Literary data.
It can be seen that a kind of one or more embodiments of data clearing method of this specification are by for currently received industry Identification information is arranged in the business datum of business request, can detect to have whether there is service request in memory by the identification information Through executing the thread context data completed but do not cleared up in time, and exist in detecting memory on the thread that do not clear up in time It can timely be cleared up when context data, avoid the accumulation problem that memory overflow occurs in thread operation processing procedure.
On the other hand this specification also provides a kind of data scrubbing device, Fig. 4 is the data scrubbing dress that this specification provides The structural schematic diagram for a kind of embodiment set, as shown in figure 4, described device 400 may include:
Service request receiving module 410 can be used for receiving service request;
Identification information setup module 420 can be used for being arranged the identification information of the business datum of the service request;
Execution thread creation module 430 can be used for creating the execution line of the service request;
Thread context data acquisition module 440 can be used for obtaining the first thread context number of the execution thread According to;
Identification information detection module 450, can be used for detecting the first thread context data identification information whether It is consistent with the identification information of the business datum;
Data scrubbing module 460 can be used for, when the result that the identification information detection module detects is no, clearing up institute State the first thread context data of execution thread.
This specification also provides another embodiment of data scrubbing device, is also carried as shown in figure 5, Fig. 5 is this specification For the structural schematic diagram of another embodiment of data scrubbing device, on the basis of embodiment shown in Fig. 4, described device 400 can also include:
First service request execution module 470 can be used for when the result of identification information detection module detection being yes When, the service request is executed according to the business datum.
In another embodiment, described device 400 can also include:
First data generation module can be used for generating the second thread context according to the business datum of the service request Data.
In another embodiment, described device 400 can also include:
Second data generation module can be used for being given birth to according to the business datum of the service request and corresponding identification information At third thread context data.
In another embodiment, described device 400 can also include:
Judgment module can be used for judging whether the first thread context data is empty;
Data processing module, can be used for when it is described judge the result that mould judges as it is no when, execute and detect the First Line Whether the identification information of journey context data is consistent with the identification information of the business datum.
In another embodiment, described device 400 can also include:
Second service request execution module, can be used for when it is described judge result that mould judges to be when, according to the industry Data of being engaged in execute the service request.
The above-mentioned data clearing method or device that this specification embodiment provides can be executed by processor in a computer Corresponding program instruction realizes, such as using the c++ language of windows operating systems the ends PC realize or other for example using Android, iOS system programming language are realized in intelligent terminal, and realization of the processing logic based on quantum computer etc.. As shown in fig. 6, Fig. 6 is the schematic configuration diagram according to the data scrubbing server of an exemplary embodiment of this specification.Hard Part level, the server may include processor, internal bus, network interface, memory and nonvolatile memory, go back certainly May include the required hardware of other business.Processor reads corresponding computer program to interior from nonvolatile memory It is then run in depositing, forms data scrubbing device on logic level.Certainly, other than software realization mode, the application is simultaneously It is not excluded for other realization methods, such as the mode etc. of logical device or software and hardware combining, that is to say, that following process flow Executive agent be not limited to each logic unit, can also be hardware or logical device.
Specifically, on the other hand this specification also provides a kind of data scrubbing server, including processor and memory, institute It states memory and stores the computer program instructions executed by the processor, the computer program instructions may include:
Service request is received, the identification information of the business datum of the service request is set;
The execution thread for creating the service request obtains the first thread context data of the execution thread;
Whether the identification information for detecting the first thread context data is consistent with the identification information of the business datum;
When the result of detection is no, the first thread context data of the execution thread is cleared up.
In this specification embodiment, the processor may include central processing unit (CPU) or graphics processor (GPU), naturally it is also possible to including other microcontroller, logic gates, integrated circuits with logic processing capability etc. or its It is appropriately combined.Memory described in the embodiment of the present application can be for protecting stored memory device.In digital display circuit, energy The equipment for preserving binary data can be memory;In integrated circuits, one not physical form have store function Circuit may be memory, such as RAM, FIFO;In systems, the storage device with physical form can also be named storage Device etc..When realization, which can also be realized by the way of cloud storage, specific implementation, and this specification is not Mistake limits.
It can be seen that the embodiment of a kind of data clearing method of this specification, device or server is by currently to receive Service request business datum be arranged identification information, can detect to ask with the presence or absence of business in memory by the identification information The thread context data for having executed and having completed but not clearing up in time are sought, and there is the line that do not clear up in time in detecting memory It can timely be cleared up when journey context data, avoid the accumulation problem that memory overflow occurs in thread operation processing procedure.
It is above-mentioned that this specification specific embodiment is described.Other embodiments are in the scope of the appended claims It is interior.In some cases, the action recorded in detail in the claims or step can be come according to different from the sequence in embodiment It executes and desired result still may be implemented.In addition, the process described in the accompanying drawings not necessarily require show it is specific suitable Sequence or consecutive order could realize desired result.In some embodiments, multitasking and parallel processing be also can With or it may be advantageous.
In the 1990s, the improvement of a technology can be distinguished clearly be on hardware improvement (for example, Improvement to circuit structures such as diode, transistor, switches) or software on improvement (improvement for method flow).So And with the development of technology, the improvement of current many method flows can be considered as directly improving for hardware circuit. Designer nearly all obtains corresponding hardware circuit by the way that improved method flow to be programmed into hardware circuit.Cause This, it cannot be said that the improvement of a method flow cannot be realized with hardware entities module.For example, programmable logic device (Programmable Logic Device, PLD) (such as field programmable gate array (Field Programmable Gate Array, FPGA)) it is exactly such a integrated circuit, logic function determines device programming by user.By designer Voluntarily programming comes a digital display circuit " integrated " on a piece of PLD, designs and makes without asking chip maker Dedicated IC chip.Moreover, nowadays, substitution manually makes IC chip, this programming is also used instead mostly " patrols Volume compiler (logic compiler) " software realizes that software compiler used is similar when it writes with program development, And the source code before compiling also write by handy specific programming language, this is referred to as hardware description language (Hardware Description Language, HDL), and HDL is also not only a kind of, but there are many kind, such as ABEL (Advanced Boolean Expression Language)、AHDL(Altera Hardware Description Language)、Confluence、CUPL(Cornell University Programming Language)、HDCal、JHDL (Java Hardware Description Language)、Lava、Lola、MyHDL、PALASM、RHDL(Ruby Hardware Description Language) etc., VHDL (Very-High-Speed are most generally used at present Integrated Circuit Hardware Description Language) and Verilog.Those skilled in the art also answer This understands, it is only necessary to method flow slightly programming in logic and is programmed into integrated circuit with above-mentioned several hardware description languages, The hardware circuit for realizing the logical method flow can be readily available.
Controller can be implemented in any suitable manner, for example, controller can take such as microprocessor or processing The computer for the computer readable program code (such as software or firmware) that device and storage can be executed by (micro-) processor can Read medium, logic gate, switch, application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), the form of programmable logic controller (PLC) and embedded microcontroller, the example of controller includes but not limited to following microcontroller Device:ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20 and Silicone Labs C8051F320, are deposited Memory controller is also implemented as a part for the control logic of memory.It is also known in the art that in addition to Pure computer readable program code mode is realized other than controller, can be made completely by the way that method and step is carried out programming in logic Controller is obtained in the form of logic gate, switch, application-specific integrated circuit, programmable logic controller (PLC) and embedded microcontroller etc. to come in fact Existing identical function.Therefore this controller is considered a kind of hardware component, and to including for realizing various in it The device of function can also be considered as the structure in hardware component.Or even, it can will be regarded for realizing the device of various functions For either the software module of implementation method can be the structure in hardware component again.
Device, module or the unit that above-described embodiment illustrates can specifically be realized, Huo Zheyou by computer chip or entity Product with certain function is realized.It is a kind of typically to realize that equipment is computer.Specifically, computer for example can be a People's computer, laptop computer, cellular phone, camera phone, smart phone, personal digital assistant, media player, navigation Any equipment in equipment, electronic mail equipment, game console, tablet computer, wearable device or these equipment Combination.
For convenience of description, it is divided into various units when description apparatus above with function to describe respectively.Certainly, implementing this The function of each unit is realized can in the same or multiple software and or hardware when specification.
It should be understood by those skilled in the art that, the embodiment of the present invention can be provided as method, apparatus or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention Apply the form of example.Moreover, the present invention can be used in one or more wherein include computer usable program code computer The computer program production implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) The form of product.
The present invention be with reference to according to the method for the embodiment of the present invention, the flow of equipment (device) and computer program product Figure and/or block diagram describe.It should be understood that can be realized by computer program instructions every first-class in flowchart and/or the block diagram The combination of flow and/or box in journey and/or box and flowchart and/or the block diagram.These computer programs can be provided Instruct the processor of all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine so that the instruction executed by computer or the processor of other programmable data processing devices is generated for real The device for the function of being specified in present one flow of flow chart or one box of multiple flows and/or block diagram or multiple boxes.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that instruction generation stored in the computer readable memory includes referring to Enable the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one box of block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device so that count Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, in computer or The instruction executed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in a box or multiple boxes.
In a typical configuration, computing device includes one or more processors (CPU), input/output interface, net Network interface and memory.
Memory may include computer-readable medium in volatile memory, random access memory (RAM) and/or The forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable medium Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method Or technology realizes information storage.Information can be computer-readable instruction, data structure, the module of program or other data. The example of the storage medium of computer includes, but are not limited to phase transition internal memory (PRAM), static RAM (SRAM), moves State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable Programmable read only memory (EEPROM), fast flash memory bank or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM), Digital versatile disc (DVD) or other optical storages, magnetic tape cassette, tape magnetic disk storage, graphene stores or other Magnetic storage apparatus or any other non-transmission medium can be used for storage and can be accessed by a computing device information.According to herein In define, computer-readable medium does not include temporary computer readable media (transitory media), such as data of modulation Signal and carrier wave.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability Including so that process, method, commodity or equipment including a series of elements include not only those elements, but also wrap Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that wanted including described There is also other identical elements in the process of element, method, commodity or equipment.
It will be understood by those skilled in the art that the embodiment of this specification can be provided as method, apparatus or computer program production Product.Therefore, complete hardware embodiment, complete software embodiment or implementation combining software and hardware aspects can be used in this specification The form of example.Moreover, this specification can be used in one or more wherein include computer usable program code computer The computer program production implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) The form of product.
This specification can describe in the general context of computer-executable instructions executed by a computer, such as journey Sequence module.Usually, program module include routines performing specific tasks or implementing specific abstract data types, program, object, Component, data structure etc..This specification can also be put into practice in a distributed computing environment, in these distributed computing environment In, by executing task by the connected remote processing devices of communication network.In a distributed computing environment, program module It can be located in the local and remote computer storage media including storage device.
Each embodiment in this specification is described in a progressive manner, identical similar portion between each embodiment Point just to refer each other, and each embodiment focuses on the differences from other embodiments.Especially for device and For server example, since it is substantially similar to the method embodiment, so description is fairly simple, related place is referring to side The part of method embodiment illustrates.
The foregoing is merely the embodiments of this specification, are not limited to this specification.For art technology For personnel, this specification can have various modifications and variations.It is all this specification spirit and principle within made by it is any Modification, equivalent replacement, improvement etc., should be included within right.

Claims (13)

1. a kind of data clearing method, including:
Service request is received, the identification information of the business datum of the service request is set;
The execution thread for creating the service request obtains the first thread context data of the execution thread;
Whether the identification information for detecting the first thread context data is consistent with the identification information of the business datum;
When the result of detection is no, the first thread context data of the execution thread is cleared up.
2. according to the method described in claim 1, wherein, the method further includes:
When the result of detection is to be, the service request is executed according to the business datum.
3. method according to claim 1 or 2, wherein the method further includes:
The second thread context data are generated according to the business datum of the service request.
4. method according to claim 1 or 2, wherein the method further includes:
Third thread context data are generated according to the business datum of the service request and corresponding identification information.
5. method according to claim 1 or 2, wherein the method further includes:
Judge whether the first thread context data is empty;
When the result judged is no, execute detect the first thread context data identification information whether with the business The identification information of data is consistent.
6. according to the method described in claim 5, wherein, the method further includes:
When the result judged is is, the service request is executed according to the business datum.
7. a kind of data scrubbing device, including:
Service request receiving module, for receiving service request;
Identification information setup module, the identification information of the business datum for the service request to be arranged;
Execution thread creation module, the execution line for creating the service request;
Thread context data acquisition module, the first thread context data for obtaining the execution thread;
Identification information detection module, for detect the first thread context data identification information whether with the business number According to identification information it is consistent;
Data scrubbing module, for when the result that the identification information detection module detects is no, clearing up the execution thread First thread context data.
8. device according to claim 7, wherein described device further includes:
First service request execution module, the result for being detected when the identification information detection module are when being, according to described Business datum executes the service request.
9. device according to claim 7 or 8, wherein described device further includes:
First data generation module, for generating the second thread context data according to the business datum of the service request.
10. device according to claim 7 or 8, wherein described device further includes:
Second data generation module, for generating third line according to the business datum of the service request and corresponding identification information Journey context data.
11. device according to claim 7 or 8, wherein described device further includes:
Judgment module, for judging whether the first thread context data is empty;
Data processing module, for when it is described judge the result that mould judges as it is no when, the execution detection first thread context Whether the identification information of data is consistent with the identification information of the business datum.
12. according to the devices described in claim 11, wherein described device further includes:
Second service request execution module, for when it is described judge result that mould judges to be when, held according to the business datum The row service request.
13. a kind of data scrubbing server, including processor and memory, what the memory storage was executed by the processor Computer program instructions, the computer program instructions include:
Service request is received, the identification information of the business datum of the service request is set;
The execution thread for creating the service request obtains the first thread context data of the execution thread;
Whether the identification information for detecting the first thread context data is consistent with the identification information of the business datum;
When the result of detection is no, the first thread context data of the execution thread is cleared up.
CN201810191254.4A 2018-03-08 2018-03-08 Data cleaning method and device and server Active CN108536613B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810191254.4A CN108536613B (en) 2018-03-08 2018-03-08 Data cleaning method and device and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810191254.4A CN108536613B (en) 2018-03-08 2018-03-08 Data cleaning method and device and server

Publications (2)

Publication Number Publication Date
CN108536613A true CN108536613A (en) 2018-09-14
CN108536613B CN108536613B (en) 2022-09-16

Family

ID=63486645

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810191254.4A Active CN108536613B (en) 2018-03-08 2018-03-08 Data cleaning method and device and server

Country Status (1)

Country Link
CN (1) CN108536613B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109582685A (en) * 2018-12-03 2019-04-05 武芮 A kind of method and device recording context request implementation procedure
CN109634845A (en) * 2018-11-13 2019-04-16 微梦创科网络科技(中国)有限公司 A kind of method and device generating context record text
CN110309172A (en) * 2019-06-06 2019-10-08 阿里巴巴集团控股有限公司 A kind of method for computing data, system, device and electronic equipment

Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1846194A (en) * 2003-08-28 2006-10-11 美普思科技有限公司 Integrated mechanism for suspension and deallocation of computational threads of execution in a processor
CN101021812A (en) * 2006-12-21 2007-08-22 华为技术有限公司 Interpreter language debugging method and device
CN101441560A (en) * 2007-11-23 2009-05-27 国际商业机器公司 Method for performing service-oriented architecture strategy based on context model and strategy engine
US20090307298A1 (en) * 2008-06-09 2009-12-10 International Business Machines Corporation Optimizing Service Processing Based on Business Information, Operational Intelligence, and Self-Learning
CN101710303A (en) * 2009-12-01 2010-05-19 中国人民解放军国防科学技术大学 Memory leakage detecting method based on flow sensitivity and context sensitivity directing picture
CN101854311A (en) * 2009-03-31 2010-10-06 国际商业机器公司 Method and device for transmitting context information on web server
CN102209016A (en) * 2010-03-29 2011-10-05 成都市华为赛门铁克科技有限公司 Data processing method, device and data processing system
CN102217357A (en) * 2011-05-20 2011-10-12 华为技术有限公司 Method, apparatus, and system for controlling business
US20120072683A1 (en) * 2010-09-16 2012-03-22 International Business Machines Corporation Managing Write Operations in a Computerized Memory
US20130138912A1 (en) * 2011-11-30 2013-05-30 International Business Machines Corporation Scheduling requests in a solid state memory device
CN103188738A (en) * 2011-12-27 2013-07-03 华为技术有限公司 Resource allocation method, device and system
WO2014000785A1 (en) * 2012-06-27 2014-01-03 Qatar Foundation A method for cleaning data records in a database
CN105630512A (en) * 2016-02-17 2016-06-01 北京高绎信息技术有限公司 Method and system for implementing mobile device data tracking through software development toolkit
CN106095689A (en) * 2016-06-24 2016-11-09 北京奇虎科技有限公司 The detection method of a kind of application memory leakage and device
CN106899666A (en) * 2017-02-21 2017-06-27 阿里巴巴集团控股有限公司 A kind of data processing method and device for service identification
CN107368406A (en) * 2016-05-11 2017-11-21 阿里巴巴集团控股有限公司 The method, apparatus and equipment of test application program

Patent Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1846194A (en) * 2003-08-28 2006-10-11 美普思科技有限公司 Integrated mechanism for suspension and deallocation of computational threads of execution in a processor
CN101021812A (en) * 2006-12-21 2007-08-22 华为技术有限公司 Interpreter language debugging method and device
CN101441560A (en) * 2007-11-23 2009-05-27 国际商业机器公司 Method for performing service-oriented architecture strategy based on context model and strategy engine
US20090307298A1 (en) * 2008-06-09 2009-12-10 International Business Machines Corporation Optimizing Service Processing Based on Business Information, Operational Intelligence, and Self-Learning
CN101854311A (en) * 2009-03-31 2010-10-06 国际商业机器公司 Method and device for transmitting context information on web server
CN101710303A (en) * 2009-12-01 2010-05-19 中国人民解放军国防科学技术大学 Memory leakage detecting method based on flow sensitivity and context sensitivity directing picture
CN102209016A (en) * 2010-03-29 2011-10-05 成都市华为赛门铁克科技有限公司 Data processing method, device and data processing system
US20120072683A1 (en) * 2010-09-16 2012-03-22 International Business Machines Corporation Managing Write Operations in a Computerized Memory
CN102217357A (en) * 2011-05-20 2011-10-12 华为技术有限公司 Method, apparatus, and system for controlling business
US20130138912A1 (en) * 2011-11-30 2013-05-30 International Business Machines Corporation Scheduling requests in a solid state memory device
CN103188738A (en) * 2011-12-27 2013-07-03 华为技术有限公司 Resource allocation method, device and system
WO2014000785A1 (en) * 2012-06-27 2014-01-03 Qatar Foundation A method for cleaning data records in a database
CN105630512A (en) * 2016-02-17 2016-06-01 北京高绎信息技术有限公司 Method and system for implementing mobile device data tracking through software development toolkit
CN107368406A (en) * 2016-05-11 2017-11-21 阿里巴巴集团控股有限公司 The method, apparatus and equipment of test application program
CN106095689A (en) * 2016-06-24 2016-11-09 北京奇虎科技有限公司 The detection method of a kind of application memory leakage and device
CN106899666A (en) * 2017-02-21 2017-06-27 阿里巴巴集团控股有限公司 A kind of data processing method and device for service identification

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109634845A (en) * 2018-11-13 2019-04-16 微梦创科网络科技(中国)有限公司 A kind of method and device generating context record text
CN109634845B (en) * 2018-11-13 2022-05-17 微梦创科网络科技(中国)有限公司 Method and device for generating context record text
CN109582685A (en) * 2018-12-03 2019-04-05 武芮 A kind of method and device recording context request implementation procedure
CN109582685B (en) * 2018-12-03 2023-01-10 武芮 Method and device for recording context request execution process
CN110309172A (en) * 2019-06-06 2019-10-08 阿里巴巴集团控股有限公司 A kind of method for computing data, system, device and electronic equipment
CN110309172B (en) * 2019-06-06 2023-08-22 创新先进技术有限公司 Data calculation method, system, device and electronic equipment

Also Published As

Publication number Publication date
CN108536613B (en) 2022-09-16

Similar Documents

Publication Publication Date Title
TWI691855B (en) Blockchain-based data processing method and equipment
JP6716149B2 (en) Blockchain-based data processing method and apparatus
TWI709931B (en) Method, device and electronic equipment for detecting indicator abnormality
CN107957831A (en) A kind of data processing method, device and processing equipment for showing interface content
CN105468797B (en) A kind of information processing method and device
CN110262937A (en) A kind of recognition methods of Indexes Abnormality reason and device
CN108536613A (en) Data clearing method, device and server
CN110245279A (en) Dependent tree generation method, device, equipment and storage medium
CN109034183A (en) A kind of object detection method, device and equipment
CN109561133A (en) Method for processing business, device, equipment and computer readable storage medium
CN109947643A (en) A kind of configuration method, device and the equipment of the experimental program based on A/B test
CN108763059A (en) A kind of method for detecting abnormality, device and equipment
CN108491468A (en) A kind of document processing method, device and server
CN106778239B (en) For improving the method and device of Java sandbox safety
CN111026494B (en) Business process processing method, device and equipment
CN109345221A (en) The checking method and device of resource circulation
CN109597678A (en) Task processing method and device
CN110119381A (en) A kind of index updating method, device, equipment and medium
CN109656946A (en) A kind of multilist relation query method, device and equipment
CN110516915A (en) Service node training, appraisal procedure, device and electronic equipment
CN109376988A (en) A kind for the treatment of method and apparatus of business datum
CN109657088A (en) A kind of picture risk checking method, device, equipment and medium
CN108804563A (en) A kind of data mask method, device and equipment
CN108959330A (en) A kind of processing of database, data query method and apparatus
CN108446301A (en) Service scripts splits method of summary, device and equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20200927

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant after: Innovative advanced technology Co.,Ltd.

Address before: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant before: Advanced innovation technology Co.,Ltd.

Effective date of registration: 20200927

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant after: Advanced innovation technology Co.,Ltd.

Address before: Greater Cayman, British Cayman Islands

Applicant before: Alibaba Group Holding Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant