zhoujinsong commented on code in PR #2824:
URL: https://github.com/apache/amoro/pull/2824#discussion_r1597328063
##########
amoro-ams/amoro-ams-server/src/main/java/org/apache/amoro/server/terminal/TerminalManager.java:
##########
@@ -121,17 +124,24 @@ public String executeScript(String terminalId, String
catalog, String script) {
TerminalSessionFactory.SessionConfigOptions.catalogProperty(catalog,
key), value);
}
- TerminalSessionContext context;
synchronized (sessionMapLock) {
- sessionMap.computeIfAbsent(
+ sessionMap.compute(
sessionId,
- id ->
- new TerminalSessionContext(
- id, metaStore, executionPool, sessionFactory,
configuration));
-
- context = sessionMap.get(sessionId);
+ (id, ctx) -> {
Review Comment:
Changes here seem to fix another issue.
##########
amoro-ams/amoro-ams-server/src/main/java/org/apache/amoro/server/terminal/TerminalManager.java:
##########
@@ -370,7 +380,16 @@ private void applyClientProperties(CatalogMeta
catalogMeta) {
catalogMeta.putToCatalogProperties(
CatalogMetaProperties.KEY_WAREHOUSE, catalogMeta.getCatalogName());
} else if
(!catalogMeta.getCatalogProperties().containsKey(CatalogProperties.CATALOG_IMPL))
{
- catalogMeta.putToCatalogProperties("type", catalogType);
+ if (Sets.newHashSet(
Review Comment:
How about setting the `catalog-impl` properties automatically when creating
the Glue catalog?
--
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]