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/24 10:09:20 UTC

[GitHub] [skywalking] ethan256 opened a new issue #8589: [Bug]

ethan256 opened a new issue #8589:
URL: https://github.com/apache/skywalking/issues/8589


   ### Search before asking
   
   - [X] I had searched in the [issues](https://github.com/apache/skywalking/issues?q=is%3Aissue) and found no similar issues.
   
   
   ### Apache SkyWalking Component
   
   Infra E2E (apache/skywalking-infra-e2e)
   
   ### What happened
   
   When the trigger reaches the specified number of times, it does not stop
   
   ### What you expected to happen
   
   it is should stop current goroutine.
   [docs](https://skywalking.apache.org/docs/skywalking-infra-e2e/latest/en/concepts-and-designs/module-design/)
   
   ### How to reproduce
   
   when times equal executedCount, return current goroution
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
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] ethan256 edited a comment on issue #8589: [Bug] when trigger equal times, it do not stop

Posted by GitBox <gi...@apache.org>.
ethan256 edited a comment on issue #8589:
URL: https://github.com/apache/skywalking/issues/8589#issuecomment-1049735804


   [`h.times == h.executedCount` makes sure to only send the first error](https://github.com/apache/skywalking-infra-e2e/blob/main/internal/components/trigger/http.go#L82)
   
   according to commnet in code, it means "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] ethan256 commented on issue #8589: [Bug] when trigger equal times, it do not stop

Posted by GitBox <gi...@apache.org>.
ethan256 commented on issue #8589:
URL: https://github.com/apache/skywalking/issues/8589#issuecomment-1049724474


   when times is bigger, the err chan not return first error.
   when interval equal execute timeout, time.NewTicker maybe exec again


-- 
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] kezhenxu94 commented on issue #8589: [Bug] when trigger equal times, it do not stop

Posted by GitBox <gi...@apache.org>.
kezhenxu94 commented on issue #8589:
URL: https://github.com/apache/skywalking/issues/8589#issuecomment-1049732334


   > when the `times` is large, the `err chan` does not return first error but the last one,
   
   `err chan` should return the last one, why do you want to return the first one error? For example, if the target service is not ready, trigger request may return error `connection refused`, and after some retries, the service is ready but you are request a non-existing path `/api/non-existing`, why would you expect to get the first error (`connection refused`) instead of the last one (`404 Not Found`)?
   


-- 
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] ethan256 commented on issue #8589: [Bug] when trigger equal times, it do not stop

Posted by GitBox <gi...@apache.org>.
ethan256 commented on issue #8589:
URL: https://github.com/apache/skywalking/issues/8589#issuecomment-1049715453


   1. when trime is bigger, the err chan not return first error.
   2. when interval equal execute timeout, time.NewTicker maybe exec again


-- 
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] ethan256 edited a comment on issue #8589: [Bug] when trigger equal times, it do not stop

Posted by GitBox <gi...@apache.org>.
ethan256 edited a comment on issue #8589:
URL: https://github.com/apache/skywalking/issues/8589#issuecomment-1049724474


   when the `times` is large, the `err chan` does not return first error but the last one, and
   when the `interval` parameter is close to the `execute()` timeout, `time.NewTicker` may possibly be executed again. There may be race between two branches.


-- 
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] kezhenxu94 commented on issue #8589: [Bug] when trigger equal times, it do not stop

Posted by GitBox <gi...@apache.org>.
kezhenxu94 commented on issue #8589:
URL: https://github.com/apache/skywalking/issues/8589#issuecomment-1049697385


   Hi @ethan256 , thanks for raising this, actually, this is by design and the doc is kind of outdated,
   
   ```
   - times: How many times to trigger the action, 0=infinite.
   ```
   
   this should be: "how many times to trigger the action before aborting if the trigger failed, or continue if the trigger succeeded"


-- 
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] kezhenxu94 edited a comment on issue #8589: [Bug] when trigger equal times, it do not stop

Posted by GitBox <gi...@apache.org>.
kezhenxu94 edited a comment on issue #8589:
URL: https://github.com/apache/skywalking/issues/8589#issuecomment-1049732334


   > when the `times` is large, the `err chan` does not return first error but the last one,
   
   `err chan` should return the last one, why do you want to return the first one error? For example, if the target service is not ready, trigger request may return error `connection refused`, and after some retries, the service is ready but you request a non-existing path `/api/non-existing`, why would you expect to get the first error (`connection refused`) instead of the last one (`404 Not Found`)?
   


-- 
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] ethan256 removed a comment on issue #8589: [Bug] when trigger equal times, it do not stop

Posted by GitBox <gi...@apache.org>.
ethan256 removed a comment on issue #8589:
URL: https://github.com/apache/skywalking/issues/8589#issuecomment-1049715453


   1. when trime is bigger, the err chan not return first error.
   2. when interval equal execute timeout, time.NewTicker maybe exec again


-- 
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] wu-sheng closed issue #8589: [Bug] when trigger equal times, it do not stop

Posted by GitBox <gi...@apache.org>.
wu-sheng closed issue #8589:
URL: https://github.com/apache/skywalking/issues/8589


   


-- 
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] ethan256 commented on issue #8589: [Bug] when trigger equal times, it do not stop

Posted by GitBox <gi...@apache.org>.
ethan256 commented on issue #8589:
URL: https://github.com/apache/skywalking/issues/8589#issuecomment-1049735804


   [`h.times == h.executedCount` makes sure to only send the first error](https://github.com/apache/skywalking-infra-e2e/blob/main/internal/components/trigger/http.go#L82)
   


-- 
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] ethan256 edited a comment on issue #8589: [Bug] when trigger equal times, it do not stop

Posted by GitBox <gi...@apache.org>.
ethan256 edited a comment on issue #8589:
URL: https://github.com/apache/skywalking/issues/8589#issuecomment-1049735804


   [`h.times == h.executedCount` makes sure to only send the first error](https://github.com/apache/skywalking-infra-e2e/blob/main/internal/components/trigger/http.go#L82)
   
   according to commnet in code, it means "first". Is the annotation here wrong?


-- 
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] kezhenxu94 commented on issue #8589: [Bug] when trigger equal times, it do not stop

Posted by GitBox <gi...@apache.org>.
kezhenxu94 commented on issue #8589:
URL: https://github.com/apache/skywalking/issues/8589#issuecomment-1049697630


   @ethan256 would you like to open a pull request to fix the doc?


-- 
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