Support sharded DuplicateKey exceptions

JAVA-1103