Skip to content

Instantly share code, notes, and snippets.

@akhilesh26
Created December 12, 2017 08:58
Show Gist options
  • Save akhilesh26/0b4020ef6933e6cccd821b6549f4073e to your computer and use it in GitHub Desktop.
Save akhilesh26/0b4020ef6933e6cccd821b6549f4073e to your computer and use it in GitHub Desktop.
GET /search/reindex - - ms - -
[Tue Dec 12 2017 14:27:03 GMT+0530 (IST)] ERROR { [index_already_exists_exception] index [bookbrainz/AGWEMXtLQjeqFLMMvQeyww] already exists, with { index_uuid="AGWEMXtLQjeqFLMMvQeyww" & index="bookbrainz" } :: {"path":"/bookbrainz","query":{},"body":"{\"mappings\":{\"_default_\":{\"properties\":{\"defaultAlias\":{\"properties\":{\"name\":{\"fields\":{\"autocomplete\":{\"analyzer\":\"edge\",\"type\":\"text\"},\"search\":{\"analyzer\":\"trigrams\",\"type\":\"text\"}},\"type\":\"text\"}},\"type\":\"object\"}}}},\"settings\":{\"analysis\":{\"analyzer\":{\"edge\":{\"filter\":[\"asciifolding\",\"lowercase\",\"edge_filter\"],\"tokenizer\":\"standard\",\"type\":\"custom\"},\"trigrams\":{\"filter\":[\"asciifolding\",\"lowercase\"],\"tokenizer\":\"trigrams\",\"type\":\"custom\"}},\"filter\":{\"edge_filter\":{\"max_gram\":20,\"min_gram\":1,\"type\":\"edge_ngram\"}},\"tokenizer\":{\"trigrams\":{\"max_gram\":3,\"min_gram\":1,\"type\":\"ngram\"}}}}}","statusCode":400,"response":"{\"error\":{\"root_cause\":[{\"type\":\"index_already_exists_exception\",\"reason\":\"index [bookbrainz/AGWEMXtLQjeqFLMMvQeyww] already exists\",\"index_uuid\":\"AGWEMXtLQjeqFLMMvQeyww\",\"index\":\"bookbrainz\"}],\"type\":\"index_already_exists_exception\",\"reason\":\"index [bookbrainz/AGWEMXtLQjeqFLMMvQeyww] already exists\",\"index_uuid\":\"AGWEMXtLQjeqFLMMvQeyww\",\"index\":\"bookbrainz\"},\"status\":400}"}
at respond (/home/mastcoder/metabrainz/bookbrainz-site/node_modules/elasticsearch/src/lib/transport.js:289:15)
at checkRespForFailure (/home/mastcoder/metabrainz/bookbrainz-site/node_modules/elasticsearch/src/lib/transport.js:248:7)
at HttpConnector.<anonymous> (/home/mastcoder/metabrainz/bookbrainz-site/node_modules/elasticsearch/src/lib/connectors/http.js:164:7)
at IncomingMessage.wrapper (/home/mastcoder/metabrainz/bookbrainz-site/node_modules/lodash/lodash.js:4968:19)
at emitNone (events.js:120:20)
at IncomingMessage.emit (events.js:218:7)
at endReadableNT (_stream_readable.js:1054:12)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
From previous event:
at Transport.defer (/home/mastcoder/metabrainz/bookbrainz-site/lib/server/helpers/search.js:138:21)
at Transport.request (/home/mastcoder/metabrainz/bookbrainz-site/node_modules/elasticsearch/src/lib/transport.js:158:18)
at exec (/home/mastcoder/metabrainz/bookbrainz-site/node_modules/elasticsearch/src/lib/client_action.js:351:20)
at ClientNamespace.action [as create] (/home/mastcoder/metabrainz/bookbrainz-site/node_modules/elasticsearch/src/lib/client_action.js:61:16)
at Object.<anonymous> (/home/mastcoder/metabrainz/bookbrainz-site/lib/server/helpers/search.js:84:25)
at Generator.next (<anonymous>)
at step (/home/mastcoder/metabrainz/bookbrainz-site/node_modules/babel-runtime/helpers/asyncToGenerator.js:17:30)
at /home/mastcoder/metabrainz/bookbrainz-site/node_modules/babel-runtime/helpers/asyncToGenerator.js:28:13
at <anonymous>
status: 400,
displayName: 'BadRequest',
message: '[index_already_exists_exception] index [bookbrainz/AGWEMXtLQjeqFLMMvQeyww] already exists, with { index_uuid="AGWEMXtLQjeqFLMMvQeyww" & index="bookbrainz" }',
path: '/bookbrainz',
query: {},
body:
{ error:
{ root_cause: [Array],
type: 'index_already_exists_exception',
reason: 'index [bookbrainz/AGWEMXtLQjeqFLMMvQeyww] already exists',
index_uuid: 'AGWEMXtLQjeqFLMMvQeyww',
index: 'bookbrainz' },
status: 400 },
statusCode: 400,
response: '{"error":{"root_cause":[{"type":"index_already_exists_exception","reason":"index [bookbrainz/AGWEMXtLQjeqFLMMvQeyww] already exists","index_uuid":"AGWEMXtLQjeqFLMMvQeyww","index":"bookbrainz"}],"type":"index_already_exists_exception","reason":"index [bookbrainz/AGWEMXtLQjeqFLMMvQeyww] already exists","index_uuid":"AGWEMXtLQjeqFLMMvQeyww","index":"bookbrainz"},"status":400}',
toString: [Function],
toJSON: [Function] }
GET /search/reindex 500 56496.996 ms - 39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment