CN111538717B - Data processing method, device, electronic equipment and computer readable medium - Google Patents

Data processing method, device, electronic equipment and computer readable medium Download PDF

Info

Publication number
CN111538717B
CN111538717B CN202010308067.7A CN202010308067A CN111538717B CN 111538717 B CN111538717 B CN 111538717B CN 202010308067 A CN202010308067 A CN 202010308067A CN 111538717 B CN111538717 B CN 111538717B
Authority
CN
China
Prior art keywords
users
target system
task
data
user
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.)
Active
Application number
CN202010308067.7A
Other languages
Chinese (zh)
Other versions
CN111538717A (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.)
Douyin Vision Co Ltd
Original Assignee
Douyin Vision Co 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 Douyin Vision Co Ltd filed Critical Douyin Vision Co Ltd
Priority to CN202010308067.7A priority Critical patent/CN111538717B/en
Publication of CN111538717A publication Critical patent/CN111538717A/en
Application granted granted Critical
Publication of CN111538717B publication Critical patent/CN111538717B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/21Design, administration or maintenance of databases
    • G06F16/214Database migration support
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/28Databases characterised by their database models, e.g. relational or object models
    • G06F16/284Relational databases
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The embodiment of the disclosure provides a data processing method, a device, equipment and a medium, wherein the method comprises the following steps: the method comprises the steps of inputting test data of a plurality of first users for executing a plurality of tasks into an original system, obtaining first task data corresponding to each first user through the original system, inputting test data of the plurality of first users for executing the plurality of tasks into a target system, and obtaining second task data corresponding to each first user through the target system; determining the state type of the target system according to the first task data and the second task data; if the state type of the target system is a normal state, selecting a preset number of second users from all the users preset in the original system; inputting test data of a plurality of tasks respectively executed by a plurality of second users to a target system, and acquiring feedback information of task processing of the plurality of second users in the target system; and according to the feedback information, migrating all task data in the original system to the target system.

Description

Data processing method, device, electronic equipment and computer readable medium
Technical Field
The present disclosure relates to the field of computer technology, and in particular, to a method, an apparatus, an electronic device, and a computer readable medium for data processing.
Background
With the continuous development of business, the user quantity is continuously increased, the performance requirement on the system is higher and higher, the system is required to rapidly support various business requirements besides coping with a large number of concurrent requests, and after the system is developed to a certain stage, the structure of the system is continuously adjusted by using a reconstruction mode, so that the system has stronger adaptability to the change of the requirements all the time. And when the original system is developed to a certain stage, reconstructing the original system to obtain the target system.
After the system is reconstructed in the prior art, the target system and the original system run simultaneously on line. Because of the time and effort required to simultaneously maintain the target system and the original system, it is necessary to smoothly migrate task data from the original system to the target system; after the system is reconstructed, how to smoothly migrate task data from an original system to a target system on the premise that a user does not feel and feedback does not have accidents as much as possible is a problem to be solved.
Disclosure of Invention
This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the detailed description. This summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
Only the independent scheme is described, and the slave scheme is not described.
The present disclosure addresses the shortcomings of the existing approaches by providing a method, an apparatus, an electronic device, and a computer readable medium for data processing, so as to solve the problem of how to smoothly migrate task data from an original system to a target system without perception by a user and without feedback as much as possible.
In a first aspect, the present disclosure provides a method of data processing, comprising:
the method comprises the steps of inputting test data of a plurality of first users for executing a plurality of tasks into an original system, obtaining first task data corresponding to each first user through the original system, inputting test data of the plurality of first users for executing the plurality of tasks into a target system, and obtaining second task data corresponding to each first user through the target system;
Determining the state type of the target system according to the first task data and the second task data;
if the state type of the target system is a normal state, selecting a preset number of second users from all users preset in the original system, wherein all the users comprise a plurality of first users;
inputting test data of a plurality of tasks respectively executed by a plurality of second users to a target system, and acquiring feedback information of task processing of the plurality of second users in the target system;
and migrating all task data in the original system to the target system according to the feedback information, wherein all task data comprise first task data corresponding to each first user.
In a second aspect, the present disclosure provides an apparatus for data processing, comprising:
the first processing module is used for inputting test data of a plurality of first users for executing a plurality of tasks into an original system, obtaining first task data corresponding to each first user through the original system, inputting the test data of the plurality of first users for executing the tasks into a target system, and obtaining second task data corresponding to each first user through the target system;
the second processing module is used for determining the state type of the target system according to the first task data and the second task data;
The third processing module is used for selecting a preset number of second users from all users preset in the original system if the state type of the target system is a normal state, wherein all the users comprise a plurality of first users;
the fourth processing module is used for inputting test data for respectively executing a plurality of tasks by a plurality of second users to the target system and obtaining feedback information for the task processing of the plurality of second users in the target system;
and the fifth processing module is used for migrating all task data in the original system to the target system according to the feedback information, wherein all task data comprise first task data corresponding to each first user.
In a third aspect, the present disclosure provides an electronic device comprising: a processor, a memory, and a bus;
a bus for connecting the processor and the memory;
a memory for storing operation instructions;
and a processor for executing the method of data processing of the first aspect of the present disclosure by invoking the operation instruction.
In a fourth aspect, the present disclosure provides a computer readable medium storing a computer program for use in performing the method of data processing of the first aspect of the present disclosure.
The technical scheme provided by the embodiment of the disclosure has at least the following beneficial effects:
the method comprises the steps of inputting test data of a plurality of first users for executing a plurality of tasks into an original system, obtaining first task data corresponding to each first user through the original system, inputting test data of the plurality of first users for executing the plurality of tasks into a target system, and obtaining second task data corresponding to each first user through the target system; determining the state type of the target system according to the first task data and the second task data; if the state type of the target system is a normal state, selecting a preset number of second users from all users preset in the original system, wherein all the users comprise a plurality of first users; inputting test data of a plurality of tasks respectively executed by a plurality of second users to a target system, and acquiring feedback information of task processing of the plurality of second users in the target system; and migrating all task data in the original system to the target system according to the feedback information, wherein all task data comprise first task data corresponding to each first user. In this way, the same test data are run in the target system and the original system, the first task data output by the target system and the second task data output by the original system are matched and checked, and further, a preset number of second users are selected from the original system to verify the target system under the condition that the target system is in a normal state, so that all the task data in the original system are migrated to the target system under the premise that the users have no perception and feedback has no accident as much as possible.
Additional aspects and advantages of the disclosure will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the disclosure.
Drawings
The above and other features, advantages, and aspects of embodiments of the present disclosure will become more apparent by reference to the following detailed description when taken in conjunction with the accompanying drawings. The same or similar reference numbers will be used throughout the drawings to refer to the same or like elements. It should be understood that the figures are schematic and that elements and components are not necessarily drawn to scale.
In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure, the drawings that are required to be used in the description of the embodiments of the present disclosure will be briefly introduced below.
FIG. 1 is a flow chart of a method for data processing according to an embodiment of the disclosure;
FIG. 2 is a flow chart of another method for data processing according to an embodiment of the present disclosure;
FIG. 3 is a schematic diagram of a data processing apparatus according to an embodiment of the disclosure;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure have been shown in the accompanying drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustration purposes only and are not intended to limit the scope of the present disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order and/or performed in parallel. Furthermore, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "including" and variations thereof as used herein are intended to be open-ended, i.e., including, but not limited to. The term "based on" is based at least in part on. The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments. Related definitions of other terms will be given in the description below.
It should be noted that the terms "first," "second," and the like in this disclosure are used merely to distinguish one device, module, or unit from another device, module, or unit, and are not intended to limit the order or interdependence of the functions performed by the devices, modules, or units.
It should be noted that references to "one", "a plurality" and "a plurality" in this disclosure are intended to be illustrative rather than limiting, and those of ordinary skill in the art will appreciate that "one or more" is intended to be understood as "one or more" unless the context clearly indicates otherwise.
The names of messages or information interacted between the various devices in the embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.
An embodiment of the present disclosure provides a method for processing data, a flowchart of which is shown in fig. 1, where the method includes:
s101, inputting test data of a plurality of first users for executing a plurality of tasks into an original system, obtaining first task data corresponding to each first user through the original system, inputting test data of the plurality of first users for executing the plurality of tasks into a target system, and obtaining second task data corresponding to each first user through the target system.
In an embodiment of the present disclosure, the data type of the first task data corresponding to each first user or the second task data corresponding to each first user includes at least one of the following:
live data of the completion phase of the mission, virtual account revenue data of the completion phase of the mission, live data during the operation of the mission, virtual account revenue data during the operation of the mission.
In the embodiment of the disclosure, since the tasks are performed by taking the user as a unit, each task in the original system corresponds to only one user, the correspondence between the task and the user is stored in the database, each task has a globally unique task identifier task_id, and each user corresponding to each task also has a globally unique user identifier user_id. Therefore, when the original system is migrated to the target system, the dimension of the user and the task is required, that is, the same user and the same task are ensured to exist in the same system.
In the embodiment of the disclosure, the test data includes a task identifier task_id of each task and a user identifier user_id of a user corresponding to each task.
In the embodiment of the disclosure, part of users are randomly extracted, and the same test data are simultaneously operated in the original system and the target system, but any information related to the task is not issued in the original system, and the users sense the task in the original system, namely the idle running data and only check the data.
In the embodiment of the disclosure, a user identifier user_id and a task identifier task_id are input in an original system and a target system, and task data related to a task, such as live broadcast data of a completion stage of the task, virtual account income data of the completion stage of the task, live broadcast data during operation of the task, virtual account income data during operation of the task and the like, are respectively counted. And outputting the task data of each user counted in the original system and the target system respectively in the original system and the target system.
S102, determining the state type of the target system according to the first task data and the second task data.
In the embodiment of the present disclosure, determining, according to the first task data and the second task data, a state type of a target system includes:
Performing offline calculation on the corresponding first task data and the corresponding second task data aiming at each first user;
when the first task data corresponding to each first user are matched and consistent with the corresponding second task data, determining that the target system is in a normal state;
and when the first task data corresponding to any first user is inconsistent with the corresponding second task data, determining that the target system is in an abnormal state.
In the embodiment of the disclosure, task data are processed in an original system and a target system at the same time, offline computation is performed on corresponding first task data and corresponding second task data, for example, data comparison is performed on corresponding first task data and corresponding second task data, and whether the task data of the same user in the original system and the target system are matched and consistent is confirmed.
In the embodiment of the disclosure, when the first task data corresponding to each first user are determined to be matched and consistent with the corresponding second task data, the target system is determined to be in a normal state, which indicates that the function of the target system is basically normal. When the first task data corresponding to any first user is inconsistent with the corresponding second task data, the target system is determined to be in an abnormal state, and the target system is possibly problematic and needs to be repaired.
S103, if the state type of the target system is a normal state, selecting a preset number of second users from all users preset in the original system, wherein all the users comprise a plurality of first users.
In the embodiment of the disclosure, all users and tasks in the target system are stopped, and all users only run tasks in the original system. And setting a user white list, wherein only white list users can run tasks in the target system, and non-white list users can only run tasks in the original system. A user whitelist is set for internal personnel testing.
In the embodiment of the disclosure, a plurality of second users are set as white list users for granting the plurality of second users the authority to perform task processing in the target system.
S104, inputting test data for executing the tasks by the second users to the target system, and acquiring feedback information for executing task processing in the target system by the second users.
In the embodiment of the present disclosure, inputting test data for executing a plurality of tasks by a plurality of second users to a target system, and obtaining feedback information for executing task processing by the plurality of second users in the target system, includes:
setting a plurality of second users as white list users for granting the plurality of second users the authority of task processing in a target system;
And in a preset time period, test data of a plurality of second users for executing a plurality of tasks are input to the target system, and feedback information of the plurality of second users for performing task processing in the target system is obtained, wherein the feedback information comprises that the target system is in a normal state or the target system is in an abnormal state.
In the embodiment of the disclosure, users are grouped in the original system and the target system, and the users are grouped by distinguishing the tail numbers of the user_ids of the users, for example, the user_id of one user is 12345, the tail number of the user_id is 45, 1% of the users in the group of the tail number 45 only perform tasks in the target system, 1% of the users in the group of the tail number 45 are a plurality of second users, the remaining 99% of the users in the group of the tail number 45 only perform tasks in the original system, and task data of the users are observed within a preset time period, for example, a preset time period is one week, and whether user feedback information exists or not is concerned.
And S105, migrating all task data in the original system to the target system according to the feedback information, wherein all task data comprise first task data corresponding to each first user.
In the embodiment of the present disclosure, according to feedback information, migrating all task data in an original system to a target system includes:
And when the feedback information comprises that the target system is in a normal state, migrating all task data in the original system to the target system.
In the embodiment of the disclosure, all task data is migrated to a target system, and an original system can be gradually disconnected; if serious problems occur in the migration process, the migration needs to be manually stopped and the system is switched back to the original system. And in the process of migrating all task data to the target system, only the range of tail numbers needs to be adjusted.
In the embodiment of the disclosure, test data of a plurality of first users for executing a plurality of tasks are input to an original system, first task data corresponding to each first user is obtained through the original system, the test data of the plurality of first users for executing the plurality of tasks are input to a target system, and second task data corresponding to each first user is obtained through the target system; determining the state type of the target system according to the first task data and the second task data; if the state type of the target system is a normal state, selecting a preset number of second users from all users preset in the original system, wherein all the users comprise a plurality of first users; inputting test data of a plurality of tasks respectively executed by a plurality of second users to a target system, and acquiring feedback information of task processing of the plurality of second users in the target system; and migrating all task data in the original system to the target system according to the feedback information, wherein all task data comprise first task data corresponding to each first user. In this way, the same test data are run in the target system and the original system, the first task data output by the target system and the second task data output by the original system are matched and checked, and further, a preset number of second users are selected from the original system to verify the target system under the condition that the target system is in a normal state, so that all the task data in the original system are migrated to the target system under the premise that the users have no perception and feedback has no accident as much as possible.
Another method for processing data is provided in an embodiment of the present disclosure, and a flowchart of the method is shown in fig. 2, where the method includes:
s201, randomly extracting a plurality of first users from the original system, and simultaneously running the same test data in the original system and the target system.
In the embodiment of the disclosure, test data of a plurality of first users for executing a plurality of tasks are input to an original system, first task data corresponding to each first user is obtained through the original system, test data of the plurality of first users for executing the plurality of tasks are input to a target system, and second task data corresponding to each first user is obtained through the target system.
In the embodiment of the disclosure, any information related to the task is not issued in the original system, and the user perceives the task in the original system, namely, the idle running data and only checks the data.
S202, performing off-line calculation on the first task data and the second task data, and confirming that the task data of the same user in the original system and the target system are matched and consistent.
In the embodiment of the disclosure, the first task data and the second task data are subjected to data comparison, and the task data of the same user in the original system and the target system are confirmed to be matched and consistent.
S203, stopping all users and tasks in the target system, wherein all users only run tasks in the original system.
S204, setting a user white list, wherein only white list users can run tasks in the target system, and non-white list users can only run tasks in the original system.
In the embodiment of the disclosure, a user white list is set for internal personnel testing.
S205, grouping users in an original system and a target system, and paying attention to whether user feedback information exists in a preset time period.
In the embodiment of the disclosure, users are grouped in the original system and the target system, and the users are grouped by distinguishing the tail numbers of the user_ids of the users, for example, the user_id of one user is 12345, the tail number of the user_id is 45, 1% of the users in the group of the tail number 45 only perform tasks in the target system, 1% of the users in the group of the tail number 45 are a plurality of second users, the remaining 99% of the users in the group of the tail number 45 only perform tasks in the original system, and task data of the users are observed within a preset time period, for example, a preset time period is one week, and whether user feedback information exists or not is concerned.
S206, when the feedback information comprises that the target system is in a normal state, all task data in the original system are migrated to the target system.
The application of the embodiment of the disclosure has at least the following beneficial effects:
the same test data are run in the target system and the original system, the first task data output by the target system and the second task data output by the original system are matched and checked, and further, a preset number of second users are selected from the original system to verify the target system under the condition that the target system is in a normal state, so that all the task data in the original system are migrated to the target system under the premise that the users have no perception and feedback and no accidents are achieved as much as possible.
Based on the same inventive concept, the embodiment of the present disclosure further provides a data processing apparatus, and a schematic structural diagram of the apparatus is shown in fig. 3, where the data processing apparatus 30 includes a first processing module 301, a second processing module 302, a third processing module 303, a fourth processing module 304, and a fifth processing module 305.
The first processing module 301 is configured to input test data for executing a plurality of tasks by a plurality of first users to an original system, obtain first task data corresponding to each first user through the original system, input test data for executing the plurality of tasks by the plurality of first users to a target system, and obtain second task data corresponding to each first user through the target system;
The second processing module 302 is configured to determine, according to the first task data and the second task data, a state type of the target system;
the third processing module 303 is configured to select a preset number of second users from all users preset in the original system if the state type of the target system is a normal state, where all users include a plurality of first users;
the fourth processing module 304 is configured to input test data for executing a plurality of tasks by a plurality of second users to the target system, and obtain feedback information for executing task processing by the plurality of second users in the target system;
and a fifth processing module 305, configured to migrate, according to the feedback information, all task data in the original system to the target system, where all task data includes first task data corresponding to each first user.
In the embodiment of the present disclosure, the second processing module 302 is specifically configured to perform offline calculation on the corresponding first task data and the corresponding second task data for each first user; when the first task data corresponding to each first user are matched and consistent with the corresponding second task data, determining that the target system is in a normal state; and when the first task data corresponding to any first user is inconsistent with the corresponding second task data, determining that the target system is in an abnormal state.
In the embodiment of the present disclosure, the fourth processing module 304 is specifically configured to set the plurality of second users as whitelist users, so as to grant the plurality of second users permission to perform task processing in the target system; and in a preset time period, test data of a plurality of second users for executing a plurality of tasks are input to the target system, and feedback information of the plurality of second users for performing task processing in the target system is obtained, wherein the feedback information comprises that the target system is in a normal state or the target system is in an abnormal state.
In the embodiment of the present disclosure, the fifth processing module 305 is specifically configured to migrate all task data in the original system to the target system when the feedback information includes that the target system is in a normal state.
In an embodiment of the present disclosure, the data type of the first task data corresponding to each first user or the second task data corresponding to each first user includes at least one of the following:
live data of the completion phase of the mission, virtual account revenue data of the completion phase of the mission, live data during the operation of the mission, virtual account revenue data during the operation of the mission.
The application of the embodiment of the disclosure has at least the following beneficial effects:
The method comprises the steps of inputting test data of a plurality of first users for executing a plurality of tasks into an original system, obtaining first task data corresponding to each first user through the original system, inputting test data of the plurality of first users for executing the plurality of tasks into a target system, and obtaining second task data corresponding to each first user through the target system; determining the state type of the target system according to the first task data and the second task data; if the state type of the target system is a normal state, selecting a preset number of second users from all users preset in the original system, wherein all the users comprise a plurality of first users; inputting test data of a plurality of tasks respectively executed by a plurality of second users to a target system, and acquiring feedback information of task processing of the plurality of second users in the target system; and migrating all task data in the original system to the target system according to the feedback information, wherein all task data comprise first task data corresponding to each first user. In this way, the same test data are run in the target system and the original system, the first task data output by the target system and the second task data output by the original system are matched and checked, and further, a preset number of second users are selected from the original system to verify the target system under the condition that the target system is in a normal state, so that all the task data in the original system are migrated to the target system under the premise that the users have no perception and feedback has no accident as much as possible.
The details of the data processing device provided in the embodiment of the present disclosure are not described in detail, and the method of data processing provided in the embodiment of the present disclosure may refer to the method of data processing provided in the embodiment of the present disclosure, and the beneficial effects that the data processing device provided in the embodiment of the present disclosure can achieve are the same as the method of data processing provided in the embodiment of the present disclosure, and are not described in detail herein.
Referring now to fig. 4, a schematic diagram of an electronic device 800 suitable for use in implementing embodiments of the present disclosure is shown. The terminal devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and the like, and stationary terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 4 is merely an example and should not be construed to limit the functionality and scope of use of the disclosed embodiments.
An electronic device includes: a memory and a processor, where the processor may be referred to as a processing device 801 described below, the memory may include at least one of a Read Only Memory (ROM) 802, a Random Access Memory (RAM) 803, and a storage device 808 described below, as shown in fig. 4 in particular:
The electronic device 800 may include a processing means (e.g., a central processor, a graphics processor, etc.) 801 that may perform various appropriate actions and processes in accordance with programs stored in a Read Only Memory (ROM) 802 or loaded from a storage 808 into a Random Access Memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the electronic device 800 are also stored. The processing device 801, the ROM 802, and the RAM 803 are connected to each other by a bus 804. An input/output (I/O) interface 805 is also connected to the bus 804.
In general, the following devices may be connected to the I/O interface 805: input devices 806 including, for example, a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, and the like; an output device 807 including, for example, a Liquid Crystal Display (LCD), speakers, vibrators, etc.; storage 808 including, for example, magnetic tape, hard disk, etc.; communication means 809. The communication means 809 may allow the electronic device 800 to communicate wirelessly or by wire with other devices to exchange data. While fig. 4 shows an electronic device 800 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may be implemented or provided instead.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a non-transitory computer readable medium, the computer program comprising program code for performing the method shown in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via communication device 809, or installed from storage device 808, or installed from ROM 802. The above-described functions defined in the methods of the embodiments of the present disclosure are performed when the computer program is executed by the processing device 801.
It should be noted that the computer readable medium described in the present disclosure may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this disclosure, a computer-readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present disclosure, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, fiber optic cables, RF (radio frequency), and the like, or any suitable combination of the foregoing.
In some implementations, the clients, servers may communicate using any currently known or future developed network protocol, such as HTTP (HyperTextTransfer Protocol ), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the internet (e.g., the internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed networks.
The computer readable medium may be contained in the electronic device; or may exist alone without being incorporated into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: the method comprises the steps of inputting test data of a plurality of first users for executing a plurality of tasks into an original system, obtaining first task data corresponding to each first user through the original system, inputting test data of the plurality of first users for executing the plurality of tasks into a target system, and obtaining second task data corresponding to each first user through the target system; determining the state type of the target system according to the first task data and the second task data; if the state type of the target system is a normal state, selecting a preset number of second users from all users preset in the original system, wherein all the users comprise a plurality of first users; inputting test data of a plurality of tasks respectively executed by a plurality of second users to a target system, and acquiring feedback information of task processing of the plurality of second users in the target system; and migrating all task data in the original system to the target system according to the feedback information, wherein all task data comprise first task data corresponding to each first user.
Computer program code for carrying out operations of the present disclosure may be written in one or more programming languages, including, but not limited to, an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules or units involved in the embodiments of the present disclosure may be implemented by means of software, or may be implemented by means of hardware. Where the name of a module or unit does not in some cases constitute a limitation of the unit itself.
The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: a Field Programmable Gate Array (FPGA), an Application Specific Integrated Circuit (ASIC), an Application Specific Standard Product (ASSP), a system on a chip (SOC), a Complex Programmable Logic Device (CPLD), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
According to one or more embodiments of the present disclosure, embodiments provide a method of data processing, comprising:
the method comprises the steps of inputting test data of a plurality of first users for executing a plurality of tasks into an original system, obtaining first task data corresponding to each first user through the original system, inputting test data of the plurality of first users for executing the plurality of tasks into a target system, and obtaining second task data corresponding to each first user through the target system;
determining the state type of the target system according to the first task data and the second task data;
if the state type of the target system is a normal state, selecting a preset number of second users from all users preset in the original system, wherein all the users comprise a plurality of first users;
inputting test data of a plurality of tasks respectively executed by a plurality of second users to a target system, and acquiring feedback information of task processing of the plurality of second users in the target system;
and migrating all task data in the original system to the target system according to the feedback information, wherein all task data comprise first task data corresponding to each first user.
In the embodiment of the present disclosure, determining, according to the first task data and the second task data, a state type of a target system includes:
Performing offline calculation on the corresponding first task data and the corresponding second task data aiming at each first user;
when the first task data corresponding to each first user are matched and consistent with the corresponding second task data, determining that the target system is in a normal state;
and when the first task data corresponding to any first user is inconsistent with the corresponding second task data, determining that the target system is in an abnormal state.
In the embodiment of the present disclosure, inputting test data for executing a plurality of tasks by a plurality of second users to a target system, and obtaining feedback information for executing task processing by the plurality of second users in the target system, includes:
setting a plurality of second users as white list users for granting the plurality of second users the authority of task processing in a target system;
and in a preset time period, test data of a plurality of second users for executing a plurality of tasks are input to the target system, and feedback information of the plurality of second users for performing task processing in the target system is obtained, wherein the feedback information comprises that the target system is in a normal state or the target system is in an abnormal state.
In the embodiment of the present disclosure, according to feedback information, migrating all task data in an original system to a target system includes:
And when the feedback information comprises that the target system is in a normal state, migrating all task data in the original system to the target system.
In an embodiment of the present disclosure, the data type of the first task data corresponding to each first user or the second task data corresponding to each first user includes at least one of the following:
live data of the completion phase of the mission, virtual account revenue data of the completion phase of the mission, live data during the operation of the mission, virtual account revenue data during the operation of the mission.
According to one or more embodiments of the present disclosure, embodiments provide an apparatus for data processing, including:
the first processing module is used for inputting test data of a plurality of first users for executing a plurality of tasks into an original system, obtaining first task data corresponding to each first user through the original system, inputting the test data of the plurality of first users for executing the tasks into a target system, and obtaining second task data corresponding to each first user through the target system;
the second processing module is used for determining the state type of the target system according to the first task data and the second task data;
The third processing module is used for selecting a preset number of second users from all users preset in the original system if the state type of the target system is a normal state, wherein all the users comprise a plurality of first users;
the fourth processing module is used for inputting test data for respectively executing a plurality of tasks by a plurality of second users to the target system and obtaining feedback information for the task processing of the plurality of second users in the target system;
and the fifth processing module is used for migrating all task data in the original system to the target system according to the feedback information, wherein all task data comprise first task data corresponding to each first user.
In the embodiment of the disclosure, the second processing module is specifically configured to perform offline calculation on the corresponding first task data and the corresponding second task data for each first user; when the first task data corresponding to each first user are matched and consistent with the corresponding second task data, determining that the target system is in a normal state; and when the first task data corresponding to any first user is inconsistent with the corresponding second task data, determining that the target system is in an abnormal state.
In the embodiment of the disclosure, the fourth processing module is specifically configured to set the plurality of second users as white list users, so as to grant the plurality of second users permission to perform task processing in the target system; and in a preset time period, test data of a plurality of second users for executing a plurality of tasks are input to the target system, and feedback information of the plurality of second users for performing task processing in the target system is obtained, wherein the feedback information comprises that the target system is in a normal state or the target system is in an abnormal state.
In the embodiment of the disclosure, the fifth processing module is specifically configured to migrate all task data in the original system to the target system when the feedback information includes that the target system is in a normal state.
In an embodiment of the present disclosure, the data type of the first task data corresponding to each first user or the second task data corresponding to each first user includes at least one of the following:
live data of the completion phase of the mission, virtual account revenue data of the completion phase of the mission, live data during the operation of the mission, virtual account revenue data during the operation of the mission.
The foregoing description is only of the preferred embodiments of the present disclosure and description of the principles of the technology being employed. It will be appreciated by persons skilled in the art that the scope of the disclosure referred to in this disclosure is not limited to the specific combinations of features described above, but also covers other embodiments which may be formed by any combination of features described above or equivalents thereof without departing from the spirit of the disclosure. Such as those described above, are mutually substituted with the technical features having similar functions disclosed in the present disclosure (but not limited thereto).
Moreover, although operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. In certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of the present disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are example forms of implementing the claims.

Claims (10)

1. A method of data processing, comprising:
the method comprises the steps of inputting test data of a plurality of first users for executing a plurality of tasks into an original system, obtaining first task data corresponding to each first user through the original system, inputting the test data of the plurality of first users for executing the tasks into a target system, and obtaining second task data corresponding to each first user through the target system; wherein, a task in the original system corresponds to a user, and the corresponding relation between the task and the user is stored in a database; the test data comprises a task identifier and a user identifier of a user corresponding to the task;
Determining the state type of the target system according to the first task data and the second task data;
if the state type of the target system is a normal state, selecting a preset number of second users from all users preset in the original system, wherein all users comprise the plurality of first users;
inputting test data of a plurality of tasks respectively executed by a plurality of second users to a target system, and acquiring feedback information of task processing of the plurality of second users in the target system;
and migrating all task data in the original system to the target system according to the feedback information, wherein all task data comprise the first task data corresponding to each first user.
2. The method of claim 1, wherein determining the type of state in which the target system is located based on the first task data and the second task data comprises:
performing offline calculation on the corresponding first task data and the corresponding second task data aiming at each first user;
when the first task data corresponding to each first user are matched and consistent with the corresponding second task data, determining that the target system is in a normal state;
And when the first task data corresponding to any first user is inconsistent with the corresponding second task data, determining that the target system is in an abnormal state.
3. The method according to claim 1, wherein inputting test data for executing a plurality of tasks by a plurality of second users to a target system and obtaining feedback information for executing task processing by the plurality of second users in the target system, respectively, comprises:
setting a plurality of second users as white list users for granting the plurality of second users the authority of task processing in the target system;
and in a preset time period, test data for respectively executing a plurality of tasks by the plurality of second users are input to a target system, and feedback information for performing task processing in the target system by the plurality of second users is obtained, wherein the feedback information comprises that the target system is in a normal state or the target system is in an abnormal state.
4. A method according to claim 3, wherein said migrating all task data in said original system to said target system based on said feedback information comprises:
And when the feedback information comprises that the target system is in a normal state, migrating all task data in the original system to the target system.
5. The method of claim 1, wherein the first task data corresponding to each first user or the data type of the second task data corresponding to each first user comprises at least one of:
live data of the completion phase of the mission, virtual account revenue data of the completion phase of the mission, live data during the operation of the mission, virtual account revenue data during the operation of the mission.
6. An apparatus for data processing, comprising:
the first processing module is used for inputting test data of a plurality of first users for executing a plurality of tasks into an original system, obtaining first task data corresponding to each first user through the original system, inputting the test data of the plurality of first users for executing the plurality of tasks into a target system, and obtaining second task data corresponding to each first user through the target system; wherein, a task in the original system corresponds to a user, and the corresponding relation between the task and the user is stored in a database; the test data comprises a task identifier and a user identifier of a user corresponding to the task;
The second processing module is used for determining the state type of the target system according to the first task data and the second task data;
the third processing module is used for selecting a preset number of second users from all users preset in the original system if the state type of the target system is a normal state, wherein all the users comprise the plurality of first users;
the fourth processing module is used for inputting test data for respectively executing a plurality of tasks by a plurality of second users to a target system and acquiring feedback information for the task processing of the plurality of second users in the target system;
and the fifth processing module is used for migrating all task data in the original system to the target system according to the feedback information, wherein the all task data comprises the first task data corresponding to each first user.
7. The apparatus according to claim 6, comprising:
the second processing module is specifically configured to perform offline calculation on the corresponding first task data and the corresponding second task data for each first user; when the first task data corresponding to each first user are matched and consistent with the corresponding second task data, determining that the target system is in a normal state; and when the first task data corresponding to any first user is inconsistent with the corresponding second task data, determining that the target system is in an abnormal state.
8. The apparatus according to claim 6, comprising:
the fourth processing module is specifically configured to set a plurality of second users as whitelist users, so as to grant the plurality of second users permission to perform task processing in the target system; and in a preset time period, test data for respectively executing a plurality of tasks by the plurality of second users are input to a target system, and feedback information for performing task processing in the target system by the plurality of second users is obtained, wherein the feedback information comprises that the target system is in a normal state or the target system is in an abnormal state.
9. An electronic device, comprising: a processor, a memory;
the memory is used for storing a computer program;
the processor being adapted to perform the method of data processing according to any of the preceding claims 1-5 by invoking the computer program.
10. A computer readable medium, characterized in that a computer program is stored for implementing a method of data processing according to any of claims 1-5 when being executed by a processor.
CN202010308067.7A 2020-04-17 2020-04-17 Data processing method, device, electronic equipment and computer readable medium Active CN111538717B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010308067.7A CN111538717B (en) 2020-04-17 2020-04-17 Data processing method, device, electronic equipment and computer readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010308067.7A CN111538717B (en) 2020-04-17 2020-04-17 Data processing method, device, electronic equipment and computer readable medium

Publications (2)

Publication Number Publication Date
CN111538717A CN111538717A (en) 2020-08-14
CN111538717B true CN111538717B (en) 2023-05-16

Family

ID=71978750

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010308067.7A Active CN111538717B (en) 2020-04-17 2020-04-17 Data processing method, device, electronic equipment and computer readable medium

Country Status (1)

Country Link
CN (1) CN111538717B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113961319B (en) * 2021-08-13 2023-11-07 抖音视界有限公司 Method and device for job hot migration, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005293184A (en) * 2004-03-31 2005-10-20 Seiko Epson Corp Reconstitution content decision system, server for management and information processor, reconstitution content decision system control program, server control program for management and information processor control program, and reconstitution content decision system control method, control method for controlling server for management and information processor control method
CN105630590A (en) * 2014-11-28 2016-06-01 阿里巴巴集团控股有限公司 Business information processing method and device
CN110471688A (en) * 2019-08-21 2019-11-19 深圳蓝贝科技有限公司 Operation system processing method, device, equipment and storage medium
CN110471712A (en) * 2019-08-12 2019-11-19 广州华多网络科技有限公司 Switching method, device, server and the storage medium of cross-system service
CN111198868A (en) * 2019-12-12 2020-05-26 北京淇瑀信息科技有限公司 Intelligent sub-database real-time data migration method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10229134B2 (en) * 2013-06-25 2019-03-12 Box, Inc. Systems and methods for managing upgrades, migration of user data and improving performance of a cloud-based platform

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005293184A (en) * 2004-03-31 2005-10-20 Seiko Epson Corp Reconstitution content decision system, server for management and information processor, reconstitution content decision system control program, server control program for management and information processor control program, and reconstitution content decision system control method, control method for controlling server for management and information processor control method
CN105630590A (en) * 2014-11-28 2016-06-01 阿里巴巴集团控股有限公司 Business information processing method and device
CN110471712A (en) * 2019-08-12 2019-11-19 广州华多网络科技有限公司 Switching method, device, server and the storage medium of cross-system service
CN110471688A (en) * 2019-08-21 2019-11-19 深圳蓝贝科技有限公司 Operation system processing method, device, equipment and storage medium
CN111198868A (en) * 2019-12-12 2020-05-26 北京淇瑀信息科技有限公司 Intelligent sub-database real-time data migration method and device

Also Published As

Publication number Publication date
CN111538717A (en) 2020-08-14

Similar Documents

Publication Publication Date Title
CN111581291B (en) Data processing method, device, electronic equipment and readable medium
CN113835992B (en) Memory leakage processing method and device, electronic equipment and computer storage medium
CN111679990B (en) Test data generation method and device, readable medium and electronic equipment
CN111274503B (en) Data processing method, device, electronic equipment and computer readable medium
CN111857720B (en) User interface state information generation method and device, electronic equipment and medium
CN111309304B (en) Method, device, medium and electronic equipment for generating IDL file
CN111625422B (en) Thread monitoring method, thread monitoring device, electronic equipment and computer readable storage medium
CN111324834B (en) Method, device, electronic equipment and computer readable medium for image-text mixed arrangement
CN110765752B (en) Test question generation method and device, electronic equipment and computer readable storage medium
CN112486825B (en) Multi-lane environment architecture system, message consumption method, device, equipment and medium
CN111460432B (en) On-line document authority control method, device, equipment and computer readable medium
CN112306685B (en) Task isolation method, device, electronic equipment and computer readable medium
CN111538717B (en) Data processing method, device, electronic equipment and computer readable medium
CN113391882B (en) Virtual machine memory management method and device, storage medium and electronic equipment
CN110764995B (en) Method, device, medium and electronic equipment for detecting file access abnormality
CN113176937A (en) Task processing method and device and electronic equipment
CN116319322B (en) Power equipment node communication connection method, device, equipment and computer medium
CN111626787B (en) Resource issuing method, device, medium and equipment
CN111367555B (en) Assertion method, assertion device, electronic equipment and computer readable medium
CN116489224B (en) Multi-cloud container scheduling method, device, equipment and storage medium
CN115878586B (en) IPFS storage encapsulation method and device, electronic equipment and readable storage medium
CN116755889B (en) Data acceleration method, device and equipment applied to server cluster data interaction
CN111552469B (en) File processing method and device in application engineering and electronic equipment
CN110489341B (en) Test method and device, storage medium and electronic equipment
CN117093284A (en) Plug-in calling method, device, medium and electronic 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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Applicant after: Tiktok vision (Beijing) Co.,Ltd.

Address before: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Applicant before: BEIJING BYTEDANCE NETWORK TECHNOLOGY Co.,Ltd.

Address after: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Applicant after: Douyin Vision Co.,Ltd.

Address before: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Applicant before: Tiktok vision (Beijing) Co.,Ltd.

GR01 Patent grant
GR01 Patent grant