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

[BUG] NPE when bulk ingest using ingest pipeline without processors #15032

Closed
chishui opened this issue Jul 31, 2024 · 1 comment
Closed

[BUG] NPE when bulk ingest using ingest pipeline without processors #15032

chishui opened this issue Jul 31, 2024 · 1 comment
Assignees
Labels
bug Something isn't working Indexing Indexing, Bulk Indexing and anything related to indexing

Comments

@chishui
Copy link
Contributor

chishui commented Jul 31, 2024

Describe the bug

Got NPE when bulk ingest using ingest pipeline without processors

	"index": {
		"_index": "myindex",
		"_id": null,
		"status": 500,
		"error": {
			"type": "null_pointer_exception",
			"reason": "Cannot invoke \"java.util.List.size()\" because \"results\" is null"
		}
	}

Related component

Indexing

To Reproduce

  1. Create an ingest pipeline without any processors
PUT /_ingest/pipeline/test_empty
{
  "description": "This pipeline has no processors",
    "processors": [
    ]
}
  1. Use bulk API to ingest docs
POST /_bulk?pipeline=test_empty
{ "index": { "_index": "myindex"} },
{"text":"Generally, an answer is a reply to a question."}

Expected behavior

Documents should be indexed.

Additional Details

Plugins
Please list all plugins currently enabled.

Screenshots
If applicable, add screenshots to help explain your problem.

Host/Environment (please complete the following information):

  • OS: [e.g. iOS]
  • Version 2.16

Additional context
Add any other context about the problem here.

@chishui chishui added bug Something isn't working untriaged labels Jul 31, 2024
@github-actions github-actions bot added the Indexing Indexing, Bulk Indexing and anything related to indexing label Jul 31, 2024
@chishui
Copy link
Contributor Author

chishui commented Jul 31, 2024

Fixed in #15033

@mch2 mch2 removed the untriaged label Jul 31, 2024
@chishui chishui closed this as completed Sep 18, 2024
PierreGauthier pushed a commit to Elastic-Suite/gally-standard that referenced this issue Sep 19, 2024
PierreGauthier pushed a commit to Elastic-Suite/gally-standard that referenced this issue Sep 19, 2024
PierreGauthier pushed a commit to Elastic-Suite/gally-standard that referenced this issue Sep 20, 2024
PierreGauthier pushed a commit to Elastic-Suite/gally-standard that referenced this issue Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Indexing Indexing, Bulk Indexing and anything related to indexing
Projects
None yet
Development

No branches or pull requests

2 participants