Skip to main content
Log in

Debugging and Run-time Monitoring of Active Rules

  • Published:
Journal of Systems Integration

Abstract

Especially during the design and tuning of active rules, it is possible that rule execution enters an endless loop, where rules “cascade” by triggering each other indefinitely, so that their processing does not terminate. Commercial systems detect this situation in a simple way, by keeping counters on the number or depth of cascading rules, and suspending an execution when the counters exceed given thresholds. However, the setting of these counters is quite critical: too low thresholds may cause the halting of rule processing in absence of loops, too high thresholds may reveal a loop only after an expensive processing. In this paper, we propose a technique for revealing 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. We exploit this property to develop cycle monitors, which check at run time that critical rule sequences, detected at compile time, do not repeat forever. We describe the run-time monitoring environment of Chimera, an active DBMS prototype currently under development at the Politecnico di Milano, and we illustrate with a concrete applicative example the results obtained with the cycle monitoring technique.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Similar content being viewed by others

References

  1. R. Agrawal, R. J. Cochrane, and B. Lindsay. On maintaining priorities in a production rule system. In G. M. Lohman, A. Sernadas, and R. Camps, editors, Proc. Seventeenth Int'l Conf. on Very Large Data Bases, pages 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 Transactions on Database Systems, 20(1):3–41, Mar. 1995.

    Article  Google Scholar 

  3. E. Baralis, S. Ceri, G. Monteleone, and S. Paraboschi. An intelligent database system application: The design of EMS. In W. Litwin and T. Risch, editors, Proc. of First Intn'l Conf. on Applications of Databases, ADB-94, Lecture Notes in Computer Science, pages 172–189, Vadstena, Sweden, June 1994. Springer-Verlag, Berlin.

    Google Scholar 

  4. E. Baralis, S. Ceri, and S. Paraboschi. Improved rule analysis by means of triggering and activation graphs. In T. Sellis, editor, Proc. of the Second Workshop on Rules in Databases Systems, LNCS 985, pages 165–181, Athens, Greece, Sept. 1995.

  5. E. Baralis, S. Ceri, and S. Paraboschi. Run-time detection of non-terminating active rule systems. In Proc. of the Conf. on Deductive and Object-Oriented Databases, DOOD '95, LNCS 1013, pages 38–54, Singapore, Dec. 1995.

  6. E. Baralis, S. Ceri, and S. Paraboschi. Modularization techniques for active rules design. ACM Transactions on Database Systems, 21(1):1–29, Mar. 1996.

    Article  Google Scholar 

  7. E. Baralis and J. Widom. An algebraic approach to rule analysis in expert database systems. In Proc. Twentieth Int'l Conf. on Very Large Data Bases, pages 475–486, Santiago, Chile, Sept. 1994.

  8. E. Benazet, H. Guehl, and M. Bouzeghoub. VITAL: a visual tool for analysis of rules behavior in active databases. In T. Sellis, editor, Proc. of the Second Workshop on Rules in Databases Systems, LNCS 985, pages 182–196, Athens, Greece, Sept. 1995.

  9. L. Brownston, R. Farrell, E. Kant, and N. Martin. Programming Expert Systems in OPS5: An Introduction to Rule-Based Programming. Addison-Wesley, 1985.

  10. S. Ceri, E. Baralis, P. Fraternali, and S. Paraboschi. Design of active rule applications: Issues and approaches. In Proc. of the Int'l Conf. on Deductive and Object-Oriented Databases, Singapore, Dec. 1995. 1- 18.

  11. S. Ceri and P. Fraternali. The IDEA methodology. Technical Report IDEA.WP2.22P.001.03, ESPRIT Project n. 6333 IDEA, June 1995. To be published by Addison-Wesley Publisher Ltd. in the “Series on Database Systems and Applications”.

  12. S. Ceri, P. Fraternali, S. Paraboschi, and L. Tanca. Automatic generation of production rules for integrity maintenance. ACM Transactions on Database Systems, 19(3):367–422, Sept. 1994.

    Article  Google Scholar 

  13. S. Ceri and R. Manthey. Consolidated specification of Chimera, the conceptual interface of Idea. Technical Report IDEA.DD.2P.004, ESPRIT Project n. 6333 Idea, June 1993.

  14. S. Ceri and J. Widom. Deriving production rules for constraint maintenance. In D. McLeod, R. Sacks-Davis, and H. Schek, editors, Proc. Sixteenth Int'l Conf. on Very Large Data Bases, pages 566–577, Brisbane, Australia, Aug. 1990.

  15. S. Ceri and J. Widom. Managing semantic heterogeneity with production rules and persistent queues. In R. Agrawal, S. Baker, and D. Bell, editors, Proc. Nineteenth Int'l Conf. on Very Large Data Bases, pages 108–119, Dublin, Ireland, Aug. 1993.

  16. S. Ceri and J. Widom. Deriving incremental production rules for deductive data. Information Systems, 19(6):467–490, Nov. 1994.

    Article  Google Scholar 

  17. S. Chakravarthy, Z. Tamizuddin, and J. Zhou. A visualization and explanation tool for debugging ECA rules in active databases. In T. Sellis, editor, Proc. of the Second Workshop on Rules in Databases Systems, LNCS 985, pages 197–209, Athens, Greece, Sept. 1995.

  18. U. Dayal, M. Hsu, and R. Ladin. Organizing long-running activities with triggers and transactions. In H. Garcia Molina and H. V. Jagadish, editors, Proc. ACM SIGMOD Int'l Conf. on Management of Data, pages 204–214, Atlantic City, New Jersey, May 1990.

  19. O. Diaz, A. Jaime, and N. Paton. DEAR: A DEbugger for Active Rules in an object-oriented context. In N. W. Paton and M. H. Williams, editors, Proc. of First Workshop on Rules in Database Systems, WICS, pages 180–193, Edinburgh, Scotland, Aug. 1993. Springer-Verlag, Berlin.

    Google Scholar 

  20. Digital Equipment Corp. Rdb/VMS-SQL Reference Manual, Nov. 1991.

  21. A. P. Karadimce and S. D. Urban. Conditional term rewriting as a formal basis for analysis of active database rules. In Proc. Fourth International Workshop on Research Issues in Data Engineering RIDE-ADS '94, pages 156–162, Houston, Texas, Feb. 1994.

  22. P. Loucopoulos. Requirements engineering: Conceptual modelling and CASE perspectives. Technical report, COMETT/FORMITT Course on Conceptual Modelling, Databases and CASE, Lausanne, Switzerland, Oct. 1994.

  23. G. Monteleone and E. Baralis. A dynamic electrical network description: Analysis and design. Technical Report IDEA.DD.1T.005, TXT Ingegneria Informatica, Milano, Italy, Aug. 1993.

    Google Scholar 

  24. Oracle Corporation, 500 Oracle Parkway, Redwood City CA 94065. Oracle 7 Server Concepts Manual, Dec. 1992. Part Number 6693–70.

  25. S. Paraboschi. Automatic Rule Generation for Constraint and View Maintenance in Active Databases. PhD thesis, Politecnico di Milano-Dipartimento di Elettronica e Informazione, Jan. 1994. In Italian.

  26. L. van der Voort and A. Siebes. Termination and confluence of rule execution. In Proc. of the Second International Conference on Information and Knowledge Management, Washington DC, Nov. 1993.

  27. J. Widom and S. Ceri. Active Database Systems. Morgan-Kaufmann, San Mateo, California, Aug. 1996.

Download references

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

About this article

Cite this article

Baralis, E., Ceri, S. & Paraboschi, S. Debugging and Run-time Monitoring of Active Rules. Journal of Systems Integration 7, 327–347 (1997). https://doi.org/10.1023/A:1008283421564

Download citation

  • Issue Date:

  • DOI: https://doi.org/10.1023/A:1008283421564

Navigation