kbs: initialize EncryptedDb on the existing runtime#196
Merged
jialez0 merged 1 commit intoJul 20, 2026
Conversation
Signed-off-by: Jiale Zhang <zhangjiale@linux.alibaba.com>
Collaborator
|
@jialez0 ,您好,您的请求已接收,请耐心等待结果。 |
Collaborator
|
@jialez0 ,您好,未检测到有镜像需要构建,如需重新检测请评论 /start 。 |
jialez0
added a commit
that referenced
this pull request
Jul 20, 2026
Complete the Trustee 1.8.7-2 RPM changelog with the EncryptedDb nested-runtime startup fix merged in #196. Signed-off-by: Jiale Zhang <zhangjiale@linux.alibaba.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
EncryptedDbwithinit_async()instead of creating and blocking a nested runtimeRoot cause
KBS starts under
#[actix_web::main], but the EncryptedDb synchronous constructor created another Tokio runtime and calledblock_on(). Tokio rejects that nested runtime entry and panics before the SQL backend can initialize:The container could remain reported as healthy when a wrapper process kept running, while the KBS listener itself was gone.
Impact
KBS can now start with the
EncryptedDbresource backend under its normal Actix runtime. The SQLx pool and its background tasks remain attached to the runtime that owns the KBS process.Validation
--no-default-features --features encrypted-dbGET /kbs/v0/resource/pubkeyreturns HTTP 200Signed-off-by: Jiale Zhang zhangjiale@linux.alibaba.com