Uploaded image for project: 'CDAP'
  1. CDAP
  2. CDAP-5715

Endpoint plugin parent might not be able to instantiate a plugin

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.2.0, 4.1.1
    • Component/s: None
    • Labels:
      None
    • Release Notes:
      Made Plugin Endpoint invocation more robust. If a plugin's parent can't instantiate the plugin necessary for invoking, CDAP will attempt with other parents of the plugin and try to instantiate using them before retuning error.
    • Rank:
      1|hzzbhz:

      Description

      For DB-Source plugin there are two parents, etlBatch and etlDataPipeline.

      When invoking a plugin endpoint, say "getSchema" for DBSource, we pick one of the parent, say etlBatch, and use this parent artifact for creating parentClassloader. this same parent is used in EndpointPluginContext which is passed to getSchema, getSchma uses this context to instantiate other plugins (eg: mysql plugin).

      If mysql is deployed with parent only as etlDataPipeline, getSchema wouldn't be able to instantiate the mysql plugin.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                shankar Shankar Selvam
                Reporter:
                shankar Shankar Selvam
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: