HDFS-12979, the prepare step of rolling upgrade does not work. This is because it added additional check for sufficient time passing since last checkpoint. Since RU rollback image creation and upload can happen any time, uploading of rollback image never succeeds. For a new cluster deployed for testing, it might work since it never checkpointed before.
It was found that this check is disabled for unit tests, defeating the very purpose of testing.