SecureShuffleUtils provides the following helper:
The Utils class used there is org.apache.hadoop.record.Utils. With the record common package going away via
HADOOP-7781, the internal (and also deprecated on the whole) compareBytes utility must be moved elsewhere.
The Utils#compareBytes contains:
Which looks like it can be replaced inline, as it appears to be a dummy wrapper call. I'll put up a patch with this inline replacement shortly for review.