SOFA WEEKLY | Weekly Featured
Filter the weekly essence of Q&A, and synchronize the progress of open source
Welcome to leave a message and interact~
SOFA Stack ( S calable O pen Financial Architecture Stack) is a financial-level cloud- native architecture independently developed by Ant Group, which includes various components required to build a financial-level cloud-native architecture, including microservice R&D framework, RPC framework, and service registration Center, distributed timing tasks, current limiting/fusing framework, dynamic configuration push, distributed link tracking, Metrics monitoring measurement, distributed high-availability message queue, distributed transaction framework, distributed database proxy layer and other components are also in the financial The best practices tempered in the scene.
SOFAStack official website: https://www.sofastack.tech
SOFAStack: https://github.com/sofastack
Layotto meeting preview
Layotto:
Subject: Layotto 2023-04-12 Community Meeting
Time: April 12 (next Wednesday) at 14:00
Membership password (DingTalk): 688 824 34655
Incoming call: +862759771621 (Mainland China) +8657128356288 (Mainland China)
Membership link: dingtalk://dingtalkclient/page/videoConfFromCalendar?confId=1cebca80-e8cd-4f26-b529-79bac0ce7493&appendCalendarId=1&calendarId=2344343024
issue:
- 2023 Open Source Summer - Topic/Mentor Recruitment #894;
- Discussion: Self-built various Components #902;
- Hope layotto provides high-performance communication and interaction capabilities #867.
" Layotto ":
https://github.com/mosn/layotto/issues/907
Event Registration|SOFA Open Source 5th Anniversary
Community Contributions of the Week
SOFAStack GitHub issue Featured
This week, each project replied to a total of 2 issues
Welcome to submit issues on GitHub to interact with us
We will filter issues by
Reply in the form of "SOFA WEEKLY"
1.@LSQGUANLIVV #1322
When upgrading from sofa2.3.5 to 3.6.3, an error is reported when starting the application, as shown in the figure below.
According to the point where the error was reported, I found that the applicationContext is null. Is there any new configuration that needs to be added here? Or what needs to be changed?
A: It may be the compatibility problem of the three packages sofa-boot / sofa-rpc-starter / sofa-rpc. After upgrading sofa-rpc, these three packages need to be upgraded at the same time. You can see if there is a version conflict through the pom dependency.
It is the default parent dependency of the sofaboot-enterprise-dependencies used, will this also conflict?
A: There is generally no problem with using the default one. I am worried that some configurations will overwrite the default configuration. In addition, the commercial version needs to consult the customer service of the commercial version, and the help that the open source community can provide is limited.
「SOFARPC」:https://github.com/sofastack/sofa-rpc/issues/1322
2. @hanzhihua #956
readCommittedUserLog may not get the data just written. When I was doing NodeTest testing, an error occurred in the test readCommittedUserLog method.
I found that it is mainly after the log is written, but lastAppliedIndex is not updated at the atomic level, resulting in an error that cannot be read.
A: Because onApply
it can be rolled back, it is impossible to update the lastAppliedIndex in real time. Only after confirming that this batch has not been rolled back or the correct log index of the rollback can it be updated. If you need onApply
to commit during the process, you can call the log iterator Iterator#commit
method to confirm the log index of the current apply. Then you can call to readCommittedUserLog
ensure that it can be read, but the price is that you cannot roll back to the position before commit.
I would like to ask, what does onApply rollback mean? It means that the state machine apply is abnormal, or the obtained log is null, and how to roll back?
A: This method:
「SOFAJRaft」:https://github.com/sofastack/sofa-jraft/issues/956
Recommended reading this week
MoE Series (1) | How to use Golang to extend Envoy
Practice of SOFAJRaft in same-journey travel
Tongsuo/Tongsuo|"Open Atom Open Source Foundation" visit
How do you think about the multi-runtime architecture of Dapr and Layotto?
Click " Read the original text " to participate in SOFA's 5th anniversary event~