Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-5832

Migrate OperatorFixture to use SystemOptionManager rather than mock

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.12.0
    • 1.12.0
    • None

    Description

      The OperatorFixture provides structure for testing individual operators and other "sub-operator" bits of code. To do that, the framework provides mock network-free and server-free versions of the fragment context and operator context.

      As part of the mock, the OperatorFixture provides a mock version of the system option manager that provides a simple test-only implementation of an option set.

      With the recent major changes to the system option manager, this mock implementation has drifted out of sync with the system option manager. Rather than upgrading the mock implementation, this ticket asks to use the system option manager directly – but configured for no ZK or file persistence of options.

      The key reason for this change is that the system option manager has implemented a sophisticated way to handle option defaults; it is better to leverage that than to provide a mock implementation.

      Attachments

        Issue Links

          Activity

            People

              Paul.Rogers Paul Rogers
              Paul.Rogers Paul Rogers
              Timothy Farkas Timothy Farkas
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: