CN112527628A - Configuration data synchronization method and device and electronic equipment - Google Patents

Configuration data synchronization method and device and electronic equipment Download PDF

Info

Publication number
CN112527628A
CN112527628A CN202011257692.XA CN202011257692A CN112527628A CN 112527628 A CN112527628 A CN 112527628A CN 202011257692 A CN202011257692 A CN 202011257692A CN 112527628 A CN112527628 A CN 112527628A
Authority
CN
China
Prior art keywords
configuration data
time
reference library
test system
synchronization
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.)
Pending
Application number
CN202011257692.XA
Other languages
Chinese (zh)
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.)
Beike Technology Co Ltd
Original Assignee
Beike Technology 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 Beike Technology Co Ltd filed Critical Beike Technology Co Ltd
Priority to CN202011257692.XA priority Critical patent/CN112527628A/en
Publication of CN112527628A publication Critical patent/CN112527628A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/368Test management for test version control, e.g. updating test cases to a new software version
    • 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/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the invention provides a configuration data synchronization method, a device and electronic equipment, wherein the method comprises the following steps: acquiring a version identifier of configuration data of an offline test system to be synchronized; inquiring corresponding configuration data effective time from a preset reference library based on the version identification, wherein the reference library stores configuration data of each version and effective records of the configuration data of each version, and the effective records comprise the version identification and the effective time of the configuration data; according to the configuration data validation time and the reference library synchronization time, the synchronous configuration data to be synchronized to the offline test system is obtained, and the synchronous configuration data is synchronized to the offline test system, wherein the reference library synchronization time refers to the time when the reference library and the offline test system perform configuration data synchronization at last.

Description

Configuration data synchronization method and device and electronic equipment
Technical Field
The present invention relates to the field of data synchronization technologies, and in particular, to a method and an apparatus for synchronizing configuration data, and an electronic device.
Background
The house property transaction process not only relates to a plurality of departments such as an assessment organization, a bank, a government and the like, but also has different local policies in different regions, so that the existing house property transaction process is generally set to be a configurable mode to support the personalized self-defined transaction process in all cities across the country. Therefore, each city is a personalized real estate transaction system.
And the offline test system and the online environment are usually isolated in the whole real estate transaction system, but all the control is carried out based on the configuration data of the online environment. When the configuration data of the offline test system is inconsistent with the configuration data of the online environment, the operation of the offline test system is inconsistent with the operation of the online environment system, so that the test effect of the offline test system is affected. Moreover, the problem that the off-line test system runs perfectly, but the on-line environment runs abnormally is easy to occur. Therefore, it is very necessary to ensure the consistency of the configuration data of the online environment and the offline test system.
Disclosure of Invention
Aiming at the problems in the prior art, the embodiment of the invention provides a configuration data synchronization method, a configuration data synchronization device and electronic equipment.
In a first aspect, an embodiment of the present invention provides a method for synchronizing configuration data, including:
acquiring a version identifier of configuration data of an offline test system to be synchronized;
inquiring corresponding configuration data effective time from a preset reference library based on the version identification, wherein the reference library stores configuration data of each version and effective records of the configuration data of each version, and the effective records comprise the version identification and the effective time of the configuration data;
and according to the effective time of the configuration data and the synchronous time of the reference library, acquiring synchronous configuration data to be synchronized to the offline test system, and synchronizing the synchronous configuration data to the offline test system, wherein the synchronous time of the reference library refers to the time when the reference library is finally synchronized with the configuration data of the offline test system.
Further, the acquiring the synchronous configuration data to be synchronized to the offline test system according to the configuration data effective time and the reference library synchronization time includes:
and if the effective time of the configuration data is greater than or equal to the synchronization time of the reference library, extracting the configuration data between the synchronization time of the reference library and the effective time of the configuration data corresponding to the version identification from the reference library, and taking the configuration data as the synchronization configuration data.
Further, the acquiring the synchronous configuration data to be synchronized to the offline test system according to the configuration data effective time and the reference library synchronization time further includes:
and if the effective time of the configuration data is less than the synchronization time of the reference library, extracting the configuration data corresponding to the version identification from the reference library, and taking the configuration data as the synchronization configuration data.
Further, when the version identifier of the configuration data of the offline test system to be synchronized is not obtained, the method further includes:
obtaining screening time, and confirming the effective time of the current configuration data according to the screening time;
and according to the current configuration data validation time, acquiring synchronous configuration data to be synchronized to the offline test system, and synchronizing the synchronous configuration data to the offline test system.
Further, the acquiring synchronous configuration data to be synchronized to the offline test system according to the current configuration data validation time and synchronizing the synchronous configuration data to the offline test system includes:
determining a corresponding current version identifier according to the effective time of the current configuration data;
and synchronizing the configuration data of the offline test system based on the current version identification.
Further, the configuration data synchronization method further includes:
acquiring synchronous configuration data to be synchronized to the offline test system according to the current configuration data validation time and the reference library synchronization time, wherein the method comprises the following steps:
and if the current configuration data effective time is larger than or equal to the reference library synchronous time, extracting the configuration data between the reference library synchronous time and the current configuration data effective time corresponding to the current version identification from the reference library, and taking the configuration data as the synchronous configuration data.
Further, the acquiring the synchronous configuration data to be synchronized to the offline test system according to the current configuration data effective time and the reference library synchronous time further includes:
and if the effective time of the current configuration data is less than the synchronization time of the reference library, extracting the configuration data corresponding to the current version identification from the reference library, and taking the configuration data as the synchronization configuration data.
In a second aspect, an embodiment of the present invention provides a configuration data synchronization apparatus, including:
the acquisition module is used for acquiring the version identification of the configuration data of the offline test system to be synchronously fed;
the query module is used for querying the corresponding configuration data validation time from a preset reference library based on the version identification, wherein the reference library stores the configuration data of each version and the validation record of the configuration data of each version, and the validation record comprises the version identification and the configuration data validation time;
and the synchronization module is used for acquiring synchronous configuration data to be synchronized to the offline test system according to the effective time of the configuration data and the synchronous time of the reference library, and synchronizing the synchronous configuration data to the offline test system, wherein the synchronous time of the reference library refers to the time when the reference library is finally synchronized with the configuration data of the offline test system.
Further, the synchronization module is further configured to:
and if the effective time of the configuration data is greater than or equal to the synchronization time of the reference library, extracting the configuration data between the synchronization time of the reference library and the effective time of the configuration data corresponding to the version identification from the reference library, and taking the configuration data as the synchronization configuration data.
Further, the synchronization module is further configured to:
and if the effective time of the configuration data is less than the synchronization time of the reference library, extracting the configuration data corresponding to the version identification from the reference library, and taking the configuration data as the synchronization configuration data.
Further, the configuration data synchronization apparatus further includes:
the system comprises a screening time module, a data processing module and a data processing module, wherein the screening time module is used for obtaining screening time when the version identification of the configuration data of the offline test system to be synchronized is not obtained, and confirming the effective time of the current configuration data according to the screening time;
correspondingly, the synchronization module is configured to obtain the synchronous configuration data to be synchronized to the offline test system according to the current configuration data validation time, and synchronize the synchronous configuration data to the offline test system.
Further, the synchronization module is specifically configured to:
determining a corresponding current version identifier according to the effective time of the current configuration data;
and synchronizing the configuration data of the offline test system based on the current version identification.
Further, the synchronization module is further configured to:
and if the current configuration data effective time is larger than or equal to the reference library synchronous time, extracting the configuration data between the reference library synchronous time and the current configuration data effective time corresponding to the current version identification from the reference library, and taking the configuration data as the synchronous configuration data.
Further, the synchronization module is further configured to:
and if the effective time of the current configuration data is less than the synchronization time of the reference library, extracting the configuration data corresponding to the current version identification from the reference library, and taking the configuration data as the synchronization configuration data.
In a third aspect, an embodiment of the present invention provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the configuration data synchronization method when executing the computer program.
In a fourth aspect, an embodiment of the present invention provides a non-transitory computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the above-mentioned configuration data synchronization method.
The embodiment of the invention provides a method, a device and electronic equipment for synchronizing configuration data, wherein the method comprises the steps of acquiring a version identifier of the configuration data of an offline test system to be synchronized, inquiring the effective time of the configuration data corresponding to the version identifier from a preset reference library based on the version identifier, acquiring the synchronous configuration data of the offline test system to be synchronized according to the effective time of the configuration data and the time of the reference library for synchronizing the configuration data with the offline test system finally, and synchronizing the synchronous configuration data to the offline test system finally so that the offline test system and the online environment configuration data are kept consistent to ensure the accuracy of the test process and the verification result of various offline test systems in a real use scene and provide accurate and reliable basis for the recurrence of abnormal problem conditions, thereby accurately determining the initiation cause of the abnormal conditions, the house property transaction system is convenient to regulate and control.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a first flowchart of a configuration data synchronization method according to an embodiment of the present invention;
fig. 2 is a second flowchart of a configuration data synchronization method according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a configuration data synchronization apparatus according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Reference numerals:
301: an acquisition module; 302: a query module; 303: a synchronization module;
401: a processor; 402: a communication interface; 403: a memory; 404: a communication bus.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention provides a configuration data synchronization method, which comprises the following steps:
acquiring a version identifier of configuration data of an offline test system to be synchronized;
inquiring corresponding configuration data effective time from a preset reference library based on the version identification, wherein the reference library stores configuration data of each version and effective records of the configuration data of each version, and the effective records comprise the version identification and the effective time of the configuration data;
and according to the configuration data effective time and the reference library synchronization time, acquiring synchronous configuration data to be synchronized to the offline test system, and synchronizing the synchronous configuration data to the offline test system, wherein the reference library synchronization time refers to the time when the reference library is finally synchronized with the offline test system in configuration data.
The configuration data synchronization method provided by the embodiment of the invention comprises the steps of acquiring the version identification of the configuration data of the offline test system to be synchronized, inquiring the configuration data validation time corresponding to the version identification from a preset reference library based on the version identification, acquiring the synchronization configuration data of the offline test system to be synchronized according to the configuration data validation time and the time of the configuration data synchronization of the reference library and the offline test system, and synchronizing the synchronization configuration data to the offline test system to ensure that the offline test system and the online environment configuration data are consistent so as to ensure the accuracy of the test process and the verification result of various offline test systems in a real use scene, and providing accurate and reliable basis for the recurrence of abnormal problem conditions, thereby accurately determining the initiation cause of the abnormal conditions, the house property transaction system is convenient to regulate and control.
The configuration data synchronization method provided by the embodiment of the invention is explained in more detail below.
In a first aspect, an embodiment of the present invention provides a configuration data synchronization method, which may be applied to a real estate transaction system, fig. 1 is a schematic flow chart of the configuration data synchronization method provided in the embodiment of the present invention, and as shown in fig. 1, the method includes:
s101, acquiring a version identifier of configuration data of an offline test system to be synchronized;
and acquiring the version identification of the configuration data of the offline test system to be synchronized, wherein the version identification is used as a basis for searching the corresponding configuration data. For example, a preset version number md5 is obtained.
S102, inquiring corresponding configuration data effective time from a preset reference library based on the version identification, wherein the reference library stores configuration data of each version and effective records of the configuration data of each version, and the effective records comprise the version identification and the effective time of the configuration data;
in a real estate transaction system, configuration data is usually non-sensitive information data, and the configuration data is usually data configured firstly in an online environment, but the online environment configuration data needs to be synchronized with an offline test system to ensure the consistency of the online and offline data. The reference library is set as a conversion medium for the synchronous data of the online environment to the offline test system, and the configuration data and the related information of the online environment can be synchronized into the reference library in real time at the early stage of presetting, so that each subsequent offline test system takes the reference library as the reference and pulls data from the reference library for synchronization.
That is, the reference library may store in advance configuration data of each version of the real estate transaction system and an effective record of the configuration data of each version, where the effective record includes a version identifier and an effective time of the configuration data, and the version identifier of the configuration data is unique, which may be understood that the configuration data of each version has only a uniquely determined version number; and the effective time of the configuration data of each version of the configuration data is unique, and the effective time of each version is gradually updated along with the update of the version.
Based on the determined version number md5, the configuration data validation time of the configuration data corresponding to the version number md5 is queried from a preset reference library.
S103, acquiring synchronous configuration data to be synchronized to the offline test system according to the configuration data effective time and the reference library synchronous time, and synchronizing the synchronous configuration data to the offline test system, wherein the reference library synchronous time refers to the time when the reference library and the offline test system perform configuration data synchronization at last;
each time the process of data synchronization from the reference library to the offline test system is based on the above synchronization, that is, the time when the last time the reference library and the offline test system perform configuration data synchronization is determined as the synchronization time of the reference library, the configuration data effective time determined in step S102 is compared with the synchronization time of the reference library, and according to the comparison result of the two, the time period without data synchronization or the configuration data without data synchronization is determined, so as to determine the synchronization configuration data, and synchronize the synchronization configuration data to the offline test system, so that the data of the offline test system and the data in the reference library are kept consistent.
Specifically, if the configuration data effective time is greater than or equal to the reference library synchronization time, the time period in which data synchronization is not performed is a first time period from the reference library synchronization time as a starting point to the configuration data effective time as a stopping point, and data in the reference library corresponding to the first time period is pulled out to be used as synchronous configuration data and synchronized to the offline test system;
and if the effective time of the configuration data is less than the synchronization time of the reference library, the configuration data which is not subjected to data synchronization is the configuration data of the version corresponding to the effective time of the configuration data, and the configuration data is taken as the synchronization configuration data and is synchronized to the offline test system.
The configuration data synchronization method provided by the embodiment of the invention can be understood as that the configuration data of the offline test system is synchronized in real time by specifying the version number of the configuration data, the version identification of the configuration data to be synchronized to the offline test system is obtained, the configuration data validation time corresponding to the version identification is inquired from the preset reference library based on the version identification, the synchronous configuration data to be synchronized to the offline test system is obtained according to the configuration data validation time and the time when the configuration data is synchronized with the offline test system finally according to the reference library, and finally the synchronous configuration data is synchronized to the offline test system, so that the offline test system and the online environment configuration data are kept consistent, the accuracy of the test process and the verification result of various offline test systems in a real use scene is ensured, and accurate and reliable basis can be provided for the recurrence of abnormal problem conditions, therefore, the cause of the abnormal condition can be accurately determined, and the house property transaction system is convenient to regulate and control.
Fig. 2 is a second flowchart of a configuration data synchronization method according to an embodiment of the present invention, as shown in fig. 2, in step S103 (see a dashed box in fig. 2) of the method based on the embodiment shown in fig. 1, the acquiring synchronization configuration data to be synchronized to the offline test system according to the configuration data validation time and the reference library synchronization time includes:
and if the effective time of the configuration data is greater than or equal to the synchronization time of the reference library, extracting the configuration data between the synchronization time of the reference library and the effective time of the configuration data corresponding to the version identification from the reference library, and taking the configuration data as the synchronization configuration data.
If the configuration data effective time is larger than or equal to the reference library synchronous time, the time period without data synchronization is a first time period which takes the reference library synchronous time as a starting point and takes the configuration data which corresponds to the first time period and is between the reference library synchronous time and the configuration data effective time corresponding to the version identification from the reference library, the configuration data is pulled out to be used as synchronous configuration data, and the determined synchronous configuration data is synchronized to the off-line test system. The synchronous configuration data can be understood as incremental data after the reference library is synchronized to the offline test system, only the incremental data needs to be synchronized to the offline test system at the moment, and the reference data of the reference library synchronized to the offline test system does not need to be synchronized again, so that the data operation amount in the synchronization process is reduced, and the operation burden is reduced.
As shown in fig. 2, on the basis of the embodiment shown in fig. 1, in step S103 (see a dashed line frame in fig. 2), the method obtains the synchronous configuration data to be synchronized to the offline test system according to the configuration data validation time and the reference library synchronization time, and further includes:
and if the effective time of the configuration data is less than the synchronization time of the reference library, extracting the configuration data corresponding to the version identification from the reference library, and taking the configuration data as the synchronization configuration data.
And finally, synchronously feeding the determined synchronous configuration data to an offline test system.
If the effective time of the configuration data is less than the synchronization time of the reference library, the configuration data which is not subjected to data synchronization is the configuration data of the version corresponding to the effective time of the configuration data, the configuration data of the version corresponding to the effective time of the configuration data is pulled out from the reference library to be used as the synchronization configuration data, and finally the determined synchronization configuration data is synchronized to the offline test system. The synchronous configuration data may be understood as all configuration data of a certain version before the reference library synchronizes with the offline test system, and at this time, all configuration data corresponding to the version need to be synchronized to the offline test system, or even all configuration data corresponding to the version and each version before the version may be fully synchronized to the offline test system.
On the basis of the above embodiment, when the version identifier of the configuration data of the offline test system to be synchronized is not obtained, the configuration data synchronization method further includes:
obtaining screening time, and confirming the effective time of the current configuration data according to the screening time;
in this embodiment, when the version identifier of the configuration data to be synchronized to the offline test system is not obtained, it may be understood that the configuration data version number is not specified, and at this time, a screening time is obtained or a screening time is customized, where the screening time may be customized according to the time for automatically reporting the abnormal problem in the online environment. And confirming the configuration data effective time which is the latest time before the screening time as the current configuration data effective time.
According to the current configuration data validation time, acquiring synchronous configuration data to be synchronized to the offline test system, and synchronizing the synchronous configuration data to the offline test system;
and comparing the determined effective time of the current configuration data with the synchronization time of the reference library, determining a time period without data synchronization or determining the configuration data without data synchronization according to the comparison result of the two, so as to determine the synchronous configuration data, and synchronizing the synchronous configuration data to the offline test system, so that the data of the offline test system is consistent with the data in the reference library.
On the basis of the above embodiment, the acquiring, according to the current configuration data validation time, the synchronous configuration data to be synchronized to the offline test system, and synchronizing the synchronous configuration data to the offline test system includes:
determining a corresponding current version identifier according to the effective time of the current configuration data; and synchronizing the configuration data of the offline test system based on the current version identification.
And determining a corresponding current version identifier and a uniquely determined version number according to the current configuration data validation time, inquiring configuration data validation time (which is the same as the current configuration data validation time) of configuration data corresponding to the version number from a preset reference library according to the determined version number, determining a time period without data synchronization or determining configuration data without data synchronization according to a comparison result of the current configuration data validation time and the reference library synchronization time, so as to determine synchronous configuration data, and synchronizing the synchronous configuration data to the offline testing system, so that the data of the offline testing system is consistent with the data in the reference library.
On the basis of the above embodiment, the configuration data synchronization method further includes:
acquiring synchronous configuration data of the offline test system to be synchronized according to the current configuration data validation time and the reference library synchronization time, wherein the synchronous configuration data comprises the following steps:
and if the current configuration data effective time is larger than or equal to the reference library synchronous time, extracting the configuration data between the reference library synchronous time and the current configuration data effective time corresponding to the current version identification from the reference library, and taking the configuration data as the synchronous configuration data.
The principle of this step is completely the same as that of sub-step one (shown by the content of the left box in the dashed box) in step S103 of the method shown in fig. 2, and is not described herein again.
On the basis of the above embodiment, the acquiring, according to the current configuration data validation time and the reference library synchronization time, the synchronous configuration data of the offline test system to be synchronized further includes:
and if the effective time of the current configuration data is less than the synchronization time of the reference library, extracting the configuration data corresponding to the current version identification from the reference library, and taking the configuration data as the synchronization configuration data.
The principle of this step is completely the same as that of sub-step two (shown by the content of the right frame in the dashed frame) in step S103 of the method shown in fig. 2, and is not described here again.
On the basis of the above embodiment, the configuration data synchronization method further includes:
and if the version identification and the effective time of the current configuration data cannot be determined, after the synchronization time of the reference library, dynamically synchronizing the latest version of configuration data after the synchronization time of the reference library to the offline test system in real time by taking the configuration data as the synchronization configuration data, so that the data of the offline test system is consistent with the data in the reference library.
In a second aspect, an embodiment of the present invention provides a configuration data synchronization apparatus, which can be applied to a real estate transaction system, and fig. 3 is a schematic structural diagram of the configuration data synchronization apparatus provided in the embodiment of the present invention, as shown in fig. 3, the apparatus includes: an acquisition module 301, a query module 302 and a synchronization module 303,
wherein:
the obtaining module 301 is configured to obtain a version identifier of configuration data to be synchronously provided to the offline test system. For example: and acquiring the version identification of the configuration data of the current off-line test system needing to be synchronously provided, wherein the version identification is used as a basis for searching the corresponding configuration data. For example, a preset version number md5 is obtained.
The query module 302 is configured to query, based on the version identifier, the corresponding configuration data validation time from a preset reference library, where the reference library stores configuration data of each version and validation records of the configuration data of each version, and the validation records include the version identifier and the configuration data validation time;
the configuration data of each version of the real estate transaction system and the effective record of the configuration data of each version can be prestored in the reference library, the effective record comprises version identification and effective time of the configuration data, the version identification of the configuration data is unique, and the configuration data of each version only has a uniquely determined version number; and the effective time of the configuration data of each version of the configuration data is unique, and the effective time of each version is gradually updated along with the update of the version.
The query module 302 queries the configuration data validation time of the configuration data corresponding to the version number md5 from a preset reference library based on the determined version number md 5.
A synchronization module 303, configured to obtain synchronous configuration data to be synchronized to the offline test system according to the configuration data validation time and the reference library synchronization time, and synchronize the synchronous configuration data to the offline test system, where the reference library synchronization time is a time when the reference library and the offline test system perform configuration data synchronization at last;
each time the process of data synchronization from the reference library to the offline test system is based on the above synchronization, that is, the time when the last time the reference library and the offline test system perform configuration data synchronization is determined as the synchronization time of the reference library, the synchronization module 303 compares the effective time of the configuration data determined by the query module 302 with the synchronization time of the reference library, and determines the time period in which data synchronization is not performed or determines the configuration data in which data synchronization is not performed according to the comparison result of the two, so as to determine the synchronization configuration data, and synchronizes the synchronization configuration data to the offline test system, so that the data of the offline test system and the data in the reference library are kept consistent.
Specifically, if the configuration data effective time is greater than or equal to the reference library synchronization time, the time period in which data synchronization is not performed is a first time period from the reference library synchronization time as a starting point to the configuration data effective time as a stopping point, and data in the reference library corresponding to the first time period is pulled out to be used as synchronous configuration data and synchronized to the offline test system;
and if the effective time of the configuration data is less than the synchronization time of the reference library, the configuration data which is not subjected to data synchronization is the configuration data of the version corresponding to the effective time of the configuration data, and the configuration data is taken as the synchronization configuration data and is synchronized to the offline test system.
The configuration data synchronization device provided by the embodiment of the invention has the advantages that the modules are sequentially connected and work in a mutually matched manner, so that the device acquires the version identification of the configuration data of the offline test system to be synchronized, inquires the configuration data validation time corresponding to the version identification from the preset reference library based on the version identification, acquires the synchronous configuration data of the offline test system to be synchronized according to the configuration data validation time and the time when the configuration data of the reference library is finally synchronized with the offline test system, and synchronizes the synchronous configuration data to the offline test system so that the offline test system and the online environment configuration data are kept consistent, thereby ensuring the accuracy of the test process and the verification result of various offline test systems in a real use scene, and providing an accurate and reliable basis for the recurrence of abnormal problem conditions, therefore, the cause of the abnormal condition can be accurately determined, and the house property transaction system is convenient to regulate and control.
On the basis of the foregoing embodiment, the synchronization module 303 is further configured to:
and if the effective time of the configuration data is greater than or equal to the synchronization time of the reference library, extracting the configuration data between the synchronization time of the reference library and the effective time of the configuration data corresponding to the version identification from the reference library, and taking the configuration data as the synchronization configuration data.
On the basis of the foregoing embodiment, the synchronization module 303 is further configured to:
and if the effective time of the configuration data is less than the synchronization time of the reference library, extracting the configuration data corresponding to the version identification from the reference library, and taking the configuration data as the synchronization configuration data.
On the basis of the above embodiment, the configuration data synchronization apparatus further includes:
a screening time module (not shown in fig. 3) configured to obtain screening time when the version identifier of the configuration data of the offline test system to be synchronized is not obtained, and determine the validation time of the current configuration data according to the screening time;
correspondingly, the synchronization module 303 is configured to obtain the synchronous configuration data to be synchronized to the offline test system according to the current configuration data validation time, and synchronize the synchronous configuration data to the offline test system.
On the basis of the foregoing embodiment, the synchronization module 303 is specifically configured to:
determining a corresponding current version identifier according to the effective time of the current configuration data;
and synchronizing the configuration data of the offline test system based on the current version identification.
On the basis of the foregoing embodiment, the synchronization module 303 is further configured to:
and if the current configuration data effective time is larger than or equal to the reference library synchronous time, extracting the configuration data between the reference library synchronous time and the current configuration data effective time corresponding to the current version identification from the reference library, and taking the configuration data as the synchronous configuration data.
On the basis of the foregoing embodiment, the synchronization module 303 is further configured to:
and if the effective time of the current configuration data is less than the synchronization time of the reference library, extracting the configuration data corresponding to the current version identification from the reference library, and taking the configuration data as the synchronization configuration data.
In a third aspect, an embodiment of the present invention provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor executes the computer program to implement the steps of the configuration data synchronization method described above. Fig. 4 illustrates a physical structure diagram of the electronic device, and as shown in fig. 4, the electronic device includes: a processor (processor)401, a communication Interface (communication Interface)402, a memory (memory)403 and a communication bus 404, wherein the processor 401, the communication Interface 402 and the memory 403 communicate with each other via the communication bus 404. Processor 401 may call logic instructions in memory 403 to perform the configuration data synchronization method provided by the above-described method embodiments, the method comprising:
acquiring a version identifier of configuration data of an offline test system to be synchronized;
inquiring corresponding configuration data effective time from a preset reference library based on the version identification, wherein the reference library stores configuration data of each version and effective records of the configuration data of each version, and the effective records comprise the version identification and the effective time of the configuration data;
and according to the effective time of the configuration data and the synchronous time of the reference library, acquiring synchronous configuration data to be synchronized to the offline test system, and synchronizing the synchronous configuration data to the offline test system, wherein the synchronous time of the reference library refers to the time when the reference library is finally synchronized with the configuration data of the offline test system.
In addition, the logic instructions in the memory 403 may be implemented in the form of software functional units and stored in a computer readable storage medium when the software functional units are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the configuration data synchronization method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In addition, an embodiment of the present invention further provides a computer program product, where the computer program product includes a computer program stored on a non-transitory computer-readable storage medium, the computer program includes program instructions, and when the program instructions are executed by a computer, the computer can execute the configuration data synchronization method provided by the above-mentioned method embodiments, where the method includes:
acquiring a version identifier of configuration data of an offline test system to be synchronized;
inquiring corresponding configuration data effective time from a preset reference library based on the version identification, wherein the reference library stores configuration data of each version and effective records of the configuration data of each version, and the effective records comprise the version identification and the effective time of the configuration data;
and according to the effective time of the configuration data and the synchronous time of the reference library, acquiring synchronous configuration data to be synchronized to the offline test system, and synchronizing the synchronous configuration data to the offline test system, wherein the synchronous time of the reference library refers to the time when the reference library is finally synchronized with the configuration data of the offline test system.
In a fourth aspect, an embodiment of the present invention provides a non-transitory computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the configuration data synchronization method provided in the foregoing embodiments, where the method includes:
acquiring a version identifier of configuration data of an offline test system to be synchronized;
inquiring corresponding configuration data effective time from a preset reference library based on the version identification, wherein the reference library stores configuration data of each version and effective records of the configuration data of each version, and the effective records comprise the version identification and the effective time of the configuration data;
and according to the effective time of the configuration data and the synchronous time of the reference library, acquiring synchronous configuration data to be synchronized to the offline test system, and synchronizing the synchronous configuration data to the offline test system, wherein the synchronous time of the reference library refers to the time when the reference library is finally synchronized with the configuration data of the offline test system.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A method for synchronizing configuration data, comprising:
acquiring a version identifier of configuration data of an offline test system to be synchronized;
inquiring corresponding configuration data effective time from a preset reference library based on the version identification, wherein the reference library stores configuration data of each version and effective records of the configuration data of each version, and the effective records comprise the version identification and the effective time of the configuration data;
and according to the effective time of the configuration data and the synchronous time of the reference library, acquiring synchronous configuration data to be synchronized to the offline test system, and synchronizing the synchronous configuration data to the offline test system, wherein the synchronous time of the reference library refers to the time when the reference library is finally synchronized with the configuration data of the offline test system.
2. The method for synchronizing configuration data according to claim 1, wherein the obtaining of the synchronized configuration data to be synchronized to the offline test system according to the configuration data validation time and the reference library synchronization time comprises:
and if the effective time of the configuration data is greater than or equal to the synchronization time of the reference library, extracting the configuration data between the synchronization time of the reference library and the effective time of the configuration data corresponding to the version identification from the reference library, and taking the configuration data as the synchronization configuration data.
3. The method according to claim 1 or 2, wherein the obtaining of the synchronous configuration data to be synchronized to the offline test system according to the configuration data validation time and the reference library synchronization time further comprises:
and if the effective time of the configuration data is less than the synchronization time of the reference library, extracting the configuration data corresponding to the version identification from the reference library, and taking the configuration data as the synchronization configuration data.
4. The configuration data synchronization method according to any one of claims 1 to 3, wherein when the version identifier of the configuration data to be synchronized to the offline test system is not obtained, the method further comprises:
obtaining screening time, and confirming the effective time of the current configuration data according to the screening time;
and according to the current configuration data validation time, acquiring synchronous configuration data to be synchronized to the offline test system, and synchronizing the synchronous configuration data to the offline test system.
5. The method according to claim 4, wherein the obtaining synchronous configuration data to be synchronized to the offline test system according to the current configuration data validation time and synchronizing the synchronous configuration data to the offline test system comprises:
determining a corresponding current version identifier according to the effective time of the current configuration data;
and synchronizing the configuration data of the offline test system based on the current version identification.
6. The configuration data synchronization method according to claim 4, further comprising:
acquiring synchronous configuration data to be synchronized to the offline test system according to the current configuration data validation time and the reference library synchronization time, wherein the method comprises the following steps:
and if the current configuration data effective time is larger than or equal to the reference library synchronous time, extracting the configuration data between the reference library synchronous time and the current configuration data effective time corresponding to the current version identification from the reference library, and taking the configuration data as the synchronous configuration data.
7. The method according to claim 6, wherein the obtaining of the synchronous configuration data to be synchronized to the offline test system according to the current configuration data validation time and the reference library synchronization time further comprises:
and if the effective time of the current configuration data is less than the synchronization time of the reference library, extracting the configuration data corresponding to the current version identification from the reference library, and taking the configuration data as the synchronization configuration data.
8. A configuration data synchronization apparatus, comprising:
the acquisition module is used for acquiring the version identification of the configuration data of the offline test system to be synchronously fed;
the query module is used for querying the corresponding configuration data validation time from a preset reference library based on the version identification, wherein the reference library stores the configuration data of each version and the validation record of the configuration data of each version, and the validation record comprises the version identification and the configuration data validation time;
and the synchronization module is used for acquiring synchronous configuration data to be synchronized to the offline test system according to the effective time of the configuration data and the synchronous time of the reference library, and synchronizing the synchronous configuration data to the offline test system, wherein the synchronous time of the reference library refers to the time when the reference library is finally synchronized with the configuration data of the offline test system.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the configuration data synchronization method according to any of claims 1 to 7 when executing the computer program.
10. A non-transitory computer readable storage medium, on which a computer program is stored, wherein the computer program, when executed by a processor, implements the steps of the configuration data synchronization method according to any one of claims 1 to 7.
CN202011257692.XA 2020-11-11 2020-11-11 Configuration data synchronization method and device and electronic equipment Pending CN112527628A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011257692.XA CN112527628A (en) 2020-11-11 2020-11-11 Configuration data synchronization method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011257692.XA CN112527628A (en) 2020-11-11 2020-11-11 Configuration data synchronization method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN112527628A true CN112527628A (en) 2021-03-19

Family

ID=74981727

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011257692.XA Pending CN112527628A (en) 2020-11-11 2020-11-11 Configuration data synchronization method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN112527628A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113496005A (en) * 2021-05-26 2021-10-12 北京房多多信息技术有限公司 Information management method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110295802A1 (en) * 2010-05-28 2011-12-01 Microsoft Corporation Scalable policy-based database synchronization of scopes
CN107590207A (en) * 2017-08-24 2018-01-16 阿里巴巴集团控股有限公司 Method of data synchronization and device, electronic equipment
WO2018219178A1 (en) * 2017-05-27 2018-12-06 Oppo广东移动通信有限公司 Data synchronization method and apparatus, server, and storage medium
CN109558458A (en) * 2018-12-30 2019-04-02 贝壳技术有限公司 Method of data synchronization, configuration platform, transaction platform and data synchronous system
CN110543469A (en) * 2019-08-28 2019-12-06 贝壳技术有限公司 Database version management method and server

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110295802A1 (en) * 2010-05-28 2011-12-01 Microsoft Corporation Scalable policy-based database synchronization of scopes
WO2018219178A1 (en) * 2017-05-27 2018-12-06 Oppo广东移动通信有限公司 Data synchronization method and apparatus, server, and storage medium
CN107590207A (en) * 2017-08-24 2018-01-16 阿里巴巴集团控股有限公司 Method of data synchronization and device, electronic equipment
CN109558458A (en) * 2018-12-30 2019-04-02 贝壳技术有限公司 Method of data synchronization, configuration platform, transaction platform and data synchronous system
CN110543469A (en) * 2019-08-28 2019-12-06 贝壳技术有限公司 Database version management method and server

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113496005A (en) * 2021-05-26 2021-10-12 北京房多多信息技术有限公司 Information management method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN109542529B (en) Function name-based point burying method and device, computer equipment and storage medium
EP3015987A1 (en) System update method, apparatus, and device
CN107992537A (en) Service attribute transmission method, device, computer equipment and storage medium
CN110737719B (en) Data synchronization method, device, equipment and computer readable storage medium
CN111190962A (en) File synchronization method and device and local terminal
CN111460474A (en) Method and device for realizing decentralized prediction machine, storage and computer
CN112527628A (en) Configuration data synchronization method and device and electronic equipment
CN113868228A (en) Data synchronization method, device, equipment and computer readable storage medium
CN114416868B (en) Data synchronization method, device, equipment and storage medium
CN107016075A (en) Company-data synchronous method and device
CN106383755A (en) Method, apparatus and system for recovering slave database from master-slave database system
CN111314221A (en) Service processing method, device, equipment and computer readable storage medium
CN111338869B (en) Configuration parameter management method, device, equipment and storage medium
CN110188081B (en) Log data storage method and device based on cassandra database and computer equipment
CN108737184B (en) Management method and device of disaster recovery system
CN109766235A (en) Configuration file detection method, system, equipment and medium based on software supervision
CN112883050B (en) Data changing method and device of database
CN111443925B (en) Mirror image installation method, primary and secondary servers, system, electronic equipment and storage medium
CN114942838A (en) Data access method, device, equipment and storage medium
CN110162461B (en) Data synchronization verification method and device and computer equipment
CN114490196A (en) Database switching method, system, device and medium
CN112765188A (en) Configuration information processing method, configuration management system, electronic device, and storage medium
KR101994828B1 (en) Electric power system fault recording system
CN112988776A (en) Method, device and equipment for updating text parsing rule and readable storage medium
CN111143469A (en) Data reconciliation method and device, electronic equipment and storage medium

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