-
Notifications
You must be signed in to change notification settings - Fork 826
JAV-358 Operation filter #268
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
Conversation
|
||
<bean id="cse.executor.default" class="io.servicecomb.core.executor.FixedThreadExecutor"></bean> | ||
<bean id="cse.executor.groupThreadPool" class="io.servicecomb.core.executor.FixedThreadExecutor"></bean> | ||
<alias name="cse.executor.groupThreadPool" alias="cse.executor.default"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
indention
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
String microserviceName = pathParams.get("param0"); | ||
String path = "/" + pathParams.get("param1"); | ||
String pathVersion = pathParams.get("param1"); | ||
String path = context.request().path().substring(4); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How can we tell the path by removing the first 4 characters?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is a demo
and the path rule is :/api/ms/version/......
invoke("/v2/dec", 2, 1, decV2Result); | ||
invoke("/v2/dec", 3, 1, decV2Result); | ||
|
||
printResults("v1/add", addV1Result); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should use assert instead of printResults to check the result data.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
if (DynamicPropertyFactory.getInstance() | ||
.getStringProperty(ExecutorManager.KEY_EXECUTORS_DEFAULT, null) | ||
.get() != null) { | ||
return; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we may need to do some log here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
return; | ||
} | ||
|
||
// change default to reactive mode |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
log the edge service works in reactive mode.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
…e, because use synchronize auth logic
afee43b
to
4b98f73
Compare
edge service do not dispatch microservice invocation to the old instance that do not support the new operation