// Janus bug, when an indexed string attribute has a value longer than a certain length then the reverse indexed key generated by JanusGraph
// Janus bug, when an indexed string attribute has a value longer than a certain length then the reverse indexed key generated by JanusGraph
// exceeds the HBase row length's hard limit (Short.MAX). This trimming and hashing procedure is to circumvent that limitation
// exceeds the HBase row length's hard limit (Short.MAX). This trimming and hashing procedure is to circumvent that limitation
...
@@ -1024,26 +1032,26 @@ public class EntityGraphMapper {
...
@@ -1024,26 +1032,26 @@ public class EntityGraphMapper {
}
}
if(trimmedLength<value.length()){
if(trimmedLength<value.length()){
LOG.warn("Length of indexed attribute {} is {} characters, longer than safe-limit {}; trimming to {} - attempt #{}",ctx.getAttribute().getQualifiedName(),value.length(),INDEXED_STR_SAFE_LEN,trimmedLength,requestContext.getAttemptCount());
LOG.warn("Length of indexed attribute {} is {} characters, longer than safe-limit {}; trimming to {} - attempt #{}",attribute.getQualifiedName(),value.length(),INDEXED_STR_SAFE_LEN,trimmedLength,requestContext.getAttemptCount());
StringchecksumSuffix=":"+DigestUtils.shaHex(value);// Storing SHA checksum in case verification is needed after retrieval
StringchecksumSuffix=":"+DigestUtils.shaHex(value);// Storing SHA checksum in case verification is needed after retrieval
LOG.warn("Length of indexed attribute {} is {} characters, longer than safe-limit {}",ctx.getAttribute().getQualifiedName(),value.length(),INDEXED_STR_SAFE_LEN);
LOG.warn("Length of indexed attribute {} is {} characters, longer than safe-limit {}",attribute.getQualifiedName(),value.length(),INDEXED_STR_SAFE_LEN);