apply HBASE-8638-v0.patch