Nothing Special   »   [go: up one dir, main page]

skip to main content
research-article

Compile-Time and Runtime Analysis of Active Behaviors

Published: 01 May 1998 Publication History

Abstract

Active rules may interact in complex and sometimes unpredictable ways, thus possibly yielding infinite rule executions by triggering each other indefinitely. This paper presents analysis techniques focused on detecting termination of rule execution. We describe an approach which combines static analysis of a rule set at compile-time and detection of endless loops during rule processing at runtime. The compile-time analysis technique is based on the distinction between mutual triggering and mutual activation of rules. This distinction motivates the introduction of two graphs defining rule interaction, called Triggering and Activation Graphs, respectively. This analysis technique allows us to identify reactive behaviors which are guaranteed to terminate and reactive behaviors which may lead to infinite rule processing. When termination cannot be guaranteed at compile-time, it is crucial to detect infinite rule executions at runtime. We propose a technique for identifying loops which is based on recognizing that a given situation has already occurred in the past and, therefore, will occur an infinite number of times in the future. This technique is potentially very expensive, therefore, we explain how it can be implemented in practice with limited computational effort. A particular use of this technique allows us to develop cycle monitors, which check that critical rule sequences, detected at compile time, do not repeat forever. We bridge compile-time analysis to runtime monitoring by showing techniques, based on the result of rule analysis, for the identification of rule sets that can be independently monitored and for the optimal selection of cycle monitors.

References

[1]
R. Agrawal R.J. Cochrane and B. Lindsay, "On Maintaining Priorities in a Production Rule System," Proc. 17th Int'l Conf. Very Large Data Bases, G.M. Lohman, A. Sernadas, and R. Camps, eds., pp. 479-487, Barcelona, Spain, Sept. 1991.
[2]
A. Aiken J.M. Hellerstein and J. Widom, "Static Analysis Techniques for Predicting the Behavior of Active Database Rules," ACM Trans. Database Systems, vol. 20, no. 1, pp. 3-41, Mar. 1995.
[3]
E. Baralis S. Ceri and S. Paraboschi, "Declarative Specification of Constraint Maintenance," Proc. 13th Int'l Conf. Entity-Relationship Approach—ER '94, P. Loucopoulos, ed., Lecture Notes in Computer Science, vol. 881, pp. 205-222, Manchester, U.K. Berlin: Springer-Verlag, Dec. 1994.
[4]
E. Baralis S. Ceri and S. Paraboschi, "Improved Rule Analysis by Means of Triggering and Activation Graphs," Proc. Second Workshop Rules in Database Systems, T. Sellis, ed., Lecture Notes in Computer Science, vol. 985, pp. 165-181, Athens, Greece, Sept. 1995.
[5]
E. Baralis S. Ceri and S. Paraboschi, "Runtime Detection of Non-Terminating Active Rule Systems," Proc. Conf. Deductive and Object-Oriented Databases, DOOD '95, Lecture Notes in Computer Science, vol. 1, 013, pp. 38-54, Singapore, Dec. 1995.
[6]
E. Baralis S. Ceri and S. Paraboschi, "Modularization Techniques for Active Rules Design," ACM Trans. Database Systems, vol. 21, no. 1, pp. 1-29, Mar. 1996.
[7]
E. Baralis S. Ceri and J. Widom, "Better Termination Analysis for Active Databases," Proc. First Workshop Rules in Database Systems, WICS, N.W. Paton and M.H. Williams, eds., pp. 163-179, Edinburgh, U.K. Berlin: Springer-Verlag, Aug. 1993.
[8]
E. Baralis and J. Widom, "An Algebraic Approach to Rule Analysis in Expert Database Systems," Proc. 20th Int'l Conf. Very Large Data Bases, pp. 475-486, Santiago, Chile, Sept. 1994.
[9]
E. Baralis and J. Widom, "Better Static Analysis for Active Database Systems," submitted for publication, 1996.
[10]
E. Benazet H. Guehl and M. Bouzeghoub, "VITAL: A Visual Tool for Analysis of Rules Behavior in Active Databases," Proc. Second Workshop Rules in Database Systems, T. Sellis, ed., Lecture Notes in Computer Science, vol. 985, pp. 182-196, Athens, Greece, Sept. 1995.
[11]
L. Brownston R. Farrell E. Kant and N. Martin, Programming Expert Systems in OPS5: An Introduction to Rule-Based Programming. Addison-Wesley, 1985.
[12]
S. Ceri E. Baralis P. Fraternali and S. Paraboschi, "Design of Active Rule Applications: Issues and Approaches," Proc. Conf. Deductive and Object-Oriented Databases, DOOD '95, Lecture Notes in Computer Science, vol. 1, 013, Singapore, Dec. 1-18 1995.
[13]
S. Ceri P. Fraternali S. Paraboschi and L. Tanca, "Automatic Generation of Production Rules for Integrity Maintenance," ACM Trans. Database Systems, vol. 19, no. 3, pp. 367-422, Sept. 1994.
[14]
S. Ceri P. Fraternali S. Paraboschi and L. Tanca, "Active Rule Management in Chimera," J. Widom and S. Ceri, Active Database Systems, pp. 151-176. San Mateo, Calif.: Morgan Kaufmann, 1996.
[15]
S. Ceri and J. Widom, "Deriving Production Rules for Constraint Maintenance," Proc. 16th Int'l Conf. Very Large Data Bases, D. McLeod, R. Sacks-Davis, and H. Schek, eds., pp. 566-577, Brisbane, Australia, Aug. 1990.
[16]
S. Ceri and J. Widom, "Managing Semantic Heterogeneity with Production Rules and Persistent Queues," Proc. 19th Int'l Conf. Very Large Data Bases, R. Agrawal, S. Baker, and D. Bell, eds., pp. 108-119, Dublin, Ireland, Aug. 1993.
[17]
S. Ceri and J. Widom, "Deriving Incremental Production Rules for Deductive Data," Information Systems, vol. 19, no. 6, pp. 467-490, Nov. 1994.
[18]
S. Chakravarthy Z. Tamizuddin and J. Zhou, "A Visualization and Explanation Tool for Debugging ECA Rules in Active Databases," Proc. Second Workshop Rules in Database Systems, T. Sellis, ed., Lecture Notes in Computer Science, vol. 985, pp. 197-209, Athens, Greece, Sept. 1995.
[19]
D. Daniels L. Boon Doo A. Downing C. Elsbernd G. Hallmark S. Jain B. Jenkins P. Lim G. Smith B. Souder and J. Stamos, "Oracle's Symmetric Replication Technology and Implications for Application Design," Proc. ACM SIGMOD Int'l Conf. Management of Data, R.T. Snodgrass and M. Winslett, eds., p. 467, Minneapolis, Minn., May 1994.
[20]
U. Dayal M. Hsu and R. Ladin, "Organizing Long-Running Activities with Triggers and Transactions," Proc. ACM SIGMOD Int'l Conf. Management of Data, H. Garcia Molina and H.V. Jagadish, eds., pp. 204-214, Atlantic City, N.J., May 1990.
[21]
O. Diaz A. Jaime and N. Paton, "DEAR: A Debugger for Active Rules in an Object-Oriented Context," Proc. First Workshop Rules in Database Systems, WICS, N.W. Paton and M.H. Williams, eds., pp. 180-193, Edinburgh, U.K. Berlin: Springer-Verlag, Aug. 1993.
[22]
J. Gray and A. Reuter, Transaction Processing Concepts and Techniques. San Mateo, Calif.: Morgan Kaufmann, 1993.
[23]
E. Hanson, "Rule Condition Testing and Action Execution in Ariel," Proc. ACM SIGMOD Int'l Conf. Management of Data, M. Stonebraker, ed., pp. 49-58, San Diego, Calif., May 1992.
[24]
V. Harinarayan A. Rajaraman and J.D. Ullman, "Implementing Data Cubes Efficiently," Proc. ACM SIGMOD Int'l Conf. Management of Data, pp. 205-216, Montreal, Canada, June 1996.
[25]
ISO-ANSI Working Draft: Database Language/SQL Foundation, Aug. 1994. Document DBL:RIO-004 and X3H2-94-329.
[26]
H.V. Jagadish A.O. Mendelzon and I.S. Mumick, "Managing Rule Conflicts in an Active Database," Proc. ACM Symp. Principles of Database Systems, pp. 192-201, Montreal, Canada, June 1996.
[27]
A.P. Karadimce and S.D. Urban, "Conditional Term Rewriting as a Formal Basis for Analysis of Active Database Rules," Proc. Fourth Int'l Workshop Research Issues in Data Eng., RIDE-ADS '94, pp. 156-162, Houston, Feb. 1994.
[28]
R.M. Karp, "Reducibility Among Combinatorial Problems," Complexity of Computer Computations, R.E. Miller and J.W. Thatcher, ed. New York: Plenum Press, 1972.
[29]
A.Y. Levy and Y. Sagiv, "Queries Independent of Updates," Proc. 19th Int'l Conf. Very Large Data Bases, R. Agrawal, S. Baker, and D. Bell, eds., pp. 171-181, Dublin, Ireland, Aug. 1993.
[30]
P. Loucopoulos, "Requirements Engineering: Conceptual Modeling and CASE Perspectives," Technical Report COMETT/FORMITT Course on Conceptual Modeling, Databases, and CASE, Lausanne, Switzerland, Oct. 1994.
[31]
D. Montesi and R. Torlone, "A Rewriting Technique for the Analysis and the Optimization of Active Databases," Proc. Fifth Int'l Conf. Database Theory, pp. 238-251, Prague, Czech Republic, 1995.
[32]
S. Paraboschi, "Automatic Rule Generation for Constraint and View Maintenance in Active Databases," PhD thesis, Politecnico di Milano, Dipartimento di Elettronica e Informazione, in Italian, Jan. 1994.
[33]
W.W. Peterson and D.T. Brown, "Cyclic Codes for Error Detection," Proc. IRE, vol. 49, pp. 228-235, Jan. 1961.
[34]
A.S. Tanenbaum, Computer Networks, third ed. Prentice Hall Int'l, 1996.
[35]
H. Tsai and A.M.K. Cheng, "Termination Analysis of OPS5 Expert Systems," Proc. AAAI Nat'l Conf. Artificial Intelligence, Seattle, Wash., 1994.
[36]
L. van der Voort and A. Siebes, "Termination and Confluence of Rule Execution," Proc. Second Int'l Conf. Information and Knowledge Management, Washington, D.C., Nov. 1993.
[37]
J. Widom, "Research Issues in Active Database Systems: Report from the Closing Panel at RIDE-ADS '94," SIGMOD Record, vol. 23, no. 3, pp. 41-43, Sept. 1994.
[38]
J. Widom and S. Ceri, Active Database Systems. San Mateo, Calif.: Morgan Kaufmann, 1996.
[39]
J. Widom and S.J. Finkelstein, "Set-Oriented Production Rules in Relational Databases Systems," Proc. ACM SIGMOD Int'l Conf. Management of Data, H. Garcia Molina and H.V. Jagadish, eds., pp. 259-270, Atlantic City, N.J., May 1990.

Cited By

View all
  • (2016)A new approach to detecting active rule confluence with exclusive rules during an indeterminable rule processJournal of Intelligent & Fuzzy Systems: Applications in Engineering and Technology10.3233/JIFS-15220231:3(1769-1778)Online publication date: 1-Jan-2016
  • (2015)Efficient analysis of event processing applicationsProceedings of the 9th ACM International Conference on Distributed Event-Based Systems10.1145/2675743.2771834(10-21)Online publication date: 24-Jun-2015
  • (2013)Active rules termination analysis based on activation path and enhanced formulaInternational Journal of Intelligent Information and Database Systems10.1504/IJIIDS.2013.0517447:1(53-78)Online publication date: 1-Jan-2013
  • Show More Cited By

Recommendations

Comments

Please enable JavaScript to view thecomments powered by Disqus.

Information & Contributors

Information

Published In

cover image IEEE Transactions on Knowledge and Data Engineering
IEEE Transactions on Knowledge and Data Engineering  Volume 10, Issue 3
May 1998
161 pages

Publisher

IEEE Educational Activities Department

United States

Publication History

Published: 01 May 1998

Author Tags

  1. Rule analysis
  2. active databases
  3. production rules.
  4. rule debugging
  5. rule termination

Qualifiers

  • Research-article

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)0
  • Downloads (Last 6 weeks)0
Reflects downloads up to 13 Nov 2024

Other Metrics

Citations

Cited By

View all
  • (2016)A new approach to detecting active rule confluence with exclusive rules during an indeterminable rule processJournal of Intelligent & Fuzzy Systems: Applications in Engineering and Technology10.3233/JIFS-15220231:3(1769-1778)Online publication date: 1-Jan-2016
  • (2015)Efficient analysis of event processing applicationsProceedings of the 9th ACM International Conference on Distributed Event-Based Systems10.1145/2675743.2771834(10-21)Online publication date: 24-Jun-2015
  • (2013)Active rules termination analysis based on activation path and enhanced formulaInternational Journal of Intelligent Information and Database Systems10.1504/IJIIDS.2013.0517447:1(53-78)Online publication date: 1-Jan-2013
  • (2011)Design and development of algorithms for identifying termination of triggers in active databasesInternational Journal of Information Systems and Change Management10.1504/IJISCM.2011.0445275:3(251-266)Online publication date: 1-Dec-2011
  • (2011)Performance modelling of Event-Condition-Action rules in P2P networksJournal of Computer and System Sciences10.1016/j.jcss.2010.02.00477:4(621-636)Online publication date: 1-Jul-2011
  • (2009)A Logic Based Approach to the Static Analysis of Production SystemsProceedings of the 3rd International Conference on Web Reasoning and Rule Systems10.1007/978-3-642-05082-4_18(254-268)Online publication date: 14-Oct-2009
  • (2008)Managing runtime adaptivity through active rulesJournal of Web Engineering10.5555/2011271.20112737:3(179-199)Online publication date: 1-Sep-2008
  • (2008)Event-processing network model and implementationIBM Systems Journal10.1147/sj.472.032147:2(321-334)Online publication date: 1-Apr-2008
  • (2008)Method of using BDI agents to implement service-oriented workflow mapping in AGWMSInternational Journal of Parallel, Emergent and Distributed Systems10.1080/1744576070165929023:2(171-195)Online publication date: 1-Apr-2008
  • (2007)Active rules termination analysis through conditional formula containing updatable variableProceedings of the joint 9th Asia-Pacific web and 8th international conference on web-age information management conference on Advances in data and web management10.5555/1769708.1769748(281-292)Online publication date: 16-Jun-2007
  • Show More Cited By

View Options

View options

Media

Figures

Other

Tables

Share

Share

Share this Publication link

Share on social media