Skip to content

JAV-524 Optimize edge executor#297

Merged
liubao68 merged 5 commits intoapache:masterfrom
wujimin:optimize-edge-executor
Nov 24, 2017
Merged

JAV-524 Optimize edge executor#297
liubao68 merged 5 commits intoapache:masterfrom
wujimin:optimize-edge-executor

Conversation

@wujimin
Copy link
Copy Markdown
Contributor

@wujimin wujimin commented Nov 23, 2017

use the same mechanism of normal microservice producer

before optimize, edge's decode and filter run in net thread.

@coveralls
Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.002%) to 87.158% when pulling a4b90cb on wujimin:optimize-edge-executor into 8eee2a2 on ServiceComb:master.

reqQueue.setMaxLifeTimeInQueue(timeInQueue);
reqQueue.decrementCountInQueue();
}
protected OperationLocator locateOperation(ServicePathManager servicePathManager) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What will happen if we cannot find the OperationLocator?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if locate failed, throw 404 or 405 exception.

protected void findRestOperation() {
super.findRestOperation();

boolean cacheRequest = collectCacheRequest(restOperationMeta.getOperationMeta());
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this variable is useless.

Copy link
Copy Markdown
Contributor Author

@wujimin wujimin Nov 23, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

which one?
cacheRequst? it's setted to requestEx, copy or not copy request body, controlled by this avriable.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I missed the second line , it makes sense now.


public class RestServletProducerInvocation extends RestProducerInvocation {
@Override
protected RestOperationMeta findRestOperation() {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like the new findRestOperation method is just throw the exception if it cannot find the operation. I'm not sure if this change has some side effect on the user side code.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not change, just move from one class to another class.

@liubao68 liubao68 merged commit a880540 into apache:master Nov 24, 2017
@wujimin wujimin deleted the optimize-edge-executor branch January 1, 2018 09:02
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.

4 participants