Reference is made herein to the Java programming language, Java classes, Java bytecode and the Java Virtual Machine (JVM) for purposes of illustrating example implementations. It will be appreciated that implementations can include other programming languages (e.g., groovy, Scala, R, Go, etc.), other programming language structures as an alternative to or in addition to Java classes (e.g., other language classes, objects, data structures, program units, code portions, script portions, etc.), other types of bytecode, object code and/or executable code, and/or other virtual machines or hardware implemented machines configured to execute a data system query.
The application host 102 can include one or more application processes 112, one or more log files 114 (e.g., sequential, row-oriented log files), one or more data log tailers 116 and a multicast key-value publisher 118. The periodic data import host 104 can include a local table data server, direct or remote connection to a periodic table data store 122 (e.g., a column-oriented table data store) and a data import server 120. The query server host 106 can include a multicast key-value subscriber 126, a performance table logger 128, local table data store 130 and one or more remote query processors (132, 134) each accessing one or more respective tables (136, 138). The long-term file server 108 can include a long-term data store 140. The user data import host 110 can include a remote user table server 142 and a user table data store 144. Row-oriented log files and column-oriented table data stores are discussed herein for illustration purposes and are not intended to be limiting. It will be appreciated that log files and/or data stores may be configured in other ways. In general, any data stores discussed herein could be configured in a manner suitable for a contemplated implementation.
In operation, the input data application process 112 can be configured to receive input data from a source (e.g., a securities trading data source), apply schema-specified, generated code to format the logged data as it's being prepared for output to the log file 114 and store the received data in the sequential, row-oriented log file 114 via an optional data logging process. In some implementations, the data logging process can include a daemon, or background process task, that is configured to log raw input data received from the application process 112 to the sequential, row-oriented log files on disk and/or a shared memory queue (e.g., for sending data to the multicast publisher 118). Logging raw input data to log files can additionally serve to provide a backup copy of data that can be used in the event that downstream processing of the input data is halted or interrupted or otherwise becomes unreliable.
A data log tailer 116 can be configured to access the sequential, row-oriented log file(s) 114 to retrieve input data logged by the data logging process. In some implementations, the data log tailer 116 can be configured to perform strict byte reading and transmission (e.g., to the data import server 120). The data import server 120 can be configured to store the input data into one or more corresponding data stores such as the periodic table data store 122 in a column-oriented configuration. The periodic table data store 122 can be used to store data that is being received within a time period (e.g., a minute, an hour, a day, etc.) and which may be later processed and stored in a data store of the long-term file server 108. For example, the periodic table data store 122 can include a plurality of data servers configured to store periodic securities trading data according to one or more characteristics of the data (e.g., a data value such as security symbol, the data source such as a given trading exchange, etc.).
The data import server 120 can be configured to receive and store data into the periodic table data store 122 in such a way as to provide a consistent data presentation to other parts of the system. Providing/ensuring consistent data in this context can include, for example, recording logged data to a disk or memory, ensuring rows presented externally are available for consistent reading (e.g., to help ensure that if the system has part of a record, the system has all of the record without any errors), and preserving the order of records from a given data source. If data is presented to clients, such as a remote query processor (132, 134), then the data may be persisted in some fashion (e.g., written to disk).
The local table data server 124 can be configured to retrieve data stored in the periodic table data store 122 and provide the retrieved data to one or more remote query processors (132, 134) via an optional proxy.
The remote user table server (RUTS) 142 can include a centralized consistent data writer, as well as a data server that provides processors with consistent access to the data that it is responsible for managing. For example, users can provide input to the system by writing table data that is then consumed by query processors.
The remote query processors (132, 134) can use data from the data import server 120, local table data server 124 and/or from the long-term file server 108 to perform queries. The remote query processors (132, 134) can also receive data from the multicast key-value subscriber 126, which receives data from the multicast key-value publisher 118 in the application host 102. The performance table logger 128 can log performance information about each remote query processor and its respective queries into a local table data store 130. Further, the remote query processors can also read data from the RUTS, from local table data written by the performance logger, or from user table data read over NFS.
It will be appreciated that the configuration shown in
The production client host 202 can include a batch query application 212 (e.g., a query that is executed from a command line interface or the like) and a real time query data consumer process 214 (e.g., an application that connects to and listens to tables created from the execution of a separate query). The batch query application 212 and the real time query data consumer 214 can connect to a remote query dispatcher 222 and one or more remote query processors (224, 226) within the query server host 1 208.
The controller host 204 can include a persistent query controller 216 configured to connect to a remote query dispatcher 232 and one or more remote query processors 228-230. In some implementations, the persistent query controller 216 can serve as the “primary client” for persistent queries and can request remote query processors from dispatchers, and send instructions to start persistent queries. For example, a user can submit a query to 216, and 216 starts and runs the query every day. In another example, a securities trading strategy could be a persistent query. The persistent query controller can start the trading strategy query every morning before the market open, for instance. It will be appreciated that 216 can work on times other than days. In some implementations, the controller may require its own clients to request that queries be started, stopped, etc. This can be done manually, or by scheduled (e.g., cron) jobs. Some implementations can include “advanced scheduling” (e.g., auto-start/stop/restart, time-based repeat, etc.) within the controller.
The GUI/host workstation can include a user console 218 and a user query application 220. The user console 218 can be configured to connect to the persistent query controller 216. The user query application 220 can be configured to connect to one or more remote query dispatchers (e.g., 232) and one or more remote query processors (228, 230).
In operation, the processor 302 may execute the application 310 stored in the memory 306. The remote query processor application 310 can include software instructions that, when executed by the processor, cause the processor to perform operations for distributed and optimized garbage collection of remote and exported table handle links to update propagation graph nodes in accordance with the present disclosure (e.g., performing one or more of 602-632; 702-708; 802-820 described below).
The remote query processor application program 310 can operate in conjunction with the data section 312 and the operating system 304.
In operation, the processor 352 may execute the application 360 stored in the memory 356. The remote client application 360 can include software instructions that, when executed by the processor, cause the processor to perform operations for distributed and optimized garbage collection of remote and exported table handle links to update propagation graph nodes in accordance with the present disclosure (e.g., performing one or more of 602-632; 702-708; 802-820 described below).
The remote client application program 360 can operate in conjunction with the data section 362 and the operating system 354.
Remote clients can have multiple connections to a query server host including communications to conduct query operations on the query server host that can result in creating an update propagation graph to map out static and dynamic nodes that represent the query execution. In order to allow a remote client to interact with nodes in the update propagation graph on the server, e.g. for display, remote method invocation, or querying, an exported table handle can be created on the server side and a remote table handle on the client side to handle the links between the remote client and the update propagation graph tables on the server.
Table object T2 410 can be a child node of table object T0 402 and table object T3 412 can be a child node of table object T1 404. Table object T4 420 can be a child node of a join operation on table object T2 410 and table object T3 412. L0,2 406 can be a notification listener for propagating update notifications from table object T0 to table object T2 410. L1,3 408 can be a notification listener for propagating update notifications from table object T1 404 to table object T3 412. L2,4 414 can be a notification listener for propagating update notifications from T2 410 to a merge join listener 4 418. L3,4 can be a notification listener for propagating update notifications from table object T3 also to merge join listener 4 418. Merge join listener 4 418 can be a notification listener for propagating join update notifications to table object T4 420.
It will be appreciated that a weak reference does not prevent garbage collection of its referent, in this case a query update graph listener for propagating changes from a parent to a child node. A strong reference from a child node to a parent node serves to prevent garbage collection of the parent node until the child is no longer strongly reachable. Were the parent to hold strong references to the child listeners, this would prevent sub-graphs that are not externally reachable from being garbage collected.
A remote table handle 532, 534, 536 can be created on a remote client 528, 530 to maintain an active link to a corresponding exported table handle 518, 520, 522 on a remote query processor 502. An exported table handle 518, 520, 522 can be created in response to a query operation on table objects in an update propagation graph 504. For example, Remote client 1 528 can send a query request in the form of t3=t2.select( ) to a remote query processor 502. In response, the remote query processor 502 can create table object t3 510 in the update propagation graph with the appropriate weak and strong references between t3 510 and t2 508. The remote query processor 502 can then create an exported table handle 1 518 with a strong reference to t3 510 and send a stub with the exported table handle information, including an identifier for the exported table to be used in subsequent messages, e.g. a handle release message, or a remote method invocation message, to the remote client 1 528. The remote client 1 528 remote table handle manager (not shown) can then create a remote table handle 1 532 to communicate with the exported table handle 518 on the remote query processor 502 for any further access to t3 510. Remote table handles 532, 534, 536 can contain a remote table handle (RTH) reference count. A remote table handle 532, 534, 536 can remain alive as long as its RTH reference count remains greater than zero.
It will be appreciated in the example that as long as the strong reference from the exported table handle 1 518 remains in place, t3 510 cannot be garbage collected. But if the strong reference from the exported table handle 1 518 is removed, t3 510 can then be garbage collected because the only reference to t3 510 would be a weak reference from the t3 510 parent, t2 508.
It will also be appreciated that the same exported table can be shared with multiple clients and that reference counting can occur on the exported table handle to track connected clients and to determine when to remove the exported table handles. It will also be appreciated that if the reference counting occurs on the exported table handle, then reference counting on the remote table handle may not be necessary.
A heartbeat signal 524, 526 can exist between each remote client 524, 526 and each remote query processor 502. A heartbeat signal 524, 526 can be used to determine whether a remote client 528, 530 is connected to a remote query processor 502 during period of remote client 528, 530 inactivity. It can be assumed by a remote query processor 502 that if a heartbeat signal 524, 526 is no longer detected from a remote client 528, 530 that the remote client has disconnected from the remote query processor 502.
It will be appreciated that a heartbeat signal and a monitoring of a heartbeat signal is just one example of a liveness indication system. Other methods may exist for determining the status of connections between processes and/or computers.
It will be appreciated that one or more remote query processors 502 can be connected to one or more remote clients. One remote query processor 502 can be connected to one or more clients and one client can be connected to one or more remote query processors 502.
A remote table handle 532, 534 can contain a remote table handle (RTH) reference count for each link to a handle cleanup reference (542-550). For example, remote table handle manager 540 can create an HCR for each proxy, column, and/or widget that is part of a table referenced by remote table handle 1 532. For example, if remote table handle 1 532 references a table with 1 proxy and 1 column, remote table handle manager 540 can create HCR1, 1 542 to reference the proxy 1 552 and HCR1, 2 to reference the column 1, 2 554. Continuing with the example, remote table handle 1 532 can have an RTH reference count of 2 because remote table handle 1 532 is connected to 2 HCRs, HCR1,1 542 and HCR1,2 544. Each of the connections can be a weak reference as represented by an arrow with a broken line. Similarly, remote table handle 2 534 can have an RTH reference count of 3 because remote table handle 2 534 is connected to 3 HCRs, HCR2, 1 546, HCR2, 2 548 and HCR2, 3 550.
It will be appreciated that a table can have multiple proxies, columns and widgets. An HCR can be created for each proxy, column, and widget.
It will also be appreciated that a cleanup queue 562 can be empty or contain handle cleanup references that have been designated for cleanup. This concept is further described below.
It will be appreciated that in this example, the remote table handle 2 532 remains alive because the RTH reference count for the remote table handle 2 532 remains at a value greater than zero.
It will also be appreciated that for the example where the reference counting occurs on the exported table handle instead of the remote table handle, then a separate exported table handle can be requested for each handle cleanup reference and dependent object on the client. It will also be appreciated that for the example of reference counting occurring on the exported table handle and not on the remote table handle, then cleanup references may not be used on the server side, except as an alternative to reference counting if a same object is exported multiple times. In this example, the server may not need to notify a client that an exported object is not reachable because the client may have already released the exported object.
It will be appreciated that a connection can also exist per remote client—remote query processor relationship in place of or in addition to a remote table handle—exported table handle relationship.
It will be appreciated that a single remote client can have many remote table handles connected to many exported table handles on the server-side, numbering into the hundreds and thousands. The cleanup of these connections after the loss of a heartbeat can release a significant amount of system resources.
At 604, the remote client and remote query processor establish a bidirectional heartbeat connection. Processing continues to 606.
At 606, the remote client transmits a user query to the remote query processor.
Processing continues to 608.
At 608, the remote query processor executes the user query. Processing continues to 610.
At 610, the execution of the query may result in one or more strong references being removed from one or more nodes. Processing continues to 612.
At 612, when live nodes are added to an update propagation graph, the parent nodes hold weak references to their respective child listener objects, which in turn hold strong references to their parent table node, their child table node, and any other data structures they need for update propagation. The child table node holds a strong reference to its parent listeners, which hold strong references to the parent table object(s).
It will be appreciated that “live nodes” can be dynamic nodes that can listen for updates and pass on the update information to lower child nodes. Processing continues to 614.
At 614, the query causes changes in variables referencing update propagation graph nodes.
It will be appreciated that variables can be a holder for a strong reference to a table, such as “t1.” The contents of a variable, such as t1, can change depending on how t1 is used in a query instruction. For example, t1 can initially be assigned as t1-t2.select( ) but can later be re-assigned as t1=t4.select. Processing continues to 616 and 618.
At 616, the remote query processor, during query execution, may explicitly create one or more export table handles. Processing continues to 624.
At 618, the remote query processor during execution of a query can publish the existence of tables that may be exported. Processing continues to 620.
At 620, client-side actions, either automatic or by user input, can request an exported table handle be created. Processing continues to 622.
At 622, the remote query processor creates an exported table handle on the remote query processor. Processing continues to 624.
At 624, the remote query processor sends a stub back to the remote client to use in constructing a remote table handle. Processing continues to 626.
At 626, a remote table handle is created on the remote client by a remote table handle manager. Processing continues to 628.
At 628, the remote table handle manager increments the remote table handle reference count and creates monitored handle cleanup references (HCR) for all objects that require the remote table handle and its corresponding exported table handle in order to remain active. Processing continues to 630.
At 630, the remote client establishes a link from the remote table handle to the exported table handle.
It will be appreciated that the link can be a logical link or a physical link. Processing continues to 632.
At 632, the remote query processor waits for the next query transmission from a remote client. Process returns to 606.
At 704, a determination by the remote query processor is made as to whether a heartbeat signal the remote client is present. If the heartbeat is present, processing returns to 702 to continue monitoring for the heartbeat signal. If a heartbeat is not present, processing continues to 706.
At 706, an exported table handle manager on the remote query processor cleans up all of the exported table handles associated with the disconnecting or disconnected remote client. Processing continues to 708.
At 708, when no other strong links exist to the node that was connected to an exported table handle manager, the node is available for system initiated garbage collection.
It will be appreciated that the two flows shown in
At 802, a system garbage collector monitors object reachability, including the HCR's referent, which can be any object that requires the remote table handle and exported table handle to remain active. Processing continues to 806.
At 806, when the liveness-enforcing referent object of a handle cleanup reference becomes only weakly reachable, the HCR (as a weak reference) is cleared and the referent object is marked finalizable (eligible to be garbage collected by the system). Processing continues to 808.
At 808, the system garbage collection mechanism enqueues the HCR for the HCR queue. Processing continues to 810.
At 810, the system garbage collection mechanism finalizes and reclaims the liveness-enforcing referent that was previously weakly-reachable from the HCR.
At 804, a remote table handle manager monitors the HCR queue. Processing continues to 812.
At 812, the remote table handle manager dequeues an HCR and invokes an HCR cleanup method.
It will be appreciated that the term “method” here refers to a programming language construct or function, and can be any construct that is available in the programming language used to write the HCR cleanup function. Processing continues to 814.
At 814, the HCR cleanup method determines the remote table handle associated with the dequeued HCR and decrements that remote table handle reference count by one. Processing continues to 816.
At 816, the HCR cleanup method removes the HCR from the set of HCRs monitored by the remote table handle manager. Processing continues to 818.
At 818, the remote table handle manager determines whether the remote table handle reference count is zero. If the remote table handle count is greater than zero, processing returns to 804. If the remote table handle count is zero, processing continues to 820.
At 820, the remote table handle manager sends a digital message to the remote query processor to cleanup the associated exported table handle on the remote query processor. Processing returns to 804.
It will be appreciated that the modules, processes, systems, and sections described above can be implemented in hardware, hardware programmed by software, software instructions stored on a nontransitory computer readable medium or a combination of the above. A system as described above, for example, can include a processor configured to execute a sequence of programmed instructions stored on a nontransitory computer readable medium. For example, the processor can include, but not be limited to, a personal computer or workstation or other such computing system that includes a processor, microprocessor, microcontroller device, or is comprised of control logic including integrated circuits such as, for example, an Application Specific Integrated Circuit (ASIC), a field programmable gate array (FPGA), graphics processing unit (GPU), or the like. The instructions can be compiled from source code instructions provided in accordance with a programming language such as Java, C, C++, C#.net, assembly or the like. The instructions can also comprise code and data objects provided in accordance with, for example, the Visual Basic™ language, a specialized database query language, or another structured or object-oriented programming language.
The sequence of programmed instructions, or programmable logic device configuration software, and data associated therewith can be stored in a nontransitory computer-readable medium such as a computer memory or storage device which may be any suitable memory apparatus, such as, but not limited to ROM, PROM, EEPROM, RAM, flash memory, disk drive and the like.
Furthermore, the modules, processes systems, and sections can be implemented as a single processor or as a distributed processor. Further, it should be appreciated that the steps mentioned above may be performed on a single or distributed processor (single and/or multi-core, or cloud computing system). Also, the processes, system components, modules, and sub-modules described in the various figures of and for embodiments above may be distributed across multiple computers or systems or may be co-located in a single processor or system. Example structural embodiment alternatives suitable for implementing the modules, sections, systems, means, or processes described herein are provided below.
The modules, processors or systems described above can be implemented as a programmed general purpose computer, an electronic device programmed with microcode, a hard-wired analog logic circuit, software stored on a computer-readable medium or signal, an optical computing device, a networked system of electronic and/or optical devices, a special purpose computing device, an integrated circuit device, a semiconductor chip, and/or a software module or object stored on a computer-readable medium or signal, for example.
Embodiments of the method and system (or their sub-components or modules), may be implemented on a general-purpose computer, a special-purpose computer, a programmed microprocessor or microcontroller and peripheral integrated circuit element, an ASIC or other integrated circuit, a digital signal processor, a hardwired electronic or logic circuit such as a discrete element circuit, a programmed logic circuit such as a PLD, PLA, FPGA, PAL, or the like. In general, any processor capable of implementing the functions or steps described herein can be used to implement embodiments of the method, system, or a computer program product (software program stored on a nontransitory computer readable medium).
Furthermore, embodiments of the disclosed method, system, and computer program product (or software instructions stored on a nontransitory computer readable medium) may be readily implemented, fully or partially, in software using, for example, object or object-oriented software development environments that provide portable source code that can be used on a variety of computer platforms. Alternatively, embodiments of the disclosed method, system, and computer program product can be implemented partially or fully in hardware using, for example, standard logic circuits or a VLSI design. Other hardware or software can be used to implement embodiments depending on the speed and/or efficiency requirements of the systems, the particular function, and/or particular software or hardware system, microprocessor, or microcomputer being utilized. Embodiments of the method, system, and computer program product can be implemented in hardware and/or software using any known or later developed systems or structures, devices and/or software by those of ordinary skill in the applicable art from the function description provided herein and with a general basic knowledge of the software engineering and computer networking arts.
Moreover, embodiments of the disclosed method, system, and computer readable media (or computer program product) can be implemented in software executed on a programmed general purpose computer, a special purpose computer, a microprocessor, or the like.
It is, therefore, apparent that there is provided, in accordance with the various embodiments disclosed herein, methods, systems and computer readable media for distributed and optimized garbage collection of remote and exported table handle links to update propagation graph nodes.
Application Ser. No. ______, entitled “DATA PARTITIONING AND ORDERING” (Attorney Docket No. W1.1-10057) and filed in the United States Patent and Trademark Office on May 14, 2016, is hereby incorporated by reference herein in its entirety as if fully set forth herein.
Application Ser. No. ______, entitled “COMPUTER DATA SYSTEM DATA SOURCE REFRESHING USING AN UPDATE PROPAGATION GRAPH” (Attorney Docket No. W1.4-10058) and filed in the United States Patent and Trademark Office on May 14, 2016, is hereby incorporated by reference herein in its entirety as if fully set forth herein.
Application Ser. No. ______, entitled “COMPUTER DATA SYSTEM POSITION-INDEX MAPPING” (Attorney Docket No. W1.5-10083) and filed in the United States Patent and Trademark Office on May 14, 2016, is hereby incorporated by reference herein in its entirety as if fully set forth herein.
Application Ser. No. ______, entitled “SYSTEM PERFORMANCE LOGGING OF COMPLEX REMOTE QUERY PROCESSOR QUERY OPERATIONS” (Attorney Docket No. W1.6-10074) and filed in the United States Patent and Trademark Office on May 14, 2016, is hereby incorporated by reference herein in its entirety as if fully set forth herein.
Application Ser. No. ______, entitled “DISTRIBUTED AND OPTIMIZED GARBAGE COLLECTION OF REMOTE AND EXPORTED TABLE HANDLE LINKS TO UPDATE PROPAGATION GRAPH NODES” (Attorney Docket No. W1.8-10085) and filed in the United States Patent and Trademark Office on May 14, 2016, is hereby incorporated by reference herein in its entirety as if fully set forth herein.
Application Ser. No. ______, entitled “COMPUTER DATA SYSTEM CURRENT ROW POSITION QUERY LANGUAGE CONSTRUCT AND ARRAY PROCESSING QUERY LANGUAGE CONSTRUCTS” (Attorney Docket No. W2.1-10060) and filed in the United States Patent and Trademark Office on May 14, 2016, is hereby incorporated by reference herein in its entirety as if fully set forth herein.
Application Ser. No. ______, entitled “PARSING AND COMPILING DATA SYSTEM QUERIES” (Attorney Docket No. W2.2-10062) and filed in the United States Patent and Trademark Office on May 14, 2016, is hereby incorporated by reference herein in its entirety as if fully set forth herein.
Application Ser. No. ______, entitled “DYNAMIC FILTER PROCESSING” (Attorney Docket No. W2.4-10075) and filed in the United States Patent and Trademark Office on May 14, 2016, is hereby incorporated by reference herein in its entirety as if fully set forth herein.
Application Ser. No. ______, entitled “DYNAMIC JOIN PROCESSING USING REAL-TIME MERGED NOTIFICATION LISTENER” (Attorney Docket No. W2.6-10076) and filed in the United States Patent and Trademark Office on May 14, 2016, is hereby incorporated by reference herein in its entirety as if fully set forth herein.
Application Ser. No. ______, entitled “DYNAMIC TABLE INDEX MAPPING” (Attorney Docket No. W2.7-10077) and filed in the United States Patent and Trademark Office on May 14, 2016, is hereby incorporated by reference herein in its entirety as if fully set forth herein.
Application Ser. No. ______, entitled “QUERY TASK PROCESSING BASED ON MEMORY ALLOCATION AND PERFORMANCE CRITERIA” (Attorney Docket No. W2.8-10094) and filed in the United States Patent and Trademark Office on May 14, 2016, is hereby incorporated by reference herein in its entirety as if fully set forth herein.
Application Ser. No. ______, entitled “A MEMORY-EFFICIENT COMPUTER SYSTEM FOR DYNAMIC UPDATING OF JOIN PROCESSING” (Attorney Docket No. W2.9-10107) and filed in the United States Patent and Trademark Office on May 14, 2016, is hereby incorporated by reference herein in its entirety as if fully set forth herein.
Application Ser. No. ______, entitled “QUERY DISPATCH AND EXECUTION ARCHITECTURE” (Attorney Docket No. W3.1-10061) and filed in the United States Patent and Trademark Office on May 14, 2016, is hereby incorporated by reference herein in its entirety as if fully set forth herein.
Application Ser. No. ______, entitled “COMPUTER DATA DISTRIBUTION ARCHITECTURE” (Attorney Docket No. W3.2-10087) and filed in the United States Patent and Trademark Office on May 14, 2016, is hereby incorporated by reference herein in its entirety as if fully set forth herein.
Application Ser. No. ______, entitled “DYNAMIC UPDATING OF QUERY RESULT DISPLAYS” (Attorney Docket No. W3.3-10059) and filed in the United States Patent and Trademark Office on May 14, 2016, is hereby incorporated by reference herein in its entirety as if fully set forth herein.
Application Ser. No. ______, entitled “DYNAMIC CODE LOADING” (Attorney Docket No. W3.4-10065) and filed in the United States Patent and Trademark Office on May 14, 2016, is hereby incorporated by reference herein in its entirety as if fully set forth herein.
Application Ser. No. ______, entitled “IMPORTATION, PRESENTATION, AND PERSISTENT STORAGE OF DATA” (Attorney Docket No. W3.5-10088) and filed in the United States Patent and Trademark Office on May 14, 2016, is hereby incorporated by reference herein in its entirety as if fully set forth herein.
Application Ser. No. ______, entitled “COMPUTER DATA DISTRIBUTION ARCHITECTURE” (Attorney Docket No. W3.7-10079) and filed in the United States Patent and Trademark Office on May 14, 2016, is hereby incorporated by reference herein in its entirety as if fully set forth herein.
Application Ser. No. ______, entitled “PERSISTENT QUERY DISPATCH AND EXECUTION ARCHITECTURE” (Attorney Docket No. W4.2-10089) and filed in the United States Patent and Trademark Office on May 14, 2016, is hereby incorporated by reference herein in its entirety as if fully set forth herein.
Application Ser. No. ______, entitled “SINGLE INPUT GRAPHICAL USER INTERFACE CONTROL ELEMENT AND METHOD” (Attorney Docket No. W4.3-10063) and filed in the United States Patent and Trademark Office on May 14, 2016, is hereby incorporated by reference herein in its entirety as if fully set forth herein.
Application Ser. No. ______, entitled “GRAPHICAL USER INTERFACE DISPLAY EFFECTS FOR A COMPUTER DISPLAY SCREEN” (Attorney Docket No. W4.4-10090) and filed in the United States Patent and Trademark Office on May 14, 2016, is hereby incorporated by reference herein in its entirety as if fully set forth herein.
Application Ser. No. ______, entitled “COMPUTER ASSISTED COMPLETION OF HYPERLINK COMMAND SEGMENTS” (Attorney Docket No. W4.5-10091) and filed in the United States Patent and Trademark Office on May 14, 2016, is hereby incorporated by reference herein in its entirety as if fully set forth herein.
Application Ser. No. ______, entitled “HISTORICAL DATA REPLAY UTILIZING A COMPUTER SYSTEM” (Attorney Docket No. W5.1-10080) and filed in the United States Patent and Trademark Office on May 14, 2016, is hereby incorporated by reference herein in its entirety as if fully set forth herein.
Application Ser. No. ______, entitled “DATA STORE ACCESS PERMISSION SYSTEM WITH INTERLEAVED APPLICATION OF DEFERRED ACCESS CONTROL FILTERS” (Attorney Docket No. W6.1-10081) and filed in the United States Patent and Trademark Office on May 14, 2016, is hereby incorporated by reference herein in its entirety as if fully set forth herein.
Application Ser. No. ______, entitled “REMOTE DATA OBJECT PUBLISHING/SUBSCRIBING SYSTEM HAVING A MULTICAST KEY-VALUE PROTOCOL” (Attorney Docket No. W7.2-10064) and filed in the United States Patent and Trademark Office on May 14, 2016, is hereby incorporated by reference herein in its entirety as if fully set forth herein.
While the disclosed subject matter has been described in conjunction with a number of embodiments, it is evident that many alternatives, modifications and variations would be, or are, apparent to those of ordinary skill in the applicable arts. Accordingly, Applicants intend to embrace all such alternatives, modifications, equivalents and variations that are within the spirit and scope of the disclosed subject matter.
This application claims the benefit of U.S. Provisional Application No. 62/161,813, entitled “Computer Data System” and filed on May 14, 2015, which is incorporated herein by reference in its entirety. Embodiments relate generally to computer data systems, and more particularly, to methods, systems and computer readable media for providing optimized garbage collection of remote table handle links. In an environment where a query server can have multiple remote clients, multiple links can be set up to tables on the query server from each remote client. There can be a system cost for maintaining all of these links, or from maintaining the data sources referenced by the links. As remote clients disconnect from from the query server or as remote clients stop using a particular table, links can still be registered for the remote clients on the query server. The number of links that need to be managed by the query server can continue to grow with new remote client connections and query operations against query server tables. If the links are not properly garbage collected after use, the amount of system resources to manage the increasing number of links and the data sources referenced by the links may also increase. Embodiments were conceived in light of the above mentioned needs, problems and/or limitations, among other things. Some implementations can include a system for managing distributed client-server object handles, the system comprising a remote client computer containing a first one or more hardware processors, a server computer containing a second one or more hardware processors, and the remote client computer containing a first computer readable data storage device coupled to the first one or more hardware processors, the first computer readable data storage device having stored thereon software instructions that, when executed by the first one or more hardware processors, cause the first one or more hardware processors to perform operations. The operations can include creating a remote object handle manager. The operations can also include establishing a connection with a remote query processor on the server computer. The operations can further include establishing a liveness indication system with the remote query processor. The operations can also include receiving from the remote query processor, exported object handle information for use in constructing a remote object handle, including an exported object identifier, the exported object identifier identifying an exported object. The operations can include the remote object handle manager constructing a remote object handle. The operations can also include the remote object handle manager monitoring liveness of all client objects that depend on the remote object handle, the remote object handle depending on the exported object and indirectly on the exported object's dependencies. The operations can include the remote object handle manager sending a release notification to the remote query processor including an exported object identifier, after no client objects depend on the exported object. The operations can also include the server computer containing a second computer readable data storage device coupled to the second one or more hardware processors, the second computer readable data storage device having stored thereon software instructions that, when executed by the second one or more hardware processors, cause the second one or more hardware processors to perform operations. The operations can include creating a remote query processor, the remote query processor performing operations. The operations can include creating an exported object handle manager. The operations can also include sending the exported object handle information, including an exported object identifier from an exported object handle manager to the remote client computer. The operations can further include preserving a liveness of the exported object at least until the first of the following events: receipt of a release notification from the remote table handle manager, and the liveness indication system determines the remote client computer is not connected. The remote query processor operations can include the remote query processor receiving a transmitted user query task from the remote client computer. The remote query processor operations can also include executing the transmitted user query task. The remote query processor operations can further include upon executing an instruction from the user query task to export an object, creating an exported object handle. The remote query processor operations can include publishing a list of objects available for export to the remote client computer. The operations can include wherein the remote object handle manager monitoring of client object liveness comprises maintaining a remote object handle reference count on the remote object handle. The operations can also include decrementing the remote object handle reference count after a dependent client object no longer depends on the remote object handle. The operations can further include when the remote object handle reference count after decrementing is zero, sending a digital message to the remote query processor to release an associated exported object handle. The operations can include wherein the exported object handle maintains a strong reference to one or more components of an update propagation graph created on the server computer. The operations can include wherein the relationship between a remote object handle and its associated exported object extends an update propagation graph across at least one of multiple remote query processors and multiple clients. The operations can include wherein the remote object handle invokes one or more methods on an exported object and delivers return values as copied objects or remote object handles of exported objects. The operations can include wherein the remote client computer and the server computer are different computers. The operations can include wherein the remote object handle manager monitoring of client object liveness comprises the remote object handle manager monitoring a handle cleanup reference queue and after a handle cleanup reference appears in the handle cleanup reference queue, invoking a handle cleanup reference cleanup method. The operations can further include the handle cleanup reference cleanup method removing the handle cleanup reference from a set of handle cleanup references monitored by the remote object handle manager, thereby eliminating all strong references to the handle cleanup reference. The operations can further include the handle cleanup reference cleanup method sending a digital message to the remote query processor to release an associated exported object handle. The operations can include wherein the remote object handle manager monitoring of client object liveness comprises the remote object handle manager monitoring a handle cleanup reference queue and after a handle cleanup reference appears in the handle cleanup reference queue, invoking a handle cleanup reference cleanup method. The operations can also include the handle cleanup reference cleanup method decrementing a remote object handle reference count on a remote object handle associated with the handle cleanup reference. The operations can further include the handle cleanup reference cleanup method removing the handle cleanup reference from a set of handle cleanup references monitored by the remote object handle manager. The operations can include when the remote object handle reference count after decrementing is zero, sending a digital message to the remote query processor to release an associated exported object handle. The operations can include wherein the remote query processor preserving a liveness of the exported object comprises maintaining a reference count associated with the exported object. The operations can also include decrementing the reference count associated with the exported object after receipt of a release notification from the remote table handle manager. The operations can further include decrementing the reference count associated with the exported object after the liveness indication system determines the remote client computer is not connected. The operations can also include when the remote object handle reference count after decrementing is zero, removing a strong reference to the exported object from the exported object handle. The operations can include when the remote object handle reference count after decrementing is greater than zero, maintaining a strong reference to the exported object from the exported object handle. Some implementations can include a method for managing distributed client-server object handles, the method comprising creating a remote object handle manager. The method can also include establishing a connection with a remote query processor on a server computer. The method can further include establishing a liveness indication system with the remote query processor. The method can also include receiving from the remote query processor, exported object handle information for use in constructing a remote object handle, including an exported object identifier, the exported object identifier identifying an exported object. The method can include the remote object handle manager constructing a remote object handle. The method can also include the remote object handle manager monitoring liveness of all client objects that depend on the remote object handle, the remote object handle depending on the exported object and indirectly on the exported object's dependencies. The method can include the remote object handle manager sending a release notification to the remote query processor including an exported object identifier, after no client objects depend on the exported object. The method can also include creating a remote query processor, the remote query processor performing operations. The operations can include creating an exported object handle manager. The operations can also include sending the exported object handle information, including an exported object identifier from an exported object handle manager to a remote client computer. The operations can further include preserving a liveness of the exported object until receipt of a release notification from the remote table handle manager or until the liveness indication system determines the remote client computer is not connected. The remote query processor operations can further include the remote query processor receiving a transmitted user query task from a remote client computer. The operations can also include executing the transmitted user query task. The operations can further include upon executing an instruction from the user query task to export an object, creating an exported object handle. The remote query processor operations can include publishing a list of objects available for export to the remote client computer. The method can include the operations of the first one or more hardware processors further comprising the remote object handle manager monitoring a handle cleanup reference queue. The operations can also include after a handle cleanup reference appears in the handle cleanup reference queue, invoking a handle cleanup reference cleanup method. The operations can further include the handle cleanup reference cleanup method decrementing a remote object handle reference count on a remote object handle associated with the handle cleanup reference. The operations can also include the handle cleanup reference cleanup method removing the handle cleanup reference from a set of handle cleanup references monitored by the remote object handle manager. The operations can include when the remote object handle reference count after decrementing is zero, sending a digital message to the remote query processor to release an associated exported object handle. The operations can also include when the remote object handle reference count after decrementing is greater than zero, maintaining a strong reference to the remote object handle in order to ensure liveness for dependent client objects. The method can include wherein the exported object handle maintains a strong reference to an update propagation graph created on the server computer. The method can include wherein the relationship between a remote object handle and its associated exported object extends an update propagation graph across at least one of multiple remote query processors and multiple clients. The method can include wherein the remote object handle invokes one or more methods on an exported object and delivers return values as copied objects or remote object handles of exported objects. The method can include wherein the remote client computer and the server computer are different computers. The method can also include wherein the preserving a liveness of the exported object comprises maintaining a reference count associated with the exported object. The method also includes decrementing the reference count associated with the exported object after receipt of a release notification from the remote table handle manager. The method further includes decrementing the reference count associated with the exported object after the liveness indication system determines the remote client computer is not connected. The method also includes when the remote object handle reference count after decrementing is zero, removing a strong reference to the exported object from the exported object handle. The method further includes when the remote object handle reference count after decrementing is greater than zero, maintaining a strong reference to the exported object from the exported object handle. Some implementations can include a nontransitory computer readable medium having stored thereon software instructions that, when executed by one or more processors, cause the one or more processors to perform operations. The operations can include creating a remote object handle manager. The operations can also include establishing a connection with a remote query processor on a server computer. The operations can further include establishing a liveness indication system with the remote query processor. The operations can also include receiving from the remote query processor, exported object handle information for use in constructing a remote object handle, including an exported object identifier, the exported object identifier identifying an exported object. The operations can include the remote object handle manager constructing a remote object handle. The operations can also include the remote object handle manager monitoring liveness of all client objects that depend on the remote object handle, the remote object handle depending on the exported object and indirectly on the exported object's dependencies. The operations can include the remote object handle manager sending a release notification to the remote query processor including an exported object identifier, after no client objects depend on the exported object. The operations can also include the server computer containing a second computer readable data storage device coupled to the second one or more hardware processors, the second computer readable data storage device having stored thereon software instructions that, when executed by the second one or more hardware processors, cause the second one or more hardware processors to perform operations. The operations can include creating a remote query processor, the remote query processor performing operations including creating an exported object handle manager. The remote query processor operations can also include sending the exported object handle information, including an exported object identifier from an exported object handle manager to the remote client. The remote query operations can further include preserving a liveness of the exported object until receipt of a release notification from the remote table handle manager or until the liveness indication system determines the remote client is not connected. The operations can include the remote query processor receiving a transmitted user query task from the remote client computer. The operations can also include executing the transmitted user query task. The operations can further include upon executing an instruction from the user query task to export an object, creating an exported object handle. The operations can include publishing a list of objects available for export to the remote client. The operations can include the remote object handle manager monitoring a handle cleanup reference queue. The operations can also include after a handle cleanup reference appears in the handle cleanup reference queue, invoking a handle cleanup reference cleanup method. The operations can further include the handle cleanup reference cleanup method decrementing a remote object handle reference count on a remote object handle associated with the handle cleanup reference. The operations can also include the handle cleanup reference cleanup method removing the handle cleanup reference from a set of handle cleanup references monitored by the remote object handle manager. The operations can include when the remote object handle reference count after decrementing is zero, sending a digital message to the remote query processor to release an associated exported object handle. The operations can also include when the remote object handle reference count after decrementing is greater than zero, maintaining a strong reference to the remote object handle in order to ensure liveness for dependent client objects. The operations can include wherein the exported object handle maintains a strong reference to an update propagation graph created on the server computer. The operations can include wherein the relationship between a remote object handle and its associated exported object extends an update propagation graph across at least one of multiple remote query processors and multiple clients. The operations can include wherein the remote object handle invokes one or more methods on an exported object and delivers return values as copied objects or remote object handles of exported objects. The operations can include wherein the remote client computer and the server computer are different computers. Some implementations can include a method for monitoring liveness of parent objects and child objects participating in an update propagation graph on a query processing computer having parent listener objects and child listener objects, the method comprising maintaining continued liveness of said parent objects so long as their child objects have continued liveness. The method can also include permitting termination of liveness of dependent child objects when their parent objects have continued liveness. The method can further include maintaining continued liveness of said parent listener objects so long as their child objects have continued liveness. The method can also include permitting termination of liveness of dependent child listener objects when their parent objects have continued liveness. The method can include wherein the child objects are only weakly reachable from their parent objects and the parent objects are strongly reachable from their child objects.
Number | Date | Country | |
---|---|---|---|
62161813 | May 2015 | US |