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

openr_kvstore_snooper and clients connected to OpenrCtrl thrift server throw error #136

Open
guodong opened this issue Jul 19, 2022 · 1 comment

Comments

@guodong
Copy link

guodong commented Jul 19, 2022

Issue Description

semifuture_subscribeAndGetAreaKvStores thows error when subscribe updates from OpenR kvstore.

The openr log shows a stream-0 is attached, but the stream is ended immediatly and openr_kvstore_snooper throws error.

Environment

  • OS version: ubuntu2004

What's the actual result?

terminate called after throwing an instance of 'apache::thrift::transport::TTransportException'
  what():  TTransportException: Timed out
*** Aborted at 1658243418 (Unix time, try 'date -d @1658243418') ***
*** Signal 6 (SIGABRT) (0x3e8000536c4) received by PID 341700 (pthread TID 0x7eff0a7ef600) (linux TID 341700) (maybe from PID 341700, UID 1000) (code: -6), stack trace: ***
(error retrieving stack trace)
Aborted (core dumped)
@guodong
Copy link
Author

guodong commented Jul 20, 2022

After digging in to the KvStoreSnooper.cpp and logs from OpenrCtrlHandler.cpp, I found that the subscription API takes relative long time to return the Future result. Typically > 5s on my computer.

Then I tried openr_kvstore_snooper -processing_timeout_ms=10000 or set to 0 for no timeout (correct me if I'm wrong), everything goes well.

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