Indexing geo_shape in 2.0.0-rc1 (BUG?)

I'm using the following requests to index a document with a geo_shape:

curl -X PUT http://localhost:9200/test/

curl -X PUT http://localhost:9200/test/_mapping/object -d '
{
    "object" : {
        "properties" : {
            "bbox" : {
                "type": "geo_shape",
                "precision": "1cm"
            }
        }
    }
}'

curl -X POST http://localhost:9200/test/object -d '
{
    "bbox" : {
        "type" : "envelope",
        "coordinates" : [ [-45.0, 45.0], [45.0, -45.0] ]
    }
}'

Under 1.7.2 this works flawlessly and everything is done within a couple of milliseconds. But with 2.0.0-rc1 the last POST request takes several seconds and then crashes with an OutOfMemoryError (Java Heap Space).

Is this a bug or am I doing something wrong?

Cheers,
Michel

Looks like a bug to me!

I've raised this on GH, thanks heaps for reporting it!

Thanks a lot, Mark!

As was pointed out in the GH issue (and I totally missed this originally), you're using a resolution of 1cm, so you have to expect that to use a lot of heap.

Thanks. I replied on GitHub.

Michel