Here's what I did:
- Set up two EC2 instances with S3 as the Gateway
- Created an index with 10 shards and 2 replicas
- Queued up 100k documents to be sent to ElasticSearch
This resulted in about 41k (or more) exceptions that all look a bit
like this ...
[00:50:21,110][DEBUG][action.index ] [Urich, Ben]
[spokeprofile][1], Node[fedc7167-6969-450f-ae2a-6c1cd5d5ea34], [P],
S[S
TARTED]: Failed to execute [[spokeprofile][person][103655324],
source[{
"name": "John Doe",
"title": "Purchasing Manager", "companyName": "Applied Signal
Technology, Inc.",
"companySize": 750, "revenue": 170375000,
"urls": [ "http://www.appsig.com/",
"http://www.appsig.com"
],
"sicCodes": [
"3812", "4813",
"5065",
"8742",
"8748",
"3669"
],
"cities": [
"Sunnyvale"
],
"states": [
"CA"
],
"businessSummary": "communications equipment nec (mfrs)"
}]]
org.elasticsearch.ElasticSearchIllegalStateException: Can't handle
serializing a dynamic type with content token [END_ARRAY] and fiel
d name [null]
at
org.elasticsearch.index.mapper.xcontent.XContentObjectMapper.serializeValue(XContentObjectMapper.java:
456)
at
org.elasticsearch.index.mapper.xcontent.XContentObjectMapper.parse(XContentObjectMapper.java:
328)
at
org.elasticsearch.index.mapper.xcontent.XContentObjectMapper.serializeValue(XContentObjectMapper.java:
396)
at
org.elasticsearch.index.mapper.xcontent.XContentObjectMapper.serializeArray(XContentObjectMapper.java:
388)
at
org.elasticsearch.index.mapper.xcontent.XContentObjectMapper.parse(XContentObjectMapper.java:
322)
at
org.elasticsearch.index.mapper.xcontent.XContentDocumentMapper.parse(XContentDocumentMapper.java:
320)
at
org.elasticsearch.index.mapper.xcontent.XContentDocumentMapper.parse(XContentDocumentMapper.java:
272)
at
org.elasticsearch.index.shard.service.InternalIndexShard.innerIndex(InternalIndexShard.java:
236) at
org.elasticsearch.index.shard.service.InternalIndexShard.index(InternalIndexShard.java:
228)
at
org.elasticsearch.action.index.TransportIndexAction.shardOperationOnPrimary(TransportIndexAction.java:
125)
at
org.elasticsearch.action.index.TransportIndexAction.shardOperationOnPrimary(TransportIndexAction.java:
56)
at
org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction
$AsyncShardOperationAction.performOnP
rimary(TransportShardReplicationOperationAction.java:328)
at
org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction
$AsyncShardOperationAction.access$400
(TransportShardReplicationOperationAction.java:198)
at
org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction
$AsyncShardOperationAction$1.run(Tran
sportShardReplicationOperationAction.java:252)
at java.util.concurrent.ThreadPoolExecutor
$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor
$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)