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

API for datasets used by an app is wrong

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0.0
    • Component/s: App Fabric
    • Labels:
    • Rank:
      1|hzypd3:

      Description

      To reproduce:

      1. Deploy PurchaseHistory example. This should create 4 datasets: "frequentCustomers", "userProfiles", "purchases", and "history"

      2. hit the datasets for an app api:

      $ curl 'localhost:10000/v3/namespaces/default/apps/PurchaseHistory/datasets' | python -m json.tool
        % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                       Dload  Upload   Total   Spent    Left  Speed
      100   234  100   234    0     0     41      0  0:00:05  0:00:05 --:--:--    64
      [
          {
              "classname": "co.cask.cdap.examples.purchase.PurchaseHistoryStore",
              "id": "history",
              "name": "history",
              "type": "Dataset"
          },
          {
              "classname": "co.cask.cdap.api.dataset.lib.ObjectMappedTable",
              "id": "purchases",
              "name": "purchases",
              "type": "Dataset"
          }
      ]
      

      It only returns 2 datasets.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                poorna Poorna Chandra
                Reporter:
                ashau Albert Shau
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: