HDDS-1638 brought in HA code for Key operations like allocateBlock,createKey etc.,
Old code changes which are added as part of HDDS-1250 and HDDS-1262 for allocateBlock and openKey.
GitHub Pull Request #1038