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

Check the length of prover-id in starting of client #61

Open
noel2004 opened this issue May 13, 2021 · 0 comments
Open

Check the length of prover-id in starting of client #61

noel2004 opened this issue May 13, 2021 · 0 comments

Comments

@noel2004
Copy link
Member

In db we have specified <30 chars for the prover_id column but there is no other constraint among our code. So coordinator may update a line with a string larger than 30 chars and this action seems cause the db conn has ruined persistently with following error ouput unless we restart the coordinator:

ERROR 2021-05-13T05:38:14Z: prover_cluster::coordinator::controller: db query idle task: Io(Kind(ConnectionAborted))

We may at least check the length at the beginning of a client starting. Or check it in corrdinator when accepting poll_task request if client can not be fully trusted.

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

No branches or pull requests

1 participant