File tree 1 file changed +1
-7
lines changed
server/src/main/java/org/elasticsearch/search
1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change 44
44
import org .elasticsearch .common .util .concurrent .ConcurrentMapLong ;
45
45
import org .elasticsearch .core .internal .io .IOUtils ;
46
46
import org .elasticsearch .index .Index ;
47
- import org .elasticsearch .index .IndexNotFoundException ;
48
47
import org .elasticsearch .index .IndexService ;
49
48
import org .elasticsearch .index .IndexSettings ;
50
49
import org .elasticsearch .index .engine .Engine ;
@@ -558,12 +557,7 @@ final SearchContext createAndPutContext(ShardSearchRequest request) throws IOExc
558
557
context .indexShard ().getSearchOperationListener ().onNewContext (context );
559
558
putContext (context );
560
559
// ensure that if index is deleted concurrently, we free the context immediately, either here or in afterIndexRemoved
561
- try {
562
- indicesService .indexServiceSafe (request .shardId ().getIndex ());
563
- } catch (IndexNotFoundException e ) {
564
- freeContext (context .id ());
565
- throw e ;
566
- }
560
+ indicesService .indexServiceSafe (request .shardId ().getIndex ());
567
561
success = true ;
568
562
return context ;
569
563
} finally {
You can’t perform that action at this time.
0 commit comments