Skip to content

HDInsight - bug fix in cmdlet - TFS Defect 4123936 #140

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 6, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
using System.Reflection;
using System.Security.Cryptography.X509Certificates;
using System.Threading.Tasks;
using Microsoft.WindowsAzure.Management.HDInsight.ClusterProvisioning.Data;
using Microsoft.WindowsAzure.Management.HDInsight.Cmdlet.Commands.CommandInterfaces;
using Microsoft.WindowsAzure.Management.HDInsight.Cmdlet.DataObjects;
using Microsoft.WindowsAzure.Management.HDInsight.Cmdlet.GetAzureHDInsightClusters;
Expand Down Expand Up @@ -159,11 +160,19 @@ protected override void EndProcessing()
command.Location = cluster.Location;
if (ClusterSizeInNodes < cluster.ClusterSizeInNodes)
{
var task = ConfirmSetAction(
"You are requesting a cluster size that is less than the current cluster size. We recommend not running jobs till the operation is complete as all running jobs will fail at end of resize operation and may impact the health of your cluster. Do you want to continue?",
"Continuing with set cluster operation.",
ClusterSizeInNodes.ToString(CultureInfo.InvariantCulture),
action);
Task task;
if (cluster.ClusterType == ClusterType.Hadoop)
{
task = ConfirmSetAction(
"You are requesting a cluster size that is less than the current cluster size. We recommend not running jobs till the operation is complete as all running jobs will fail at end of resize operation and may impact the health of your cluster. Do you want to continue?",
"Continuing with set cluster operation.",
ClusterSizeInNodes.ToString(CultureInfo.InvariantCulture),
action);
}
else
{
task = action();
}
if (task == null)
{
throw new OperationCanceledException("The change cluster size operation was aborted.");
Expand Down