When trying to Stretch vSan cluster from SDDC task is failing on subtask "VALIDATE_HA_DEFAULT_CONFIGURATION"
You confirmed that HA is ON in vCenter and there are no errors or warning messages related to HA in vCenter UI
In SDDC UI when expanding subtask you see similar message
VALIDATE_HA_DEFAULT_CONFIGURATION_FAILED > caused by: Cannot read the array length because "<local3>" is null
In domain manger logs you see similar entries
ERROR [vcf_dm,########,####] [c.v.e.s.o.model.error.ErrorFactory,dm-exec-##] [####] VALIDATE_HA_DEFAULT_CONFIGURATION_FAILED Validation for default HA configuration failed for cluster
####
com.vmware.evo.sddc.orchestrator.exceptions.OrchTaskException: Validation for default HA configuration failed for cluster #####
....
Caused by: java.lang.NullPointerException: Cannot read the array length because "<local3>" is null
SDDC 5.2
When Stretching vSan cluster task is started from SDDC vCenter will be queried for configuration.
If Advanced Settings for HA are empty this behaviour will occur.
Recreate Advanced settings in vCenter HA tab
Advanced Settings are located under
Cluster > Configure > vSphere Availability > Edit > Advanced Settings
das.ignoreInsufficientHbDatastore true
das.ignoreRedundantNetWarning true
das.iostatsInterval 0
das.isolationaddress0 XXX.XXX.XXX.XXX << vSan gateway 1
das.respectVmVmAntiAffinityRules true
das.usedefaultisolationaddress false
das.isolationaddress1 XXX.XXX.XXX.XXX << vSan gateway 2