OpenMetadata icon indicating copy to clipboard operation
OpenMetadata copied to clipboard

Elasticsearch indexing error for field numberOfObjects when ingesting buckets with large number of objects inside

Open cristiancalugaru opened this issue 3 years ago • 2 comments

Affected module UI & Ingestion framework

Describe the bug Containers with a very large number of objects are not indexes into elasticsearch. Sample exception:

Failed while updating ES. Reason[Elasticsearch exception [type=mapper_parsing_exception, reason=failed to parse field [numberOfObjects] of type [integer] in document with id '30f21958-40a7-44bd-9e7e-0a04cfa6585c'. Preview of field's value: '1.6675219092E10']], Cause[ElasticsearchException[Elasticsearch exception [type=input_coercion_exception, reason=Numeric value (1.6675219092E10) out of range of int (-2147483648 - 2147483647) at [Source: (ByteArrayInputStream); line: 1, column: 620]]]], Stack [ElasticsearchStatusException[Elasticsearch exception [type=mapper_parsing_exception, reason=failed to parse field [numberOfObjects] of type [integer] in document with id '30f21958-40a7-44bd-9e7e-0a04cfa6585c'. Preview of field's value: '1.6675219092E10']]; nested: ElasticsearchException[Elasticsearch exception [type=input_coercion_exception, reason=Numeric value (1.6675219092E10) out of range of int (-2147483648 - 2147483647)

To Reproduce

Ingest a bucket with a very large number of objects. When indexing, it will fail because of the elasticsearch mapping type for the numberOfObjects field

Expected behavior The bucket information should be correctly indexes.

  • OpenMetadata version: 1.0

cristiancalugaru avatar May 16 '23 17:05 cristiancalugaru

handling as part of this PR https://github.com/open-metadata/OpenMetadata/pull/11628/files

harshach avatar May 17 '23 01:05 harshach

closed by https://github.com/open-metadata/OpenMetadata/pull/11628

pmbrull avatar May 17 '23 09:05 pmbrull