# Elasticsearch trying to get access to old shards

**URL:** <https://discuss.elastic.co/t/elasticsearch-trying-to-get-access-to-old-shards/377421>\
**Category:** Elasticsearch\
**Created:** [April 23, 2025, 8:07am UTC](https://discuss.elastic.co/t/elasticsearch-trying-to-get-access-to-old-shards/377421 "2025-04-23T08:07:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![TheJ](https://avatars.discourse-cdn.com/v4/letter/t/46a35a/32.png) [@TheJ](https://discuss.elastic.co/u/TheJ)\
**Post date:** [April 23, 2025, 8:07am UTC](https://discuss.elastic.co/t/elasticsearch-trying-to-get-access-to-old-shards/377421/1 "2025-04-23T08:07:50Z")

</div>

Hi,  
I have hot nodes with weekly data retention and 3 warm nodes with yearly retention. When I try to run a query to get logs from the last 5 days, Elasticsearch is trying to access shards that were created a month ago (and these shards caused a circuit-breaking exception). Is this expected behavior?

---

<div class="post-metadata">

**Author:** ![TheJ](https://avatars.discourse-cdn.com/v4/letter/t/46a35a/32.png) [@TheJ](https://discuss.elastic.co/u/TheJ)\
**Post date:** [April 29, 2025, 11:41am UTC](https://discuss.elastic.co/t/elasticsearch-trying-to-get-access-to-old-shards/377421/2 "2025-04-29T11:41:53Z")

</div>

I'm not sure but problem was with garbage collectior, after clearing cache memory with command given below

```auto
POST _cache/clear

```

All searching operations works fine
