@@ -186,9 +186,9 @@ public void deleteProject(@PathParam("project") String projectName)
186
186
187
187
@ DELETE
188
188
@ Path ("/{project}/data" )
189
- public void deleteProjectData (@ PathParam ("project" ) String projectName ) throws HistoryException {
189
+ public void deleteProjectData (@ PathParam ("project" ) String projectNameParam ) {
190
190
// Avoid classification as a taint bug.
191
- projectName = Laundromat .launderInput (projectName );
191
+ final String projectName = Laundromat .launderInput (projectNameParam );
192
192
193
193
Project project = disableProject (projectName );
194
194
logger .log (Level .INFO , "deleting data for project {0}" , projectName );
@@ -206,7 +206,7 @@ public void deleteProjectData(@PathParam("project") String projectName) throws H
206
206
deleteHistoryCache (projectName );
207
207
208
208
// Delete suggester data.
209
- suggester .delete (projectName );
209
+ new Thread (() -> suggester .delete (projectName )). start ( );
210
210
}
211
211
212
212
@ DELETE
@@ -246,9 +246,9 @@ public void deleteHistoryCache(@PathParam("project") String projectName) {
246
246
@ PUT
247
247
@ Path ("/{project}/indexed" )
248
248
@ Consumes (MediaType .TEXT_PLAIN )
249
- public void markIndexed (@ PathParam ("project" ) String projectName ) throws Exception {
249
+ public void markIndexed (@ PathParam ("project" ) String projectNameParam ) throws Exception {
250
250
// Avoid classification as a taint bug.
251
- projectName = Laundromat .launderInput (projectName );
251
+ final String projectName = Laundromat .launderInput (projectNameParam );
252
252
253
253
Project project = env .getProjects ().get (projectName );
254
254
if (project == null ) {
@@ -272,7 +272,8 @@ public void markIndexed(@PathParam("project") String projectName) throws Excepti
272
272
}
273
273
}
274
274
}
275
- suggester .rebuild (projectName );
275
+
276
+ new Thread (() -> suggester .rebuild (projectName )).start ();
276
277
277
278
// In case this project has just been incrementally indexed,
278
279
// its IndexSearcher needs a poke.
0 commit comments