Skip to content
This repository has been archived by the owner on Jan 20, 2022. It is now read-only.

Invalid bulk payload length #12

Closed
heffergm opened this issue Nov 18, 2014 · 2 comments
Closed

Invalid bulk payload length #12

heffergm opened this issue Nov 18, 2014 · 2 comments
Assignees

Comments

@heffergm
Copy link
Contributor

Seeing the following on admin0/1/2:

vagrant@pelias:/opt/pelias/logs$ cat quattroshapes_ITA_admin0.err
running imports for: admin0
transaction error invalid bulk payload length

vagrant@pelias:/opt/pelias/logs$ cat quattroshapes_ITA_admin0.out

{
  "start": 1416343410133
}
[]
{
  "start": 1416343410133,
  "batch_error": 1,
  "paused": false,
  "transient": 1,
  "current_length": 0
}
{
  "start": 1416343410133,
  "batch_error": 1,
  "paused": false,
  "transient": 1,
  "current_length": 0
}
{
  "start": 1416343410133,
  "batch_error": 1,
  "paused": false,
  "transient": 0,
  "current_length": 0,
  "indexed": 1,
  "batch_ok": 1,
  "batch_retries": 0,
  "failed_records": 0,
  "admin0": 1
}
@missinglink
Copy link
Contributor

The error invalid bulk payload length is emitted by pelias/dbclient when it's been asked to submit a bulk index request where the batch length is 0 (ie. the batch is empty)

It's not an issue and I may remove the error message in the future, the heavy error reporting is there because that lib is still quite young, so thanks for reporting it, in this case I think it can be suppressed.

ref: https://github.com/pelias/dbclient/blob/1c576f360ff45b8b7e6ad285a6ab72663a974d12/src/transaction.js#L31

@sevko
Copy link
Contributor

sevko commented Apr 15, 2015

Closing as a pelias/dbclient issue.

@sevko sevko closed this as completed Apr 15, 2015
@sevko sevko removed the in progress label Apr 15, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants