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

UpgradeTool assume default namespace exists

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 4.1.0, 4.0.1, 3.5.3
    • Fix Version/s: 4.1.0, 3.5.4, 4.0.2
    • Component/s: None
    • Labels:
    • Release Notes:
      Fix the CDAP UpgradeTool to not rely on the existence of a 'default' namespace.
    • Rank:
      1|hzztfb:

      Description

      The UpgradeTool fails with exception like this if default namespace doesn't exist:

      2017-01-25 16:48:05,183 - ERROR [main:c.c.c.d.t.UpgradeTool@428] - Failed to upgrade ...
      java.util.concurrent.ExecutionException: co.cask.cdap.api.dataset.DatasetManagementException: Cannot retrieve all dataset instances, details: Response code: 404, message: 'Not Found', body: ''namespace:default' was not found.'
      	at co.cask.cdap.common.utils.Tasks.waitFor(Tasks.java:63) ~[co.cask.cdap.cdap-common-3.5.3.jar:na]
      	at co.cask.cdap.common.utils.Tasks.waitFor(Tasks.java:91) ~[co.cask.cdap.cdap-common-3.5.3.jar:na]
      	at co.cask.cdap.data.tools.UpgradeDatasetServiceManager.startUp(UpgradeDatasetServiceManager.java:115) ~[co.cask.cdap.cdap-master-3.5.3.jar:na]
      	at co.cask.cdap.data.tools.UpgradeTool.performUpgrade(UpgradeTool.java:393) ~[co.cask.cdap.cdap-master-3.5.3.jar:na]
      	at co.cask.cdap.data.tools.UpgradeTool.doMain(UpgradeTool.java:317) ~[co.cask.cdap.cdap-master-3.5.3.jar:na]
      	at co.cask.cdap.data.tools.UpgradeTool.main(UpgradeTool.java:426) ~[co.cask.cdap.cdap-master-3.5.3.jar:na]
      Caused by: co.cask.cdap.api.dataset.DatasetManagementException: Cannot retrieve all dataset instances, details: Response code: 404, message: 'Not Found', body: ''namespace:default' was not found.'
      	at co.cask.cdap.data2.datafabric.dataset.DatasetServiceClient.getAllInstances(DatasetServiceClient.java:154) ~[co.cask.cdap.cdap-data-fabric-3.5.3.jar:na]
      	at co.cask.cdap.data2.datafabric.dataset.RemoteDatasetFramework.getInstances(RemoteDatasetFramework.java:154) ~[co.cask.cdap.cdap-data-fabric-3.5.3.jar:na]
      	at co.cask.cdap.data2.dataset2.ForwardingDatasetFramework.getInstances(ForwardingDatasetFramework.java:85) ~[co.cask.cdap.cdap-data-fabric-3.5.3.jar:na]
      	at co.cask.cdap.data.tools.UpgradeDatasetServiceManager$1.call(UpgradeDatasetServiceManager.java:119) ~[co.cask.cdap.cdap-master-3.5.3.jar:na]
      	at co.cask.cdap.data.tools.UpgradeDatasetServiceManager$1.call(UpgradeDatasetServiceManager.java:115) ~[co.cask.cdap.cdap-master-3.5.3.jar:na]
      	at co.cask.cdap.common.utils.Tasks.waitFor(Tasks.java:58) ~[co.cask.cdap.cdap-common-3.5.3.jar:na]
      	... 5 common frames omitted
      

        Attachments

          Activity

            People

            • Assignee:
              ali.anwar Ali Anwar
              Reporter:
              terence Terence Yim
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: