public static void checkForTagsLength(int tagsLength) {
    if (tagsLength > MAX_TAGS_LENGTH) {
      throw new IllegalArgumentException("tagslength " + tagsLength + " > " + MAX_TAGS_LENGTH);
    }
  }
Check the length of tags. If it is invalid, throw IllegalArgumentException
@param tagsLength the given length of tags
@throws IllegalArgumentException if tagslength is invalid
hbase-common/src/main/java/org/apache/hadoop/hbase/RawCell.java