zhangm365 opened a new pull request, #39874:
URL: https://github.com/apache/doris/pull/39874
The correct comment is:
The refreshAfterWriteSec is only used for namesCache, not for metaObjCache.
## Proposed changes
<!--Describe your changes.-->
The source code is:
```java
CacheFactory namesCacheFactory = new CacheFactory(
expireAfterWriteSec,
refreshAfterWriteSec,
1, // names cache has one and only one entry
true,
null);
CacheFactory objCacheFactory = new CacheFactory(
expireAfterWriteSec,
OptionalLong.empty(),
maxSize,
true,
null);
// buildCache.
namesCache = namesCacheFactory.buildCache(namesCacheLoader, null, executor);
metaObjCache = objCacheFactory.buildCache(metaObjCacheLoader,
removalListener, executor);
```
I have debugged the source code and the debugging information is:

--
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]