Skip to content

[Bug][IPC] Python plugin IPC buffer is limited to 64 kb #8784

@rohitgulia

Description

@rohitgulia

Search before asking

  • I had searched in the issues and found no similar issues.

What happened

bufio.Scanner uses a 64KB default max token size. Python plugins that manage
large numbers of scopes (e.g. 100+ Harness pipelines) return a sync plan JSON
that exceeds this limit, causing silent truncation. This results in only a
subset of scopes appearing in project_mapping and being synced.

Increase the buffer to 5MB in both scanOutputPipe and scanErrorPipe 

eg of what to change: scanner.Buffer(make([]byte, 510241024), 510241024)

What do you expect to happen

increase scanner buffer from 64KB to 5MB for Python plugin IPC

bufio.Scanner uses a 64KB default max token size. Python plugins that manage
large numbers of scopes (e.g. 100+ Harness pipelines) return a sync plan JSON
that exceeds this limit, causing silent truncation. This results in only a
subset of scopes appearing in project_mapping and being synced.

Increase the buffer to 5MB in both scanOutputPipe and scanErrorPipe 

eg of what to change: scanner.Buffer(make([]byte, 510241024), 510241024)

How to reproduce

try syncing more than 100 pipelines via custom plugin

Anything else

No response

Version

v1.0.3-beta10

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    component/pydevlakeRelates to the Python framework and/or plugin.priority/highThis issue is very importantseverity/p1This bug affects functionality or significantly affect uxtype/bugThis issue is a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions