Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NullPointerException while bulk insert via alias on deleted index #9580

Closed
avkhozov opened this issue Feb 5, 2015 · 1 comment
Closed

NullPointerException while bulk insert via alias on deleted index #9580

avkhozov opened this issue Feb 5, 2015 · 1 comment

Comments

@avkhozov
Copy link

avkhozov commented Feb 5, 2015

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:~$
@clintongormley
Copy link
Contributor

Hi @avkhozov

Thanks for reporting. This has already been fixed in #9057

alext added a commit to alphagov/ci-puppet that referenced this issue Mar 30, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants