woyumen4597 commented on a change in pull request #325: KYLIN-3663 fix deleting 
project error when project has more than one …
URL: https://github.com/apache/kylin/pull/325#discussion_r230617173
 
 

 ##########
 File path: 
server-base/src/main/java/org/apache/kylin/rest/service/ProjectService.java
 ##########
 @@ -137,8 +138,10 @@ public ProjectInstance updateProject(ProjectInstance 
newProject, ProjectInstance
     @PreAuthorize(Constant.ACCESS_HAS_ROLE_ADMIN)
     public void deleteProject(String projectName, ProjectInstance project) 
throws IOException {
         Set<String> tables = project.getTables();
-        for (String table : tables) {
+        for (String table : Sets.newTreeSet(tables)) {
 
 Review comment:
   Since the unloading table operation will modify the set tables,while tables 
is traversed at the same time,which will cause concurrentException.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to