Minor nit: You could just put the entire message on the next line and avoid the split.
Also, include more informations:
    checkState(mLGNames.size() == 1,
        "All writes must be to the same locality group, got: %s.", mLGNames);