# Using search\_after with a number larger than a 64bit integer crashes ES in 7.x

**URL:** <https://discuss.elastic.co/t/using-search-after-with-a-number-larger-than-a-64bit-integer-crashes-es-in-7-x/203874>\
**Category:** Elasticsearch\
**Created:** [October 16, 2019, 3:26pm UTC](https://discuss.elastic.co/t/using-search-after-with-a-number-larger-than-a-64bit-integer-crashes-es-in-7-x/203874 "2019-10-16T15:26:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![fperks](https://avatars.discourse-cdn.com/v4/letter/f/9de053/32.png) [@fperks](https://discuss.elastic.co/u/fperks)\
**Post date:** [October 16, 2019, 3:26pm UTC](https://discuss.elastic.co/t/using-search-after-with-a-number-larger-than-a-64bit-integer-crashes-es-in-7-x/203874/1 "2019-10-16T15:26:34Z")

</div>

Version: 7.3.1  
Java: Java(TM) SE Runtime Environment (build 1.8.0\_201-b09)

Passing `search_after` parameter with a numeric value larger than 64bit causes Elasticsearch service to terminate.

Doing this:

```auto
curl -X POST \
  http://x.x.x.x:9200/_search \
  -H 'Content-Type: application/json' \
  -H 'cache-control: no-cache' \
  -d '{
    "query": {
        "match_all": {}
    },
    "sort": [
        {
            "created": {
                "order": "asc"
            }
        }
    ],
    "search_after": [
        922337203685477600012718
    ]
}'

```

Leads to this:

```auto
Oct 16 15:04:40 ip-x-x-x-x systemd[1]: Started Elasticsearch.
Oct 16 15:04:46 ip-x-x-x-x elasticsearch[3738]: OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
Oct 16 15:05:30 ip-x-x-x-x systemd[1]: elasticsearch.service: Main process exited, code=exited, status=1/FAILURE
Oct 16 15:05:30 ip-x-x-x-x systemd[1]: elasticsearch.service: Failed with result 'exit-code'.

```

Stack Trace: [https://gist.github.com/fperks/8fb16f82c2837af3421a98033ad3c537](https://gist.github.com/fperks/8fb16f82c2837af3421a98033ad3c537)

---

<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:** [November 13, 2019, 3:28pm UTC](https://discuss.elastic.co/t/using-search-after-with-a-number-larger-than-a-64bit-integer-crashes-es-in-7-x/203874/3 "2019-11-13T15:28:22Z")

</div>

Closed on November 13, 2019, 3:28pm UTC

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