# Key Not Found (error 2) - but it is in DB

**URL:** <https://discuss.aerospike.com/t/key-not-found-error-2-but-it-is-in-db/6572>\
**Category:** General Discussion\
**Created:** [August 15, 2019, 2:06pm UTC](https://discuss.aerospike.com/t/key-not-found-error-2-but-it-is-in-db/6572 "2019-08-15T14:06:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nanokassa](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/nanokassa/32/1062_2.png) [@nanokassa](https://discuss.aerospike.com/u/nanokassa)\
**Post date:** [August 15, 2019, 2:06pm UTC](https://discuss.aerospike.com/t/key-not-found-error-2-but-it-is-in-db/6572/1 "2019-08-15T14:06:37Z")

</div>

Hello!

We have 3 dbs. With relp factor 3. Ver 4.5.3.2

So we delivered record. At the same moment, one server goes down. So we saving this record. And we have sucess status for writing. (2/3 are online) Now from another server we want to read this record (with 3 second timeout). But… we have message that this record dont found. Why so? What to do?

Thanks

---

<div class="post-metadata">

**Author:** ![kporter](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/kporter/32/515_2.png) [@kporter](https://discuss.aerospike.com/u/kporter)\
**Post date:** [August 19, 2019, 9:08pm UTC](https://discuss.aerospike.com/t/key-not-found-error-2-but-it-is-in-db/6572/2 "2019-08-19T21:08:57Z")

</div>

This can happen if you are using the [write-commit-level-override master](https://www.aerospike.com/docs/reference/configuration/?show-removed=0#write-commit-level-override) feature or the per transaction policy from the client, for example for java see the [commitLevel](https://www.aerospike.com/apidocs/java/com/aerospike/client/policy/WritePolicy.html#commitLevel) on the WritePolicy.

It can also happen if the cluster wasn’t fully formed when the write took place. The master for this record could have been in a single node sub-cluster when the write succeeded. In which case it would have only succeeded to a single node which may have been the node that failed.

If these types of consistency issues are a major concern I recommend looking into our [Strong Consistency feature](https://www.aerospike.com/docs/architecture/consistency.html).

---

<div class="post-metadata">

**Author:** ![system](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/system/32/2274_2.png) [@system](https://discuss.aerospike.com/u/system)\
**Post date:** [September 24, 2019, 5:11pm UTC](https://discuss.aerospike.com/t/key-not-found-error-2-but-it-is-in-db/6572/3 "2019-09-24T17:11:35Z")

</div>

Closed on September 24, 2019, 5:11pm UTC

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