applying HBASE-11374 fix

@mustpax @neilfulwiler @dogaan 
yeah, this change is from the original patch so we'd want to stick with int.