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

Dataproc provisioner fails with NPE when there is no firewall rule configured

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.0.0
    • Component/s: None
    • Labels:
      None
    • Release Notes:
      Fixed a NullPointerException in Dataproc provision when there is no network being configured
    • Rank:
      1|i00n87:

      Description

      It fails with the following stacktrace

      2019-04-15 17:29:05,390 - ERROR [provisioning-service-2:i.c.c.i.p.t.ProvisioningTask@114] - PROVISION task failed in REQUESTING_CREATE state for program run program_run:default.Simple.-SNAPSHOT.workflow.DataPipelineWorkflow.f3f812e3-5fa3-11e9-92ce-feafd5dce131.
      java.lang.NullPointerException: null
      	at io.cdap.cdap.runtime.spi.provisioner.dataproc.DataprocClient.getFirewallTargetTags(DataprocClient.java:313) ~[na:na]
      	at io.cdap.cdap.runtime.spi.provisioner.dataproc.DataprocClient.createCluster(DataprocClient.java:155) ~[na:na]
      	at io.cdap.cdap.runtime.spi.provisioner.dataproc.DataprocProvisioner.createCluster(DataprocProvisioner.java:172) ~[na:na]
      	at io.cdap.cdap.internal.provision.task.ClusterCreateSubtask.execute(ClusterCreateSubtask.java:43) ~[na:na]
      	at io.cdap.cdap.internal.provision.task.ProvisioningSubtask.execute(ProvisioningSubtask.java:54) ~[na:na]
      	at io.cdap.cdap.internal.provision.task.ProvisioningTask.lambda$execute$0(ProvisioningTask.java:107) ~[na:na]
      	at io.cdap.cdap.common.service.Retries.callWithRetries(Retries.java:183) ~[na:na]
      	at io.cdap.cdap.common.service.Retries.callWithInterruptibleRetries(Retries.java:257) ~[na:na]
      	at io.cdap.cdap.internal.provision.task.ProvisioningTask.execute(ProvisioningTask.java:107) ~[na:na]
      	at io.cdap.cdap.internal.provision.ProvisioningService.lambda$null$16(ProvisioningService.java:560) [na:na]
      	at io.cdap.cdap.internal.provision.ProvisioningService.runWithProgramLogging(ProvisioningService.java:756) [na:na]
      	at io.cdap.cdap.internal.provision.ProvisioningService.lambda$createProvisionTask$17(ProvisioningService.java:556) [na:na]
      	at io.cdap.cdap.common.async.KeyedExecutor.lambda$submit$0(KeyedExecutor.java:62) ~[na:na]
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[na:1.8.0_212]
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[na:1.8.0_212]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[na:1.8.0_212]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[na:1.8.0_212]
      	at java.lang.Thread.run(Thread.java:748) ~[na:1.8.0_212] 

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                terence Terence Yim
                Reporter:
                terence Terence Yim
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: