(improvement)(project) Fix the issue of occasional failure in the TagTest unit test. (#1500)

This commit is contained in:
lexluo09
2024-08-01 20:05:54 +08:00
committed by GitHub
parent 5a18ad5229
commit cabcbf16ff
3 changed files with 15 additions and 3 deletions

View File

@@ -3,12 +3,13 @@ package com.tencent.supersonic.headless.core.cache;
import com.tencent.supersonic.common.util.ContextUtils;
import com.tencent.supersonic.headless.api.pojo.request.SemanticQueryReq;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import java.util.List;
import java.util.Objects;
import java.util.concurrent.CompletableFuture;
import java.util.stream.Collectors;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
@Component
@Slf4j
@@ -18,7 +19,7 @@ public class DefaultQueryCache implements QueryCache {
CacheManager cacheManager = ContextUtils.getBean(CacheManager.class);
if (isCache(semanticQueryReq)) {
Object result = cacheManager.get(cacheKey);
log.info("query from cache, key:{}", cacheKey);
log.info("query from cache, key:{},result:{}", cacheKey, result);
return result;
}
return null;