Skip to content

cosmovisor cannot scan when logs are longer than 64K per line by default #8651

@allthatjazzleo

Description

Summary of Bug

bufio.Scanner default max size is 64K per line.
In our case, the log can be longer than 64K per line when the chain has many validators.
Then, the cosmovisor is stuck.

It happens when line start with INF Starting State service ....

Version

master

Steps to Reproduce

  • run scanner_test.go
  • provide a testcase with string longer than 64K

For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate contributors tagged
  • Contributor assigned/self-assigned

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Labels

C:CosmovisorIssues and PR related to CosmovisorT:Bug

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions