You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by GitBox <gi...@apache.org> on 2022/02/09 06:45:50 UTC

[GitHub] [skywalking-java] wallezhang opened a new pull request #107: Add plugin to support google guava EventBus

wallezhang opened a new pull request #107:
URL: https://github.com/apache/skywalking-java/pull/107


   <!--
       ⚠️ Please make sure to read this template first, pull requests that don't accord with this template
       maybe closed without notice.
       Texts surrounded by `<` and `>` are meant to be replaced by you, e.g. <framework name>, <issue number>.
       Put an `x` in the `[ ]` to mark the item as CHECKED. `[x]`
   -->
   
   <!-- ==== 🐛 Remove this line WHEN AND ONLY WHEN you're fixing a bug, follow the checklist 👇 ====
   ### Fix <bug description or the bug issue number or bug issue link>
   - [ ] Add a unit test to verify that the fix works.
   - [ ] Explain briefly why the bug exists and how to fix it.
        ==== 🐛 Remove this line WHEN AND ONLY WHEN you're fixing a bug, follow the checklist 👆 ==== -->
   
   ### Add an agent plugin to support <Guava EventBus>
   - [x] Add a test case for the new plugin, refer to [the doc](https://github.com/apache/skywalking-java/blob/main/docs/en/setup/service-agent/java-agent/Plugin-test.md)
   - [ ] Add a component id in [the component-libraries.yml](https://github.com/apache/skywalking/blob/master/oap-server/server-starter/src/main/resources/component-libraries.yml)
   - [ ] Add a logo in [the UI repo](https://github.com/apache/skywalking-rocketbot-ui/tree/master/src/views/components/topology/assets)
   
   
   <!-- ==== 📈 Remove this line WHEN AND ONLY WHEN you're improving the performance, follow the checklist 👇 ====
   ### Improve the performance of <class or module or ...>
   - [ ] Add a benchmark for the improvement, refer to [the existing ones](https://github.com/apache/skywalking-java/blob/main/apm-commons/apm-datacarrier/src/test/java/org/apache/skywalking/apm/commons/datacarrier/LinkedArrayBenchmark.java)
   - [ ] The benchmark result.
   ```text
   <Paste the benchmark results here>
   ```
   - [ ] Links/URLs to the theory proof or discussion articles/blogs. <links/URLs here>
        ==== 📈 Remove this line WHEN AND ONLY WHEN you're improving the performance, follow the checklist 👆 ==== -->
   
   <!-- ==== 🆕 Remove this line WHEN AND ONLY WHEN you're adding a new feature, follow the checklist 👇 ====
   ### <Feature description>
   - [ ] If this is non-trivial feature, paste the links/URLs to the design doc.
   - [ ] Update the documentation to include this new feature.
   - [ ] Tests(including UT, IT, E2E) are added to verify the new feature.
   - [ ] If it's UI related, attach the screenshots below.
        ==== 🆕 Remove this line WHEN AND ONLY WHEN you're adding a new feature, follow the checklist 👆 ==== -->
   
   - [x] If this pull request closes/resolves/fixes an existing issue, replace the issue number. Closes apache/skywalking#8482.
   - [x] Update the [`CHANGES` log](https://github.com/apache/skywalking-java/blob/main/CHANGES.md).
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking-java] wu-sheng commented on pull request #107: Add plugin to support google guava EventBus

Posted by GitBox <gi...@apache.org>.
wu-sheng commented on pull request #107:
URL: https://github.com/apache/skywalking-java/pull/107#issuecomment-1034807074


   Yes, go ahead.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking-java] wu-sheng commented on a change in pull request #107: Add plugin to support google guava EventBus

Posted by GitBox <gi...@apache.org>.
wu-sheng commented on a change in pull request #107:
URL: https://github.com/apache/skywalking-java/pull/107#discussion_r802319275



##########
File path: apm-protocol/apm-network/src/main/java/org/apache/skywalking/apm/network/trace/component/ComponentsDefine.java
##########
@@ -219,5 +219,5 @@
 
     public static final OfficialComponent APACHE_KYLIN_JDBC_DRIVER = new OfficialComponent(121, "apache-kylin-jdbc-driver");
 
-    public static final OfficialComponent GUAVA_EVENT_BUS = new OfficialComponent(122, "GuavaEventBus");
+    public static final OfficialComponent GUAVA_EVENT_BUS = new OfficialComponent(123, "GuavaEventBus");

Review comment:
       Please register this to the main repo first.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking-java] wu-sheng commented on pull request #107: Add plugin to support google guava EventBus

Posted by GitBox <gi...@apache.org>.
wu-sheng commented on pull request #107:
URL: https://github.com/apache/skywalking-java/pull/107#issuecomment-1033666945


   Yes, correct. So we need to take a look at how the new segments look like after guava plugin added.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking-java] wu-sheng commented on pull request #107: Add plugin to support google guava EventBus

Posted by GitBox <gi...@apache.org>.
wu-sheng commented on pull request #107:
URL: https://github.com/apache/skywalking-java/pull/107#issuecomment-1033506898


   I noticed the servicecomb-java-chassis 1.x has been deprecated in Sep. last year. All following releases are 2.x. I will go to check with them whether they are going to enhance this plugin, or we are going to remove them.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking-java] wallezhang commented on pull request #107: Add plugin to support google guava EventBus

Posted by GitBox <gi...@apache.org>.
wallezhang commented on pull request #107:
URL: https://github.com/apache/skywalking-java/pull/107#issuecomment-1033478619


   > I guess ServiceComb is using this framework somehow, and which causes new spans added and expected data doesn't match anymore.
   
   I take a look. Is there any recommend way to fix it? Modify the expect data to match it as before?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking-java] wu-sheng commented on a change in pull request #107: Add plugin to support google guava EventBus

Posted by GitBox <gi...@apache.org>.
wu-sheng commented on a change in pull request #107:
URL: https://github.com/apache/skywalking-java/pull/107#discussion_r802389025



##########
File path: test/plugin/scenarios/guava-eventbus-scenario/support-version.list
##########
@@ -0,0 +1,29 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+19.0
+20.0
+21.0
+22.0
+23.0
+24.0-jre
+25.0-jre
+26.0-jre
+27.0-jre
+28.0-jre
+29.0-jre
+30.0-jre
+31.0-jre

Review comment:
       Please pick some versions once all tests passed. This seems to cause too many resources.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking-java] wallezhang commented on pull request #107: Add plugin to support google guava EventBus

Posted by GitBox <gi...@apache.org>.
wallezhang commented on pull request #107:
URL: https://github.com/apache/skywalking-java/pull/107#issuecomment-1033667336


   > Yes, correct. So we need to take a look at how the new segments look like after guava plugin added.
   
   I will take a look.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking-java] wu-sheng commented on pull request #107: Add plugin to support google guava EventBus

Posted by GitBox <gi...@apache.org>.
wu-sheng commented on pull request #107:
URL: https://github.com/apache/skywalking-java/pull/107#issuecomment-1033666187


   Please sync when you fixed the case. That plugin is removed.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking-java] wallezhang commented on pull request #107: Add plugin to support google guava EventBus

Posted by GitBox <gi...@apache.org>.
wallezhang commented on pull request #107:
URL: https://github.com/apache/skywalking-java/pull/107#issuecomment-1033521792


   > @wallezhang According to [apache/servicecomb-java-chassis#2714 (comment)](https://github.com/apache/servicecomb-java-chassis/issues/2714#issuecomment-1033514042), I am removing servicecomb plugin 0.x, so you don't need to fix that case.
   
   OK, Thanks a lot.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking-java] wallezhang commented on pull request #107: Add plugin to support google guava EventBus

Posted by GitBox <gi...@apache.org>.
wallezhang commented on pull request #107:
URL: https://github.com/apache/skywalking-java/pull/107#issuecomment-1033466619


   > > The graphql-9.x-scenario test failed due to connection problem. How to re-run the CI flow?
   > 
   > In the `Details`, there is a `rerun` button on the top right. I am not sure whether it is only working for committer.
   > 
   > ![image](https://user-images.githubusercontent.com/5441976/153149229-67434043-887e-4add-abf9-81a7c4cdf749.png)
   > 
   > I reran it anyway.
   
   Thanks. It's only work for committer, I can't see the button.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking-java] wallezhang commented on pull request #107: Add plugin to support google guava EventBus

Posted by GitBox <gi...@apache.org>.
wallezhang commented on pull request #107:
URL: https://github.com/apache/skywalking-java/pull/107#issuecomment-1033461765


   The graphql-9.x-scenario test failed due to connection problem. How to re-run the CI flow?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking-java] wu-sheng commented on pull request #107: Add plugin to support google guava EventBus

Posted by GitBox <gi...@apache.org>.
wu-sheng commented on pull request #107:
URL: https://github.com/apache/skywalking-java/pull/107#issuecomment-1033472657


   I guess ServiceComb is using this framework somehow, and which causes new spans added and expected data doesn't match anymore.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking-java] wu-sheng commented on pull request #107: Add plugin to support google guava EventBus

Posted by GitBox <gi...@apache.org>.
wu-sheng commented on pull request #107:
URL: https://github.com/apache/skywalking-java/pull/107#issuecomment-1033467210


   Got it. Feel free to ping me in the next time.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking-java] wu-sheng commented on pull request #107: Add plugin to support google guava EventBus

Posted by GitBox <gi...@apache.org>.
wu-sheng commented on pull request #107:
URL: https://github.com/apache/skywalking-java/pull/107#issuecomment-1033487383


   > > I guess ServiceComb is using this framework somehow, and which causes new spans added and expected data doesn't match anymore.
   > 
   > I take a look. Is there any recommend way to fix it? Modify the expect data to match it as before?
   
   Could you take a deep look first? I am not sure how much it is affecting the ServiceComb case. If there are only some new local spans added, then I am good to just update the expect data.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking-java] wallezhang commented on a change in pull request #107: Add plugin to support google guava EventBus

Posted by GitBox <gi...@apache.org>.
wallezhang commented on a change in pull request #107:
URL: https://github.com/apache/skywalking-java/pull/107#discussion_r802407726



##########
File path: test/plugin/scenarios/guava-eventbus-scenario/support-version.list
##########
@@ -0,0 +1,29 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+19.0
+20.0
+21.0
+22.0
+23.0
+24.0-jre
+25.0-jre
+26.0-jre
+27.0-jre
+28.0-jre
+29.0-jre
+30.0-jre
+31.0-jre

Review comment:
       OK, I will pick some versions. All versions tests have passed.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking-java] wu-sheng commented on pull request #107: Add plugin to support google guava EventBus

Posted by GitBox <gi...@apache.org>.
wu-sheng commented on pull request #107:
URL: https://github.com/apache/skywalking-java/pull/107#issuecomment-1033463469


   > The graphql-9.x-scenario test failed due to connection problem. How to re-run the CI flow?
   
   In the `Details`, there is a `rerun` button on the top right. I am not sure whether it is only working for committer.
   
   ![image](https://user-images.githubusercontent.com/5441976/153149229-67434043-887e-4add-abf9-81a7c4cdf749.png)
   
   I reran it anyway.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking-java] wallezhang commented on pull request #107: Add plugin to support google guava EventBus

Posted by GitBox <gi...@apache.org>.
wallezhang commented on pull request #107:
URL: https://github.com/apache/skywalking-java/pull/107#issuecomment-1034806129


   @wu-sheng ServiceComb v1.0.0 uses the native Guava EventBus, so the guava-event-bus plugin will affect the test results. Since version 1.1.0, ServiceComb has implemented EventBus by itself, so the scenario test cases after version 1.1.0 can match the previous expected data. 
   
   So shall we delete support version 1.0.0 from scenario test?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking-java] wallezhang commented on a change in pull request #107: Add plugin to support google guava EventBus

Posted by GitBox <gi...@apache.org>.
wallezhang commented on a change in pull request #107:
URL: https://github.com/apache/skywalking-java/pull/107#discussion_r802323115



##########
File path: apm-protocol/apm-network/src/main/java/org/apache/skywalking/apm/network/trace/component/ComponentsDefine.java
##########
@@ -219,5 +219,5 @@
 
     public static final OfficialComponent APACHE_KYLIN_JDBC_DRIVER = new OfficialComponent(121, "apache-kylin-jdbc-driver");
 
-    public static final OfficialComponent GUAVA_EVENT_BUS = new OfficialComponent(122, "GuavaEventBus");
+    public static final OfficialComponent GUAVA_EVENT_BUS = new OfficialComponent(123, "GuavaEventBus");

Review comment:
       OK, I just submit a PR to main repo.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking-java] wu-sheng commented on pull request #107: Add plugin to support google guava EventBus

Posted by GitBox <gi...@apache.org>.
wu-sheng commented on pull request #107:
URL: https://github.com/apache/skywalking-java/pull/107#issuecomment-1033472151


   Guava plugin breaks the existing plugin of ServiceComb
   
   > Guava/EventBus/org.apache.servicecomb.serviceregistry.task.MicroserviceInstanceRegisterTask/onMicroserviceRegisterTask
   
   This is found in the actual data.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking-java] wu-sheng commented on pull request #107: Add plugin to support google guava EventBus

Posted by GitBox <gi...@apache.org>.
wu-sheng commented on pull request #107:
URL: https://github.com/apache/skywalking-java/pull/107#issuecomment-1033519638


   @wallezhang According to https://github.com/apache/servicecomb-java-chassis/issues/2714#issuecomment-1033514042, I am removing servicecomb plugin 0.x, so you don't need to fix that case.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking-java] wu-sheng commented on a change in pull request #107: Add plugin to support google guava EventBus

Posted by GitBox <gi...@apache.org>.
wu-sheng commented on a change in pull request #107:
URL: https://github.com/apache/skywalking-java/pull/107#discussion_r802325194



##########
File path: apm-protocol/apm-network/src/main/java/org/apache/skywalking/apm/network/trace/component/ComponentsDefine.java
##########
@@ -219,5 +219,5 @@
 
     public static final OfficialComponent APACHE_KYLIN_JDBC_DRIVER = new OfficialComponent(121, "apache-kylin-jdbc-driver");
 
-    public static final OfficialComponent GUAVA_EVENT_BUS = new OfficialComponent(122, "GuavaEventBus");
+    public static final OfficialComponent GUAVA_EVENT_BUS = new OfficialComponent(123, "GuavaEventBus");

Review comment:
       https://github.com/apache/skywalking/pull/8524




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking-java] wallezhang commented on pull request #107: Add plugin to support google guava EventBus

Posted by GitBox <gi...@apache.org>.
wallezhang commented on pull request #107:
URL: https://github.com/apache/skywalking-java/pull/107#issuecomment-1033666224


   @wu-sheng ServiceComb 1.x plugin also have the problem. According to the discussion in apache/servicecomb-java-chassis#2714, the 1.x ServiceComb is still in using for end users.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking-java] wu-sheng merged pull request #107: Add plugin to support google guava EventBus

Posted by GitBox <gi...@apache.org>.
wu-sheng merged pull request #107:
URL: https://github.com/apache/skywalking-java/pull/107


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org