Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ES Archiver Test Fixtures Fail To Parse on Windows #21006

Closed
cuff-links opened this issue Jul 19, 2018 · 1 comment · Fixed by #21111
Closed

ES Archiver Test Fixtures Fail To Parse on Windows #21006

cuff-links opened this issue Jul 19, 2018 · 1 comment · Fixed by #21111
Assignees
Labels

Comments

@cuff-links
Copy link
Contributor

Environment:
Windows 7
Kibana: Master
node: 8.11.3
Chrome: 65
FF: 59

This happens both in functional_test_runner and wdio tests. When trying to use ES Archiver on Windows, there is a parsing problem for the mappings files. This only happens on Windows.

Stacktrace:

 debg  Loading config file from "C:\\Users\\John Dorlus\\Desktop\\kibana\\test\\wdio_functional\\config.js"
 info  [logstash_functional] Unloading indices from "mappings.json"
ERROR  Data load failed.
ERROR  SyntaxError: Unexpected token { in JSON at position 9016
           at JSON.parse (<anonymous>)
           at Transform.transform [as _transform] (C:/Users/John Dorlus/Desktop/kibana/src/utils/streams/json_streams.js
:42:23)
           at Transform._read (_stream_transform.js:186:10)
           at Transform._write (_stream_transform.js:174:12)
           at doWrite (_stream_writable.js:397:12)
           at writeOrBuffer (_stream_writable.js:383:5)
           at Transform.Writable.write (_stream_writable.js:290:11)
           at Transform.ondata (_stream_readable.js:639:20)
           at emitOne (events.js:116:13)
           at Transform.emit (events.js:211:7)
           at addChunk (_stream_readable.js:263:12)
           at readableAddChunk (_stream_readable.js:250:11)
           at Transform.Readable.push (_stream_readable.js:208:10)
           at Transform.push (_stream_transform.js:147:32)
           at Transform.flush [as _flush] (C:/Users/John Dorlus/Desktop/kibana/src/utils/streams/split_stream.js:66:14)
@spalger spalger self-assigned this Jul 23, 2018
@spalger
Copy link
Contributor

spalger commented Jul 23, 2018

I assume this is being caused by the local git repo converting line endings from \n to \r\n or something like that. Either way, the es archiver should not fall over if \r\n line endings are being used. Will try to get a fix up really quick.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants