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

Indexation of document causes NullPointerException (on Linux) or ES process hanging #1325

Closed
an2deg opened this issue Sep 12, 2011 · 1 comment

Comments

@an2deg
Copy link

an2deg commented Sep 12, 2011

Affected ES v0.15.1, v0.16.2, v0.17.6.
Here is test case:

curl -XDELETE 'http://localhost:9200/test_contacts/'
curl -XPUT 'http://localhost:9200/test_contacts/'

curl -XPUT http://localhost:9200/test_contacts/contact/_mapping -d "{"contact": {"_all": {"enabled": false}, "dynamic": false, "properties": {"any_fields": {"index": "not_analyzed", "type": "string", "omit_term_freq_and_positions": "true"}, "reverse_fields": {"dynamic": false, "type": "object", "properties": {"last_name": {"index": "not_analyzed", "type": "string", "omit_term_freq_and_positions": "true"}, "twitter": {"dynamic": false, "type": "object", "properties": {"profile": {"index": "not_analyzed", "type": "string", "omit_term_freq_and_positions": "true"}, "user_id": {"index": "not_analyzed", "type": "string"}, "user_name": {"index": "not_analyzed", "type": "string", "omit_term_freq_and_positions": "true"}}}, "linkedin": {"dynamic": false, "type": "object", "properties": {"profile": {"index": "not_analyzed", "type": "string", "omit_term_freq_and_positions": "true"}, "user_id": {"index": "not_analyzed", "type": "string", "omit_term_freq_and_positions": "true"}, "user_name": {"index": "not_analyzed", "type": "string", "omit_term_freq_and_positions": "true"}}}, "street": {"index": "not_analyzed", "type": "string", "omit_term_freq_and_positions": "true"}, "skype": {"dynamic": false, "type": "object", "properties": {"profile": {"index": "not_analyzed", "type": "string", "omit_term_freq_and_positions": "true"}}}, "city": {"index": "not_analyzed", "type": "string", "omit_term_freq_and_positions": "true"}, "first_name": {"index": "not_analyzed", "type": "string", "omit_term_freq_and_positions": "true"}, "zip": {"index": "not_analyzed", "type": "string", "omit_term_freq_and_positions": "true"}, "title": {"index": "not_analyzed", "type": "string", "omit_term_freq_and_positions": "true"}, "state": {"index": "not_analyzed", "type": "string", "omit_term_freq_and_positions": "true"}, "leadSource": {"index": "not_analyzed", "type": "string", "omit_term_freq_and_positions": "true"}, "company_name": {"index": "not_analyzed", "type": "string", "omit_term_freq_and_positions": "true"}, "department": {"index": "not_analyzed", "type": "string", "omit_term_freq_and_positions": "true"}, "email": {"dynamic": false, "type": "object", "properties": {"profile": {"index": "not_analyzed", "type": "string", "omit_term_freq_and_positions": "true"}}}, "website": {"index": "not_analyzed", "type": "string", "omit_term_freq_and_positions": "true"}, "description": {"index": "not_analyzed", "type": "string", "omit_term_freq_and_positions": "true"}, "accountNumber": {"index": "not_analyzed", "type": "string", "omit_term_freq_and_positions": "true"}, "assistant": {"index": "not_analyzed", "type": "string", "omit_term_freq_and_positions": "true"}, "phone": {"index": "not_analyzed", "type": "string", "omit_term_freq_and_positions": "true"}, "facebook": {"dynamic": false, "type": "object", "properties": {"profile": {"index": "not_analyzed", "type": "string", "omit_term_freq_and_positions": "true"}, "user_id": {"index": "not_analyzed", "type": "string", "omit_term_freq_and_positions": "true"}, "user_name": {"index": "not_analyzed", "type": "string", "omit_term_freq_and_positions": "true"}}}, "leadType": {"index": "not_analyzed", "type": "string", "omit_term_freq_and_positions": "true"}, "dates": {"index": "not_analyzed", "type": "string", "omit_term_freq_and_positions": "true"}, "name": {"index": "not_analyzed", "type": "string", "omit_term_freq_and_positions": "true"}, "country": {"index": "not_analyzed", "type": "string", "omit_term_freq_and_positions": "true"}, "assistantPhone": {"index": "not_analyzed", "type": "string", "omit_term_freq_and_positions": "true"}}}, "reverse_any_fields": {"index": "not_analyzed", "type": "string", "omit_term_freq_and_positions": "true"}, "tag": {"index": "not_analyzed", "type": "string", "omit_term_freq_and_positions": "true"}, "created": {"index": "not_analyzed", "type": "date", "format": "yyyy-MM-dd'T'HH:mm:ssZ"}, "company_id": {"index": "not_analyzed", "type": "string"}, "fields": {"dynamic": false, "type": "object", "properties": {"last_name": {"index": "not_analyzed", "type": "string", "omit_term_freq_and_positions": "true"}, "twitter": {"dynamic": false, "type": "object", "properties": {"profile": {"index": "not_analyzed", "type": "string", "omit_term_freq_and_positions": "true"}, "user_id": {"index": "not_analyzed", "type": "string"}, "user_name": {"index": "not_analyzed", "type": "string", "omit_term_freq_and_positions": "true"}}}, "linkedin": {"dynamic": false, "type": "object", "properties": {"profile": {"index": "not_analyzed", "type": "string", "omit_term_freq_and_positions": "true"}, "user_id": {"index": "not_analyzed", "type": "string", "omit_term_freq_and_positions": "true"}, "user_name": {"index": "not_analyzed", "type": "string", "omit_term_freq_and_positions": "true"}}}, "street": {"index": "not_analyzed", "type": "string", "omit_term_freq_and_positions": "true"}, "skype": {"dynamic": false, "type": "object", "properties": {"profile": {"index": "not_analyzed", "type": "string", "omit_term_freq_and_positions": "true"}}}, "city": {"index": "not_analyzed", "type": "string", "omit_term_freq_and_positions": "true"}, "first_name": {"index": "not_analyzed", "type": "string", "omit_term_freq_and_positions": "true"}, "zip": {"index": "not_analyzed", "type": "string", "omit_term_freq_and_positions": "true"}, "title": {"index": "not_analyzed", "type": "string", "omit_term_freq_and_positions": "true"}, "state": {"index": "not_analyzed", "type": "string", "omit_term_freq_and_positions": "true"}, "leadSource": {"index": "not_analyzed", "type": "string", "omit_term_freq_and_positions": "true"}, "company_name": {"index": "not_analyzed", "type": "string", "omit_term_freq_and_positions": "true"}, "department": {"index": "not_analyzed", "type": "string", "omit_term_freq_and_positions": "true"}, "email": {"dynamic": false, "type": "object", "properties": {"profile": {"index": "not_analyzed", "type": "string", "omit_term_freq_and_positions": "true"}}}, "website": {"index": "not_analyzed", "type": "string", "omit_term_freq_and_positions": "true"}, "description": {"index": "not_analyzed", "type": "string", "omit_term_freq_and_positions": "true"}, "accountNumber": {"index": "not_analyzed", "type": "string", "omit_term_freq_and_positions": "true"}, "assistant": {"index": "not_analyzed", "type": "string", "omit_term_freq_and_positions": "true"}, "phone": {"index": "not_analyzed", "type": "string", "omit_term_freq_and_positions": "true"}, "facebook": {"dynamic": false, "type": "object", "properties": {"profile": {"index": "not_analyzed", "type": "string", "omit_term_freq_and_positions": "true"}, "user_id": {"index": "not_analyzed", "type": "string", "omit_term_freq_and_positions": "true"}, "user_name": {"index": "not_analyzed", "type": "string", "omit_term_freq_and_positions": "true"}}}, "leadType": {"index": "not_analyzed", "type": "string", "omit_term_freq_and_positions": "true"}, "dates": {"index": "not_analyzed", "type": "string", "omit_term_freq_and_positions": "true"}, "name": {"index": "not_analyzed", "type": "string", "omit_term_freq_and_positions": "true"}, "country": {"index": "not_analyzed", "type": "string", "omit_term_freq_and_positions": "true"}, "assistantPhone": {"index": "not_analyzed", "type": "string", "omit_term_freq_and_positions": "true"}}}, "id": {"type": "string", "store": "yes"}, "is_account": {"index": "not_analyzed", "type": "boolean"}, "owner_id": {"index": "not_analyzed", "type": "string"}}, "_source": {"enabled": false}}}"

curl -XPUT http://localhost:9200/test_contacts/contact/4e6dfd2dfa5bd81330000098 -d '{"reverse_any_fields": ["resu emos", "emos", "resu", "moc.niamod@rednaxela"], "any_fields": ["some user", "some", "user", "alexander@domain.com"], "created": "2011-09-12T12:38:05+0000", "reverse_fields": {"first_name": ["emos"], "last_name": ["resu"], "name": ["resu emos"], "email": ["moc.niamod@rednaxela"]}, "fields": {"first_name": ["some"], "last_name": ["user"], "name": ["some user"], "email": ["alexander@domain.com"]}, "owner_id": "4e6dfd2bfa5bd81330000002", "tag": [], "company_id": "4b619ddffa5bd81b71000002", "is_account": false, "id": "4e6dfd2dfa5bd81330000098"}'

@kimchy
Copy link
Member

kimchy commented Sep 12, 2011

This happens because email is mapped as object, but is provided with a value ,will push a change to fail it with a proper exception.

@kimchy kimchy closed this as completed in c62f476 Sep 12, 2011
mute pushed a commit to mute/elasticsearch that referenced this issue Jul 29, 2015
jev001 pushed a commit to jev001/elasticsearch that referenced this issue Dec 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants