AlbericByte commented on code in PR #16757:
URL: https://github.com/apache/druid/pull/16757#discussion_r1705796177
##########
server/src/main/java/org/apache/druid/client/cache/MemcachedCache.java:
##########
@@ -641,14 +641,14 @@ public void close()
public static final int MAX_PREFIX_LENGTH =
MemcachedClientIF.MAX_KEY_LENGTH
- - 40 // length of namespace hash
- - 40 // length of key hash
+ - 64 // length of namespace hash
+ - 64 // length of key hash
- 2; // length of separators
private static String computeKeyHash(String memcachedPrefix, NamedKey key)
{
// hash keys to keep things under 250 characters for memcached
- return memcachedPrefix + ":" + DigestUtils.sha1Hex(key.namespace) + ":" +
DigestUtils.sha1Hex(key.key);
+ return memcachedPrefix + ":" + DigestUtils.sha256Hex(key.namespace) + ":"
+ DigestUtils.sha256Hex(key.key);
Review Comment:
@cryptoe @FrankChen021 I have deployed 1 broker, 1 historical and 3
memcached instances, it can work well using following query, i will try 2
brokers and 2 historicals. And i will update here. Just fly back US from China,
reply late.
if need, i could add the docker compose yml file for memcached setup inside
this cr.
`select channel, sum(added) from wikipedia group by channel order by
sum(added) limit 5
`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]