Uploaded image for project: 'Accumulo'
  1. Accumulo
  2. ACCUMULO-3752

Provide means to inject Halt implementation

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Not A Problem
    • None
    • None
    • master, tserver

    Description

      Code in the master and tserver that ends up directly calling System.exit makes it really crappy to actually test said error conditions.

      We could make a Halt interface and provide a means to inject an implementation of Halt.

      This would allow test cases to inject their own implementation that verifies that certain error conditions were reached. This would also enable the in-process MAC (ACCUMULO-2739)

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              elserj Josh Elser
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: