Skip to content

Maximum call stack size exceeded while trying to import with es-import-aliases #23

Description

@levineran

I tried to import a 10.2 mb file which contains aliases export.

{
  "invoice-16603": {
    "aliases": {}
  },
  "invoice-27934": {
    "aliases": {}
  },
  "ivy-attachment": {
    "aliases": {
      "attachment-1": {
        "filter": {
          "term": {
            "company_id": 1
          }
        },
        "index_routing": "attachment-1",
        "search_routing": "attachment-1"
      },
      "attachment-10": {
        "filter": {
          "term": {
            "company_id": 10
          }
        },
        "index_routing":

...

import failed :
es-import-aliases --url http://localhost:9200 --file /ivy/export.json

RangeError: Maximum call stack size exceeded
    at next (/usr/local/lib/node_modules/async/dist/async.js:918:25)
    at replenish (/usr/local/lib/node_modules/async/dist/async.js:989:28)
    at iterateeCallback (/usr/local/lib/node_modules/async/dist/async.js:983:17)
    at /usr/local/lib/node_modules/async/dist/async.js:958:16
    at /usr/local/lib/node_modules/elasticsearch-tools/lib/importer.js:75:11
    at /usr/local/lib/node_modules/async/dist/async.js:3096:16
    at replenish (/usr/local/lib/node_modules/async/dist/async.js:998:17)
    at iterateeCallback (/usr/local/lib/node_modules/async/dist/async.js:983:17)
    at /usr/local/lib/node_modules/async/dist/async.js:958:16
    at /usr/local/lib/node_modules/elasticsearch-tools/lib/importer.js:75:11

does any solution exist?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions