nwangtw commented on a change in pull request #3725:
URL: https://github.com/apache/incubator-heron/pull/3725#discussion_r743373909
##########
File path:
heron/schedulers/src/java/org/apache/heron/scheduler/kubernetes/V1Controller.java
##########
@@ -130,6 +137,18 @@ boolean submit(PackingPlan packingPlan) {
throw new TopologySubmissionException(e.getMessage());
}
+ // Get and then create Persistent Volume Claims from the CLI.
+ persistentVolumeClaimConfigs =
KubernetesContext.getPersistentVolumeClaims(getConfiguration());
+ if (KubernetesContext.getPersistentVolumeClaimDisabled(getConfiguration())
+ && !persistentVolumeClaimConfigs.isEmpty()) {
+ final String message =
+ String.format("Loading Persistent Volume Claim from CLI is disabled:
'%s'", topologyName);
Review comment:
This error message is not very clear. From the if statement it looks
like when the PVC configs exist but PVC is disabled, the topology cannot be
submitted? Also, Is it the expected behavior?
Also, it seems like you have a check of `persistentVolumeClaimConfigs !=
null` later. Do we need to check it here?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]