Skip to content
This repository has been archived by the owner on Mar 4, 2024. It is now read-only.

read-topic failing on large partitions #7

Open
merlijn-sebrechts opened this issue Apr 1, 2016 · 1 comment
Open

read-topic failing on large partitions #7

merlijn-sebrechts opened this issue Apr 1, 2016 · 1 comment

Comments

@merlijn-sebrechts
Copy link

When partitions are too large, read-topic fails. This is because the maximum amount of characters for a command is reached. Is it possible to put the result of this in a file and use that to populate the action response?

Traceback (most recent call last):
  File "actions/read-topic", line 36, in <module>
    hookenv.action_set({'output': output})
  File "/usr/local/lib/python2.7/dist-packages/charmhelpers/core/hookenv.py", line 615, in action_set
    subprocess.check_call(cmd)
  File "/usr/lib/python2.7/subprocess.py", line 535, in check_call
    retcode = call(*popenargs, **kwargs)
  File "/usr/lib/python2.7/subprocess.py", line 522, in call
    return Popen(*popenargs, **kwargs).wait()
  File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child
    raise child_exception
OSError: [Errno 7] Argument list too long
@ktsakalozos
Copy link
Contributor

Although this might be part of a larger issue. We added a ticket in our backlog to see how we can work around this problem for now.

Thank you for reporting this.

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

2 participants