public static byte[] getValidOps() {
        final byte[] copy = new byte[VALID_OPS.length];
        System.arraycopy(VALID_OPS, 0, copy, 0, copy.length);
        return copy;
    }
The best practice is to call this method only once
and keep a copy of it yourself.
jraft-rheakv/rheakv-core/src/main/java/com/alipay/sofa/jraft/rhea/storage/KVOperation.java