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

Fix: workaround cargo leaking SSL_CERT_FILE issue #615

Merged
merged 3 commits into from
Dec 10, 2022

Conversation

drmingdrmer
Copy link
Member

@drmingdrmer drmingdrmer commented Dec 8, 2022

Changelog

Fix: workaround cargo leaking SSL_CERT_FILE issue

On Linux: command cargo run pollutes environment variables: It leaks
SSL_CERT_FILE and SSL_CERT_DIR to the testing sub progress it runs.
Which cause reqwest spending ~50 ms loading the certificates for every
RPC.

We just extend the RPC timeout to work around.

Refactor: add logging and timeout to example

  • Test examples on debug level. Initialize logging for example

  • Add timeout control to client in the example. Do not let it block for
    ever.

CI: quit with error if fail to build doc in Makefile and CI


This change is Reviewable

@drmingdrmer drmingdrmer marked this pull request as draft December 8, 2022 15:39
@drmingdrmer drmingdrmer force-pushed the 30-ci-doc branch 2 times, most recently from aa0f4f4 to 627248f Compare December 9, 2022 06:08
- Test examples on debug level. Initialize logging for example

- Add timeout control to client in the example. Do not let it block for
  ever.
@drmingdrmer drmingdrmer changed the title CI: quit with error if fail to build doc in Makefile and CI Fix: workaround cargo leaking SSL_CERT_FILE issue Dec 9, 2022
@drmingdrmer drmingdrmer marked this pull request as ready for review December 9, 2022 15:32
@drmingdrmer drmingdrmer force-pushed the 30-ci-doc branch 3 times, most recently from 5991a05 to dec6de9 Compare December 10, 2022 10:08
On Linux: command `cargo run` pollutes environment variables: It leaks
`SSL_CERT_FILE` and `SSL_CERT_DIR` to the testing sub progress it runs.
Which cause `reqwest` spending ~50 ms loading the certificates for every
RPC.

We just extend the RPC timeout to work around.

- Fix: datafuselabs#550
@drmingdrmer drmingdrmer merged commit c1c5f75 into datafuselabs:main Dec 10, 2022
@drmingdrmer drmingdrmer deleted the 30-ci-doc branch December 10, 2022 10:59
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

Successfully merging this pull request may close these issues.

Example raft-kv-memstore hangs after printing change-membership
1 participant