[jira] [Commented] (SCB-1072) change dependency management version to project.version

2018-12-06 Thread ASF GitHub Bot (JIRA)


[ 
https://issues.apache.org/jira/browse/SCB-1072?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16712383#comment-16712383
 ] 

ASF GitHub Bot commented on SCB-1072:
-

liubao68 opened a new pull request #1027: [SCB-1072]change dependency 
management version to project.version
URL: https://github.com/apache/servicecomb-java-chassis/pull/1027
 
 
   Follow this checklist to help us incorporate your contribution quickly and 
easily:
   
- [ ] Make sure there is a [JIRA 
issue](https://issues.apache.org/jira/browse/SCB) filed for the change (usually 
before you start working on it).  Trivial changes like typos do not require a 
JIRA issue.  Your pull request should address just this issue, without pulling 
in other changes.
- [ ] Each commit in the pull request should have a meaningful subject line 
and body.
- [ ] Format the pull request title like `[SCB-XXX] Fixes bug in 
ApproximateQuantiles`, where you replace `SCB-XXX` with the appropriate JIRA 
issue.
- [ ] Write a pull request description that is detailed enough to 
understand what the pull request does, how, and why.
- [ ] Run `mvn clean install` to make sure basic checks pass. A more 
thorough check will be performed on your pull request automatically.
- [ ] If this contribution is large, please file an Apache [Individual 
Contributor License Agreement](https://www.apache.org/licenses/icla.pdf).
   
   ---
   


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> change dependency management version to project.version
> ---
>
> Key: SCB-1072
> URL: https://issues.apache.org/jira/browse/SCB-1072
> Project: Apache ServiceComb
>  Issue Type: Improvement
>Reporter: liubao
>Assignee: liubao
>Priority: Major
>
> When using mvn version:set plugin to build projects, dependency manage 
> version will not be replaced, so using project.version is better. 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Created] (SCB-1072) change dependency management version to project.version

2018-12-06 Thread liubao (JIRA)
liubao created SCB-1072:
---

 Summary: change dependency management version to project.version
 Key: SCB-1072
 URL: https://issues.apache.org/jira/browse/SCB-1072
 Project: Apache ServiceComb
  Issue Type: Improvement
Reporter: liubao
Assignee: liubao


When using mvn version:set plugin to build projects, dependency manage version 
will not be replaced, so using project.version is better. 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (SCB-1060) edge support Exception converter

2018-12-06 Thread ASF GitHub Bot (JIRA)


[ 
https://issues.apache.org/jira/browse/SCB-1060?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16712359#comment-16712359
 ] 

ASF GitHub Bot commented on SCB-1060:
-

coveralls edited a comment on issue #1018: [SCB-1060]edge support Exception 
converter
URL: 
https://github.com/apache/servicecomb-java-chassis/pull/1018#issuecomment-443616322
 
 
   
   [![Coverage 
Status](https://coveralls.io/builds/20463357/badge)](https://coveralls.io/builds/20463357)
   
   Coverage decreased (-0.01%) to 86.732% when pulling 
**294b29d1a8fdcd9c0648988e21009c326bc500ac on heyile:edgeException** into 
**6c1df294382f12bbea3c87f4143fb40fe6f9f532 on apache:master**.
   


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> edge support Exception converter 
> -
>
> Key: SCB-1060
> URL: https://issues.apache.org/jira/browse/SCB-1060
> Project: Apache ServiceComb
>  Issue Type: Bug
>Reporter: 何一乐
>Assignee: 何一乐
>Priority: Major
>




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (SCB-1044) add current process CPU rate and net packets in the metrics

2018-12-06 Thread ASF GitHub Bot (JIRA)


[ 
https://issues.apache.org/jira/browse/SCB-1044?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16711981#comment-16711981
 ] 

ASF GitHub Bot commented on SCB-1044:
-

coveralls edited a comment on issue #1012: [SCB-1044]add current process CPU 
rate  and net packets in the metrics
URL: 
https://github.com/apache/servicecomb-java-chassis/pull/1012#issuecomment-441660699
 
 
   
   [![Coverage 
Status](https://coveralls.io/builds/20460253/badge)](https://coveralls.io/builds/20460253)
   
   Coverage increased (+0.03%) to 86.736% when pulling 
**deee463d2f4918118fda2ce0b214659b8eccb730 on heyile:cpuAndNet** into 
**22ff6d6769f144664f448e43d7d474f7837c6cf8 on apache:master**.
   


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> add current process CPU rate  and net packets in the metrics
> 
>
> Key: SCB-1044
> URL: https://issues.apache.org/jira/browse/SCB-1044
> Project: Apache ServiceComb
>  Issue Type: Improvement
>  Components: Java-Chassis
>Reporter: 何一乐
>Assignee: 何一乐
>Priority: Major
>




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (SCB-1068) As a developer want to know instance detail info when instance isolation

2018-12-06 Thread ASF GitHub Bot (JIRA)


[ 
https://issues.apache.org/jira/browse/SCB-1068?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16711984#comment-16711984
 ] 

ASF GitHub Bot commented on SCB-1068:
-

coveralls commented on issue #1024: [SCB-1068] add the instance infomation into 
instance isolation event
URL: 
https://github.com/apache/servicecomb-java-chassis/pull/1024#issuecomment-445015157
 
 
   
   [![Coverage 
Status](https://coveralls.io/builds/20460519/badge)](https://coveralls.io/builds/20460519)
   
   Coverage decreased (-0.007%) to 86.722% when pulling 
**9df6ad074fc0431c889c9feb9a4e6ae09c4924ef on jeho0815:Branch_master_SCB-1068** 
into **6025b0dc55c980a80b096c3b2a39b1e5fcbd6052 on apache:master**.
   


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> As a developer want to know instance detail info when instance isolation 
> -
>
> Key: SCB-1068
> URL: https://issues.apache.org/jira/browse/SCB-1068
> Project: Apache ServiceComb
>  Issue Type: Improvement
>  Components: Java-Chassis
>Reporter: jeho0815
>Assignee: jeho0815
>Priority: Major
>




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (SCB-1065) when request not contain traceId,should use provider's invocation's traceId

2018-12-06 Thread ASF GitHub Bot (JIRA)


[ 
https://issues.apache.org/jira/browse/SCB-1065?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16711544#comment-16711544
 ] 

ASF GitHub Bot commented on SCB-1065:
-

coveralls edited a comment on issue #1022: [SCB-1065] when request not contain 
traceId,should use provider's invocation's traceId
URL: 
https://github.com/apache/servicecomb-java-chassis/pull/1022#issuecomment-444874542
 
 
   
   [![Coverage 
Status](https://coveralls.io/builds/20458947/badge)](https://coveralls.io/builds/20458947)
   
   Coverage increased (+0.006%) to 86.724% when pulling 
**8a52d3ab18ba3f9c03eeaec2ea3b1c356908a843 on weichao666:traceId** into 
**a21611163909bd075f3f7c737474e44c95f4c062 on apache:master**.
   


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> when request not contain traceId,should use provider's invocation's traceId
> ---
>
> Key: SCB-1065
> URL: https://issues.apache.org/jira/browse/SCB-1065
> Project: Apache ServiceComb
>  Issue Type: Bug
>  Components: Java-Chassis
>Reporter: WeiChao
>Assignee: WeiChao
>Priority: Major
> Fix For: java-chassis-1.2.0
>
>
> when request not contain traceId,should use provider's invocation's traceId



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (SCB-1065) when request not contain traceId,should use provider's invocation's traceId

2018-12-06 Thread ASF GitHub Bot (JIRA)


[ 
https://issues.apache.org/jira/browse/SCB-1065?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16711460#comment-16711460
 ] 

ASF GitHub Bot commented on SCB-1065:
-

coveralls commented on issue #1022: [SCB-1065] when request not contain 
traceId,should use provider's invocation's traceId
URL: 
https://github.com/apache/servicecomb-java-chassis/pull/1022#issuecomment-444874542
 
 
   
   [![Coverage 
Status](https://coveralls.io/builds/20458821/badge)](https://coveralls.io/builds/20458821)
   
   Coverage increased (+0.01%) to 86.728% when pulling 
**8a52d3ab18ba3f9c03eeaec2ea3b1c356908a843 on weichao666:traceId** into 
**a21611163909bd075f3f7c737474e44c95f4c062 on apache:master**.
   


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> when request not contain traceId,should use provider's invocation's traceId
> ---
>
> Key: SCB-1065
> URL: https://issues.apache.org/jira/browse/SCB-1065
> Project: Apache ServiceComb
>  Issue Type: Bug
>  Components: Java-Chassis
>Reporter: WeiChao
>Assignee: WeiChao
>Priority: Major
> Fix For: java-chassis-1.2.0
>
>
> when request not contain traceId,should use provider's invocation's traceId



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Closed] (SCB-1066) when start error, destroy method may throw an exception lead to origin exception losed

2018-12-06 Thread jeho0815 (JIRA)


 [ 
https://issues.apache.org/jira/browse/SCB-1066?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

jeho0815 closed SCB-1066.
-

> when start error, destroy method may throw an exception lead to origin 
> exception losed
> --
>
> Key: SCB-1066
> URL: https://issues.apache.org/jira/browse/SCB-1066
> Project: Apache ServiceComb
>  Issue Type: Bug
>  Components: Java-Chassis
>Reporter: jeho0815
>Assignee: jeho0815
>Priority: Major
> Attachments: image-2018-12-04-21-25-08-309.png
>
>
>  
> 1、when operationid repead, ProducerProviderManager shutdown error with a NPE
> 2、using LocalServiceRegistryClientImpl 
> !image-2018-12-04-21-25-08-309.png!
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (SCB-1066) when start error, destroy method may throw an exception lead to origin exception losed

2018-12-06 Thread ASF GitHub Bot (JIRA)


[ 
https://issues.apache.org/jira/browse/SCB-1066?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16711445#comment-16711445
 ] 

ASF GitHub Bot commented on SCB-1066:
-

coveralls commented on issue #1023: [SCB-1066] when start error, destroy method 
may throw an exception le…
URL: 
https://github.com/apache/servicecomb-java-chassis/pull/1023#issuecomment-444871912
 
 
   
   [![Coverage 
Status](https://coveralls.io/builds/20458745/badge)](https://coveralls.io/builds/20458745)
   
   Coverage decreased (-0.02%) to 86.703% when pulling 
**4505b5708ccd173d5b3e72e23638b03f8d90d80a on jeho0815:Branch_master_SCB-1066** 
into **a21611163909bd075f3f7c737474e44c95f4c062 on apache:master**.
   


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> when start error, destroy method may throw an exception lead to origin 
> exception losed
> --
>
> Key: SCB-1066
> URL: https://issues.apache.org/jira/browse/SCB-1066
> Project: Apache ServiceComb
>  Issue Type: Bug
>  Components: Java-Chassis
>Reporter: jeho0815
>Assignee: jeho0815
>Priority: Major
> Attachments: image-2018-12-04-21-25-08-309.png
>
>
>  
> 1、when operationid repead, ProducerProviderManager shutdown error with a NPE
> 2、using LocalServiceRegistryClientImpl 
> !image-2018-12-04-21-25-08-309.png!
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Resolved] (SCB-1066) when start error, destroy method may throw an exception lead to origin exception losed

2018-12-06 Thread jeho0815 (JIRA)


 [ 
https://issues.apache.org/jira/browse/SCB-1066?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

jeho0815 resolved SCB-1066.
---
Resolution: Fixed

> when start error, destroy method may throw an exception lead to origin 
> exception losed
> --
>
> Key: SCB-1066
> URL: https://issues.apache.org/jira/browse/SCB-1066
> Project: Apache ServiceComb
>  Issue Type: Bug
>  Components: Java-Chassis
>Reporter: jeho0815
>Assignee: jeho0815
>Priority: Major
> Attachments: image-2018-12-04-21-25-08-309.png
>
>
>  
> 1、when operationid repead, ProducerProviderManager shutdown error with a NPE
> 2、using LocalServiceRegistryClientImpl 
> !image-2018-12-04-21-25-08-309.png!
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Closed] (SCB-1068) As a developer want to know instance detail info when instance isolation

2018-12-06 Thread jeho0815 (JIRA)


 [ 
https://issues.apache.org/jira/browse/SCB-1068?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

jeho0815 closed SCB-1068.
-
Resolution: Fixed

> As a developer want to know instance detail info when instance isolation 
> -
>
> Key: SCB-1068
> URL: https://issues.apache.org/jira/browse/SCB-1068
> Project: Apache ServiceComb
>  Issue Type: Improvement
>  Components: Java-Chassis
>Reporter: jeho0815
>Assignee: jeho0815
>Priority: Major
>




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Created] (SCB-1071) serialize/deserialize array

2018-12-06 Thread wujimin (JIRA)
wujimin created SCB-1071:


 Summary: serialize/deserialize array
 Key: SCB-1071
 URL: https://issues.apache.org/jira/browse/SCB-1071
 Project: Apache ServiceComb
  Issue Type: Sub-task
  Components: Java-Chassis
Reporter: wujimin
Assignee: wujimin
 Fix For: java-chassis-1.2.0






--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (SCB-1049) Alarm center

2018-12-06 Thread ASF GitHub Bot (JIRA)


[ 
https://issues.apache.org/jira/browse/SCB-1049?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16711375#comment-16711375
 ] 

ASF GitHub Bot commented on SCB-1049:
-

codecov-io edited a comment on issue #503: WIP: SCB-1049 Alarm center
URL: 
https://github.com/apache/servicecomb-service-center/pull/503#issuecomment-443584904
 
 
   # 
[Codecov](https://codecov.io/gh/apache/servicecomb-service-center/pull/503?src=pr=h1)
 Report
   > Merging 
[#503](https://codecov.io/gh/apache/servicecomb-service-center/pull/503?src=pr=desc)
 into 
[master](https://codecov.io/gh/apache/servicecomb-service-center/commit/fad2b5811f0476069fdfd68e65d14e7b2c81941a?src=pr=desc)
 will **decrease** coverage by `0.08%`.
   > The diff coverage is `70.08%`.
   
   [![Impacted file tree 
graph](https://codecov.io/gh/apache/servicecomb-service-center/pull/503/graphs/tree.svg?width=650=GAaF7zrg8R=150=pr)](https://codecov.io/gh/apache/servicecomb-service-center/pull/503?src=pr=tree)
   
   ```diff
   @@Coverage Diff @@
   ##   master #503  +/-   ##
   ==
   - Coverage   59.31%   59.23%   -0.09% 
   ==
 Files 166  168   +2 
 Lines   1394414017  +73 
   ==
   + Hits 8271 8303  +32 
   - Misses   5088 5132  +44 
   + Partials  585  582   -3
   ```
   
   
   | [Impacted 
Files](https://codecov.io/gh/apache/servicecomb-service-center/pull/503?src=pr=tree)
 | Coverage Δ | |
   |---|---|---|
   | 
[server/notify/publisher.go](https://codecov.io/gh/apache/servicecomb-service-center/pull/503/diff?src=pr=tree#diff-c2VydmVyL25vdGlmeS9wdWJsaXNoZXIuZ28=)
 | `95.65% <ø> (ø)` | |
   | 
[server/service/event/instance\_event\_handler.go](https://codecov.io/gh/apache/servicecomb-service-center/pull/503/diff?src=pr=tree#diff-c2VydmVyL3NlcnZpY2UvZXZlbnQvaW5zdGFuY2VfZXZlbnRfaGFuZGxlci5nbw==)
 | `7.54% <0%> (ø)` | :arrow_up: |
   | 
[...erver/plugin/pkg/discovery/servicecenter/syncer.go](https://codecov.io/gh/apache/servicecomb-service-center/pull/503/diff?src=pr=tree#diff-c2VydmVyL3BsdWdpbi9wa2cvZGlzY292ZXJ5L3NlcnZpY2VjZW50ZXIvc3luY2VyLmdv)
 | `41.17% <0%> (-1.58%)` | :arrow_down: |
   | 
[server/core/config.go](https://codecov.io/gh/apache/servicecomb-service-center/pull/503/diff?src=pr=tree#diff-c2VydmVyL2NvcmUvY29uZmlnLmdv)
 | `0% <0%> (ø)` | :arrow_up: |
   | 
[server/service/event/rule\_event\_handler.go](https://codecov.io/gh/apache/servicecomb-service-center/pull/503/diff?src=pr=tree#diff-c2VydmVyL3NlcnZpY2UvZXZlbnQvcnVsZV9ldmVudF9oYW5kbGVyLmdv)
 | `8.33% <0%> (ø)` | :arrow_up: |
   | 
[server/service/event/tag\_event\_handler.go](https://codecov.io/gh/apache/servicecomb-service-center/pull/503/diff?src=pr=tree#diff-c2VydmVyL3NlcnZpY2UvZXZlbnQvdGFnX2V2ZW50X2hhbmRsZXIuZ28=)
 | `7.14% <0%> (ø)` | :arrow_up: |
   | 
[server/service/instance.go](https://codecov.io/gh/apache/servicecomb-service-center/pull/503/diff?src=pr=tree#diff-c2VydmVyL3NlcnZpY2UvaW5zdGFuY2UuZ28=)
 | `67.75% <0%> (-0.5%)` | :arrow_down: |
   | 
[server/admin/controller\_v4.go](https://codecov.io/gh/apache/servicecomb-service-center/pull/503/diff?src=pr=tree#diff-c2VydmVyL2FkbWluL2NvbnRyb2xsZXJfdjQuZ28=)
 | `16.21% <10%> (-6.01%)` | :arrow_down: |
   | 
[pkg/util/json.go](https://codecov.io/gh/apache/servicecomb-service-center/pull/503/diff?src=pr=tree#diff-cGtnL3V0aWwvanNvbi5nbw==)
 | `100% <100%> (ø)` | |
   | 
[server/error/error.go](https://codecov.io/gh/apache/servicecomb-service-center/pull/503/diff?src=pr=tree#diff-c2VydmVyL2Vycm9yL2Vycm9yLmdv)
 | `100% <100%> (ø)` | :arrow_up: |
   | ... and [26 
more](https://codecov.io/gh/apache/servicecomb-service-center/pull/503/diff?src=pr=tree-more)
 | |
   
   --
   
   [Continue to review full report at 
Codecov](https://codecov.io/gh/apache/servicecomb-service-center/pull/503?src=pr=continue).
   > **Legend** - [Click here to learn 
more](https://docs.codecov.io/docs/codecov-delta)
   > `Δ = absolute  (impact)`, `ø = not affected`, `? = missing data`
   > Powered by 
[Codecov](https://codecov.io/gh/apache/servicecomb-service-center/pull/503?src=pr=footer).
 Last update 
[fad2b58...6896dc4](https://codecov.io/gh/apache/servicecomb-service-center/pull/503?src=pr=lastupdated).
 Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).
   


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> Alarm center
> 
>
> Key: SCB-1049
> URL: https://issues.apache.org/jira/browse/SCB-1049
> 

[jira] [Resolved] (SCB-1062) Update the project development version to 1.2.0-SNAPSHOT

2018-12-06 Thread Willem Jiang (JIRA)


 [ 
https://issues.apache.org/jira/browse/SCB-1062?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Willem Jiang resolved SCB-1062.
---
Resolution: Fixed
  Assignee: Willem Jiang

Applied the patch into master branch.

> Update the project development version to 1.2.0-SNAPSHOT
> 
>
> Key: SCB-1062
> URL: https://issues.apache.org/jira/browse/SCB-1062
> Project: Apache ServiceComb
>  Issue Type: Task
>  Components: Java-Chassis
>Reporter: Willem Jiang
>Assignee: Willem Jiang
>Priority: Minor
> Fix For: java-chassis-1.2.0
>
>




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (SCB-1056) Put provider QPS flow control in front

2018-12-06 Thread ASF GitHub Bot (JIRA)


[ 
https://issues.apache.org/jira/browse/SCB-1056?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16711228#comment-16711228
 ] 

ASF GitHub Bot commented on SCB-1056:
-

liubao68 closed pull request #1026: [SCB-1056] put provider QPS flow control in 
front, for highway transport
URL: https://github.com/apache/servicecomb-java-chassis/pull/1026
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git 
a/transports/transport-highway/src/main/java/org/apache/servicecomb/transport/highway/HighwayServerInvoke.java
 
b/transports/transport-highway/src/main/java/org/apache/servicecomb/transport/highway/HighwayServerInvoke.java
index 20e8e0828..32bfb67b9 100644
--- 
a/transports/transport-highway/src/main/java/org/apache/servicecomb/transport/highway/HighwayServerInvoke.java
+++ 
b/transports/transport-highway/src/main/java/org/apache/servicecomb/transport/highway/HighwayServerInvoke.java
@@ -20,12 +20,14 @@
 import java.util.Map;
 
 import javax.ws.rs.core.Response.Status;
+import javax.xml.ws.Holder;
 
 import org.apache.servicecomb.codec.protobuf.definition.OperationProtobuf;
 import org.apache.servicecomb.codec.protobuf.definition.ProtobufManager;
 import org.apache.servicecomb.codec.protobuf.utils.WrapSchema;
 import org.apache.servicecomb.core.Const;
 import org.apache.servicecomb.core.Endpoint;
+import org.apache.servicecomb.core.Handler;
 import org.apache.servicecomb.core.Invocation;
 import org.apache.servicecomb.core.SCBEngine;
 import org.apache.servicecomb.core.definition.MicroserviceMeta;
@@ -181,9 +183,38 @@ public void execute() {
   null);
   invocation.onStart(null, start);
   invocation.getInvocationStageTrace().startSchedule();
-  operationMeta.getExecutor().execute(() -> runInExecutor());
+
+  // copied from HighwayCodec#decodeRequest()
+  // for temporary qps enhance purpose, we'll remove it when handler 
mechanism is refactored
+  invocation.mergeContext(header.getContext());
+
+  Holder qpsFlowControlReject = 
checkQpsFlowControl(operationMeta);
+  if (qpsFlowControlReject.value) {
+return;
+  }
+
+  operationMeta.getExecutor().execute(this::runInExecutor);
 } catch (IllegalStateException e) {
   sendResponse(header.getContext(), Response.providerFailResp(e));
 }
   }
+
+  private Holder checkQpsFlowControl(OperationMeta operationMeta) {
+Holder qpsFlowControlReject = new Holder<>(false);
+@SuppressWarnings("deprecation")
+Handler providerQpsFlowControlHandler = 
operationMeta.getProviderQpsFlowControlHandler();
+if (null != providerQpsFlowControlHandler) {
+  try {
+providerQpsFlowControlHandler.handle(invocation, response -> {
+  qpsFlowControlReject.value = true;
+  sendResponse(header.getContext(), response);
+});
+  } catch (Exception e) {
+LOGGER.error("failed to execute ProviderQpsFlowControlHandler", e);
+qpsFlowControlReject.value = true;
+sendResponse(header.getContext(), Response.providerFailResp(e));
+  }
+}
+return qpsFlowControlReject;
+  }
 }
diff --git 
a/transports/transport-highway/src/test/java/org/apache/servicecomb/transport/highway/TestHighwayCodec.java
 
b/transports/transport-highway/src/test/java/org/apache/servicecomb/transport/highway/TestHighwayCodec.java
index a9932e2a1..ad3feddc8 100644
--- 
a/transports/transport-highway/src/test/java/org/apache/servicecomb/transport/highway/TestHighwayCodec.java
+++ 
b/transports/transport-highway/src/test/java/org/apache/servicecomb/transport/highway/TestHighwayCodec.java
@@ -37,7 +37,6 @@
 import org.apache.servicecomb.serviceregistry.ServiceRegistry;
 import org.apache.servicecomb.serviceregistry.registry.ServiceRegistryFactory;
 import org.apache.servicecomb.swagger.invocation.Response;
-import org.apache.servicecomb.swagger.invocation.context.InvocationContext;
 import org.apache.servicecomb.transport.highway.message.RequestHeader;
 import org.apache.servicecomb.transport.highway.message.ResponseHeader;
 import org.junit.After;
@@ -81,7 +80,7 @@ public static void setupClass() {
   }
 
   @Before
-  public void setUp() throws Exception {
+  public void setUp() {
 ServiceRegistry serviceRegistry = ServiceRegistryFactory.createLocal();
 serviceRegistry.init();
 RegistryUtils.setServiceRegistry(serviceRegistry);
@@ -106,7 +105,7 @@ public void setUp() throws Exception {
   }
 
   @After
-  public void tearDown() throws Exception {
+  public void tearDown() {
 
 header = null;
 
diff --git 
a/transports/transport-highway/src/test/java/org/apache/servicecomb/transport/highway/TestHighwayServerInvoke.java
 

[jira] [Commented] (SCB-1056) Put provider QPS flow control in front

2018-12-06 Thread ASF GitHub Bot (JIRA)


[ 
https://issues.apache.org/jira/browse/SCB-1056?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16711199#comment-16711199
 ] 

ASF GitHub Bot commented on SCB-1056:
-

yhs0092 opened a new pull request #1026: [SCB-1056] put provider QPS flow 
control in front, for highway transport
URL: https://github.com/apache/servicecomb-java-chassis/pull/1026
 
 
   Follow this checklist to help us incorporate your contribution quickly and 
easily:
   
- [ ] Make sure there is a [JIRA 
issue](https://issues.apache.org/jira/browse/SCB) filed for the change (usually 
before you start working on it).  Trivial changes like typos do not require a 
JIRA issue.  Your pull request should address just this issue, without pulling 
in other changes.
- [ ] Each commit in the pull request should have a meaningful subject line 
and body.
- [ ] Format the pull request title like `[SCB-XXX] Fixes bug in 
ApproximateQuantiles`, where you replace `SCB-XXX` with the appropriate JIRA 
issue.
- [ ] Write a pull request description that is detailed enough to 
understand what the pull request does, how, and why.
- [ ] Run `mvn clean install` to make sure basic checks pass. A more 
thorough check will be performed on your pull request automatically.
- [ ] If this contribution is large, please file an Apache [Individual 
Contributor License Agreement](https://www.apache.org/licenses/icla.pdf).
   
   ---
   See details in [SCB-1056](https://issues.apache.org/jira/browse/SCB-1056), 
support this enhancement in highway transport.


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> Put provider QPS flow control in front
> --
>
> Key: SCB-1056
> URL: https://issues.apache.org/jira/browse/SCB-1056
> Project: Apache ServiceComb
>  Issue Type: Improvement
>  Components: Java-Chassis
>Reporter: YaoHaishi
>Assignee: YaoHaishi
>Priority: Major
> Fix For: java-chassis-1.2.0
>
>
> Currently provider QPS flow control is in ProviderQpsFlowControlHandler which 
> works in provider handler chain. As a result, the flow control logic takes 
> effect too late and much CPU resource is wasted on processing those requests 
> that should be rejected earlier.
> Put the provider QPS flow control logic in front can save the resource.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)