# Scans with "done(abandoned-unknown)" status

**URL:** <https://discuss.aerospike.com/t/scans-with-done-abandoned-unknown-status/1820>\
**Category:** Java Client\
**Tags:** query, aql\
**Created:** [September 10, 2015, 10:26am UTC](https://discuss.aerospike.com/t/scans-with-done-abandoned-unknown-status/1820 "2015-09-10T10:26:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Javier\_Salinas](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/javier_salinas/32/354_2.png) [@Javier\_Salinas](https://discuss.aerospike.com/u/Javier_Salinas)\
**Post date:** [September 10, 2015, 10:26am UTC](https://discuss.aerospike.com/t/scans-with-done-abandoned-unknown-status/1820/1 "2015-09-10T10:26:00Z")

</div>

Once I updated aerospike server and java client I am having a strange status **“done(abandoned-unknown)”** on aql \> show scans

 ![](https://us1.discourse-cdn.com/flex019/uploads/aerospike/original/1X/d6e7399c2b899e257cb70a23a742bacac7eed155.png)

When query a set with a few registries is having a **“done(ok)”**, but when query a bigger set is having the **“done(abandoned-unknown)”**.

This behaviour is happening when aerospike server runs on Redhat, but if it is running on Mac with vagrant is having **“active(ok)”** with job\_status **“IN\_PROGRESS”** and blocks.

The code running is a simple scala code like:

```
  object Simple {
  var nodeList: Array[Node] = empty

  def main(args: Array[String]) {
    val initialHost: String = "XXX.XX.XX.XX:3000"
    val namespace: String = "test"
    val set: String = "hundred"
// val set: String = "hundred_thousand"
    val select: String = "select * from %s.%s".format(namespace, set)

    val policy = new ClientPolicy()
    val splitHost = initialHost.split(":")
    val client = new AerospikeClient(policy, splitHost(0), splitHost(1).toInt)

    try {
      nodeList = client.getNodes
      val stmt = new Statement()
      stmt.setNamespace(namespace)
      stmt.setSetName(set)

      val recs: RecordSet = client.queryNode(client.queryPolicyDefault, stmt, nodeList.head)
      try {
        val iterator = recs.iterator()
        if (iterator.hasNext) {
          val record = iterator.next().record
          println(record)
        }
      } finally {
        recs.close()
      }
    }
    finally {
      client.close()
    }
  }
}

```

---

<div class="post-metadata">

**Author:** ![wchu](https://avatars.discourse-cdn.com/v4/letter/w/a5b964/32.png) [@wchu](https://discuss.aerospike.com/u/wchu)\
**Post date:** [September 16, 2015, 8:07pm UTC](https://discuss.aerospike.com/t/scans-with-done-abandoned-unknown-status/1820/2 "2015-09-16T20:07:53Z")

</div>

This is a set scan. You can troubleshoot by looking at the aerospike.log, and grep for “(scan)”, which will give info similar to -

```
Sep 14 2015 22:58:05 GMT: INFO (scan): (thr_tscan.c::871) scan job received
....
Sep 14 2015 22:58:06 GMT: INFO (scan): (thr_tscan.c::387) SCAN JOB DONE

```
