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: no source. #315

Merged
merged 5 commits into from
May 23, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,9 @@ private boolean isEnterEntry() {

private boolean isFirstLevel(int targetLevel) {
if (this.enterHttp > 0 || this.grpcLevel > 0 || this.kafkaLevel > 0) {
return this.sourceLevel == 0 && this.leaveSource == 1
&& targetLevel == 1;
// return this.sourceLevel == 0 && this.leaveSource == 1
// && targetLevel == 1;
return this.sourceLevel == 0 && targetLevel == 1;
}
if (this.dubboLevel > 0) {
return targetLevel == 1;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ public static void syncRemoteConfigV2(int agentId) {
existsRemoteConfigMeta = remoteResponse;
DongTaiLog.debug("Sync remote config successful.");
}
if (enableAutoFallback == true){
if (enableAutoFallback){
reqCount = EngineManager.getRequestCount() - lastReqCount;
lastReqCount = EngineManager.getRequestCount();
if (reqCount>0 && fallbackReqCount*1.0/reqCount > getResponseTimeThresholdRate()){
Expand Down Expand Up @@ -304,9 +304,6 @@ private static String getConfigFromRemote(int agentId) {
* 根据agentID获取服务端对Agent的配置
*/
private static String getConfigFromRemoteV2(int agentId) {
if (EngineManager.isEngineRunning()){
return "{}";
}
JSONObject report = new JSONObject();
report.put(KEY_AGENT_ID, agentId);
try {
Expand Down