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

Explore merging of NamespaceClient and DiscoveryNamespaceClient

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.2.0
    • Fix Version/s: 3.5.0
    • Component/s: CDAP Clients, Namespaces
    • Labels:
      None
    • Rank:
      1|hzyz4f:

      Description

      Today, we have two namespace clients that use HTTP:
      DiscoveryNamespaceClient: Uses Service Discovery
      NamespaceClient: cdap-client that uses a fixed ClientConfig, goes through Router, also handles authentication.

      All the code for interacting with namespaces is shared in an AbstractNamespaceClient, only the construction of the HttpRequest is defined/overriden in the child classes.

      However, there may be a way to further simplify this by using a DiscoveryClient implementation that always returns the same discoverable.

      This jira is to explore this simplification. Also apply the same to ExploreClient if it is possible.

        Attachments

          Activity

            People

            • Assignee:
              bhooshan Bhooshan Mogal
              Reporter:
              bhooshan Bhooshan Mogal
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: