yuqi1129 commented on code in PR #6569:
URL: https://github.com/apache/gravitino/pull/6569#discussion_r1986524466
##########
core/src/main/java/org/apache/gravitino/metalake/MetalakeManager.java:
##########
@@ -149,20 +185,23 @@ public BaseMetalake[] listMetalakes() {
*/
@Override
public BaseMetalake loadMetalake(NameIdentifier ident) throws
NoSuchMetalakeException {
- try {
- BaseMetalake baseMetalake =
- TreeLockUtils.doWithTreeLock(
- ident,
- LockType.READ,
- () -> store.get(ident, EntityType.METALAKE, BaseMetalake.class));
- return newMetalakeWithResolvedProperties(baseMetalake);
- } catch (NoSuchEntityException e) {
- LOG.warn("Metalake {} does not exist", ident, e);
- throw new NoSuchMetalakeException(METALAKE_DOES_NOT_EXIST_MSG, ident);
- } catch (IOException ioe) {
- LOG.error("Loading Metalake {} failed due to storage issues", ident,
ioe);
- throw new RuntimeException(ioe);
- }
+ return TreeLockUtils.doWithTreeLock(
+ ident,
+ LockType.READ,
+ () -> {
+ try {
+ BaseMetalake baseMetalake = store.get(ident, EntityType.METALAKE,
BaseMetalake.class);
Review Comment:
It's a mistake.
--
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]