Skip to content

NullPointerException while bulk insert via alias on deleted index #9580

@avkhozov

Description

@avkhozov
user@host:~$ curl -i 'http://localhost:9200'
HTTP/1.1 200 OK
Content-Type: application/json; charset=UTF-8
Content-Length: 336

{
  "status" : 200,
  "name" : "Red Nine",
  "cluster_name" : "elasticsearch",
  "version" : {
    "number" : "1.4.2",
    "build_hash" : "927caff6f05403e936c20bf4529f144f0c89fd8c",
    "build_timestamp" : "2014-12-16T14:11:12Z",
    "build_snapshot" : false,
    "lucene_version" : "4.10.2"
  },
  "tagline" : "You Know, for Search"
}
user@host:~$ curl -i -XPUT 'http://localhost:9200/t_index?pretty=1'
HTTP/1.1 200 OK
Content-Type: application/json; charset=UTF-8
Content-Length: 28

{
  "acknowledged" : true
}
user@host:~$ curl -i -XPUT 'http://localhost:9200/t_index/_alias/t_alias?pretty=1'
HTTP/1.1 200 OK
Content-Type: application/json; charset=UTF-8
Content-Length: 28

{
  "acknowledged" : true
}
user@host:~$ curl -i -XPOST 'http://localhost:9200/t_index/_close?pretty=1'
HTTP/1.1 200 OK
Content-Type: application/json; charset=UTF-8
Content-Length: 28

{
  "acknowledged" : true
}
user@host:~$ curl -i -XPOST 'http://localhost:9200/_bulk?pretty=1' -d '
> {"index":{"_type":"test","_index":"t_alias"}}
> {"a":5}
> '
HTTP/1.1 500 Internal Server Error
Content-Type: application/json; charset=UTF-8
Content-Length: 63

{
  "error" : "NullPointerException[null]",
  "status" : 500
}
user@host:~$

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions