ES Index creation: discrepancy in no. of primary/replica shards

Hi,
We are currently using ES 1.7. We have appropriate setting file where the no.of primary/replica shards count are read from and ES indices are created accordingly.

In one rare occurrence in our production, we found there was 1 index which was created with different primary/replica shards ,than what was mentioned in the setting(i couldn't repro it locally in my machine thou).

Is this any known issue? Could someone state the possibility or the reason why this might have happened?

Thanks, Divya

If an index is created via the APIs and specifies a different number of shards than the settings, whatever is specified in the API call will take precedence.

Agree, we use APIs for index creation and that's exactly why i dont get the reason behind a single index alone showing a discrepancy whereas others are created as specified in the settings.

Not sure if it is possibly timing issue ?

No, ES has created what was requested of it.