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

First KVworker always throws an exception #53

Open
roskoN opened this issue May 19, 2016 · 1 comment
Open

First KVworker always throws an exception #53

roskoN opened this issue May 19, 2016 · 1 comment

Comments

@roskoN
Copy link

roskoN commented May 19, 2016

Hi

I am new to ps-lite and I am trying to use ps-lite as part of a university group project. I am using the KVServer and KVWorker. Whenever I deploy the app using:

./ps-lite/tracker/dmlc_local.py -s 1 -n 3 ./logreg ,

an exception gets thrown:

[11:39:51] /home/rosko/Lab2016-Group4/ps-lite/include/dmlc/logging.h:208: [11:39:51] /home/rosko/Lab2016-Group4/ps-lite/src/postoffice.cc:77: Check failed: (customers_.count(id)) == ((size_t)0) id 0 already exists terminate called after throwing an instance of 'dmlc::Error' what(): [11:39:51] /home/rosko/Lab2016-Group4/ps-lite/src/postoffice.cc:77: Check failed: (customers_.count(id)) == ((size_t)0) id 0 already exists

This exception is thrown only for the first worker (rank is 0), when the post office object is retrieved:

ps::Postoffice *office = ps::Postoffice::Get();

All the other workers are working fine. Can anyone help with resolving the exception?

Any form of help is highly appreciated! Thank you!

@formath
Copy link

formath commented Feb 24, 2017

I guess you launched servers and workers in one system process and misused rank id as the app id. Please check your code or show it here.

eric-haibin-lin added a commit to eric-haibin-lin/ps-lite that referenced this issue Jan 11, 2021
Implement the API proposal: bytedance#45

Co-authored-by: haibin.lin <haibin.lin@bytedance.com>
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

2 participants