When we start services via Ambari, startup logs for all services include a line like :
"Checking if need to create versioned conf dir /etc/hadoop/22.214.171.124-258/0"
Even if the actual version of config on Ambari is lest say 15, the check is always for /etc/hadoop/126.96.36.199-258/0 and not /etc/hadoop/188.8.131.52-258/15
I also looked at ambari source code at https://github.com/apache/ambari/blob/ffc3c7111208c4446174328300a099971c294a1a/ambari-common/src/mai... and the check for a version dir# 0 seems to be hardcoded
When / are versioned config directories ever created?
Looks like 0 represents current version. Other versions are stored in ambari database.
You can have a look at below thread for more detail.