You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@submarine.apache.org by GitBox <gi...@apache.org> on 2020/08/12 00:57:55 UTC
[GitHub] [submarine] pingsutw commented on a change in pull request #374: SUBMARINE-598. Support get environment list from database
pingsutw commented on a change in pull request #374:
URL: https://github.com/apache/submarine/pull/374#discussion_r468945250
##########
File path: submarine-server/server-core/src/main/java/org/apache/submarine/server/environment/EnvironmentManager.java
##########
@@ -204,9 +204,32 @@ public Environment getEnvironment(String name)
*/
public List<Environment> listEnvironments(String status)
throws SubmarineRuntimeException {
- List<Environment> environmentList =
+ List<Environment> envs =
new ArrayList<Environment>(cachedEnvironments.values());
- return environmentList;
+ // Is it available in cache?
Review comment:
Do we need this line of comment?
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org