# Why strong rotation

**URL:** <https://discuss.elastic.co/t/why-strong-rotation/300413>\
**Category:** Elasticsearch\
**Created:** [March 23, 2022, 7:31am UTC](https://discuss.elastic.co/t/why-strong-rotation/300413 "2022-03-23T07:31:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Oliverwq](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/oliverwq/32/91800_2.png) [@Oliverwq](https://discuss.elastic.co/u/Oliverwq)\
**Post date:** [March 23, 2022, 7:31am UTC](https://discuss.elastic.co/t/why-strong-rotation/300413/1 "2022-03-23T07:31:34Z")

</div>

In `ClusterHealthResponse`  
that  
`int numberOfNodes = (int) parsedObjects[i++]; int numberOfDataNodes = (int) parsedObjects[i++]; int activeShards = (int) parsedObjects[i++]; int relocatingShards = (int) parsedObjects[i++]; int activePrimaryShards = (int) parsedObjects[i++]; int initializingShards = (int) parsedObjects[i++]; int unassignedShards = (int) parsedObjects[i++]; double activeShardsPercent = (double) parsedObjects[i++];`

I don't know Why strong rotation

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [March 23, 2022, 10:57am UTC](https://discuss.elastic.co/t/why-strong-rotation/300413/2 "2022-03-23T10:57:17Z")

</div>

I have absolutely no idea what you are talking about, when you post a small code snippet and a three word question. Please take some time to write up a proper issue, provide some context, your expectations and what does not match. Such a post is not helpful for most people reading it and will reduce your changes of a good answer.

Thank you!

---

<div class="post-metadata">

**Author:** ![Oliverwq](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/oliverwq/32/91800_2.png) [@Oliverwq](https://discuss.elastic.co/u/Oliverwq)\
**Post date:** [March 25, 2022, 1:34am UTC](https://discuss.elastic.co/t/why-strong-rotation/300413/3 "2022-03-25T01:34:04Z")

</div>

> [@Oliverwq](#):
>
> ClusterHealthResponse

I think `int numberOfNodes = (int) parsedObjects[i++]` do not need type cast,for example

```auto
int numberOfNodes = parsedObjects[i++]

```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [April 22, 2022, 1:34am UTC](https://discuss.elastic.co/t/why-strong-rotation/300413/4 "2022-04-22T01:34:52Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
