Skip to content

Increase the size of bufio.Scanner.Buffer to 10MiB. #188

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

Merged
merged 1 commit into from
Feb 24, 2020
Merged

Increase the size of bufio.Scanner.Buffer to 10MiB. #188

merged 1 commit into from
Feb 24, 2020

Conversation

wi1dcard
Copy link
Contributor

Fix #182

We are experiencing this issue while updating the dashboard JSON contents of Grafana chart, which leads to a huge length of the YAML specs.

@nauxliu
Copy link

nauxliu commented Feb 24, 2020

I think the 1MB size limit here was taking into account the 1MB size limit of resources by etcd, but K8S allows us to define multiple resources in one YAML file. So it is reasonable to increase or remove this limit.

@databus23 databus23 merged commit 35ae94c into databus23:master Feb 24, 2020
@databus23
Copy link
Owner

Thanks!

@wi1dcard wi1dcard deleted the bugfix/increase-the-size-of-scanner-buffers branch February 24, 2020 11:56
@wi1dcard
Copy link
Contributor Author

Thank you for the prompt response! It would be nice if we can get a patch version released.

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

Successfully merging this pull request may close these issues.

Error reading input: bufio.Scanner: token too long
3 participants