Indexing error stays in os-indexer log file and is not visible for end users
We had a problem with content of spatial block in SeismicAcquisitionSurvey and the record was not getting indexed properly (missed Spatial information) . We could find the reason only from os-indexer log file.
But the usual troubleshooting steps did not show any of the errors.
Tried using Storage service (record batch) and also Search service (returned Field ID, Index).
Do we need to use any other parameter? I tried frame-of-reference with value of units=SI;crs=wgs84;elevation=msl;azimuth=true north;dates=utc;
After we found out the reason (need to close the polygon), we could fix the record and re-ingest. Then indexing went through properly.
The problem is that average end user does not have access to Indexer log.
cc: @zhibinmai for information
2023-11-08 21:48:32.386 WARN 19 --- [io-8080-exec-35] o.o.o.c.common.logging.DefaultLogWriter : indexer.app: 0: elasticsearch bulk service status: BAD_REQUEST | id: devel:master-data--SeismicAcquisitionSurvey:ST12005D12 | message: ElasticsearchException[Elasticsearch exception [type=mapper_parsing_exception, reason=failed to parse field [data.SpatialLocation.Wgs84Coordinates] of type [geo_shape]]]; nested: ElasticsearchException[Elasticsearch exception [type=illegal_argument_exception, reason=[1:1037] [geojson] failed to parse field [geometries]]]; nested: ElasticsearchException[Elasticsearch exception [type=illegal_argument_exception, reason=Failed to build [geojson] after last required field arrived]]; nested: ElasticsearchException[Elasticsearch exception [type=illegal_argument_exception, reason=first and last points of the linear ring must be the same (it must close itself): x[0]=2.3651712345204428 x[15]=1.929596222841967 y[0]=61.232218587912584 y[15]=61.23097891915874]]; 1: elasticsearch bulk service status: BAD_REQUEST | id: devel:master-data--SeismicAcquisitionSurvey:ST12005D17 | message: ElasticsearchException[Elasticsearch exception [type=mapper_parsing_exception, reason=failed to parse field [data.SpatialLocation.Wgs84Coordinates] of type [geo_shape]]]; nested: ElasticsearchException[Elasticsearch exception [type=illegal_argument_exception, reason=[1:1037] [geojson] failed to parse field [geometries]]]; nested: ElasticsearchException[Elasticsearch exception [type=illegal_argument_exception, reason=Failed to build [geojson] after last required field arrived]]; nested: ElasticsearchException[Elasticsearch exception [type=illegal_argument_exception, reason=first and last points of the linear ring must be the same (it must close itself): x[0]=2.3651712345204428 x[15]=1.929596222841967 y[0]=61.232218587912584 y[15]=61.23097891915874]]; {correlation-id=b791d3fa-49ae-4eb1-b8c1-9f498451e06a, data-partition-id=devel}