You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2022/04/28 15:30:51 UTC

[GitHub] [pulsar] horizonzy opened a new pull request, #15372: [Tests] Make PersistentTopicE2ETest#testBrokerConnectionStats tests stable.

horizonzy opened a new pull request, #15372:
URL: https://github.com/apache/pulsar/pull/15372

   Fixes #10150 
   
   ### Motivation
   Make PersistentTopicE2ETest#testBrokerConnectionStats tests stable.
   
   Need to update docs? r)
     
   - [ ] `no-need-doc` 
   (Please explain why)
     


-- 
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: commits-unsubscribe@pulsar.apache.org

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


[GitHub] [pulsar] Technoboy- merged pull request #15372: [Flaky Tests] Make PersistentTopicE2ETest#testBrokerConnectionStats tests stable.

Posted by GitBox <gi...@apache.org>.
Technoboy- merged PR #15372:
URL: https://github.com/apache/pulsar/pull/15372


-- 
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: commits-unsubscribe@pulsar.apache.org

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


[GitHub] [pulsar] horizonzy commented on pull request #15372: [Flaky Tests] Make PersistentTopicE2ETest#testBrokerConnectionStats tests stable.

Posted by GitBox <gi...@apache.org>.
horizonzy commented on PR #15372:
URL: https://github.com/apache/pulsar/pull/15372#issuecomment-1112903755

   /pulsarbot run-failure-checks


-- 
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: commits-unsubscribe@pulsar.apache.org

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


[GitHub] [pulsar] nicoloboschi commented on a diff in pull request #15372: [Flaky Tests] Make PersistentTopicE2ETest#testBrokerConnectionStats tests stable.

Posted by GitBox <gi...@apache.org>.
nicoloboschi commented on code in PR #15372:
URL: https://github.com/apache/pulsar/pull/15372#discussion_r861577405


##########
pulsar-broker/src/main/java/org/apache/pulsar/broker/service/PulsarChannelInitializer.java:
##########
@@ -59,7 +59,8 @@ public class PulsarChannelInitializer extends ChannelInitializer<SocketChannel>
     // This cache is used to maintain a list of active connections to iterate over them
     // We keep weak references to have the cache to be auto cleaned up when the connections
     // objects are GCed.
-    private final Cache<SocketAddress, ServerCnx> connections = Caffeine.newBuilder()
+    // protected for test.

Review Comment:
   you can add @VisibleForTesting annotation



-- 
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: commits-unsubscribe@pulsar.apache.org

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


[GitHub] [pulsar] horizonzy commented on a diff in pull request #15372: [Flaky Tests] Make PersistentTopicE2ETest#testBrokerConnectionStats tests stable.

Posted by GitBox <gi...@apache.org>.
horizonzy commented on code in PR #15372:
URL: https://github.com/apache/pulsar/pull/15372#discussion_r862280800


##########
pulsar-broker/src/main/java/org/apache/pulsar/broker/service/PulsarChannelInitializer.java:
##########
@@ -59,7 +59,8 @@ public class PulsarChannelInitializer extends ChannelInitializer<SocketChannel>
     // This cache is used to maintain a list of active connections to iterate over them
     // We keep weak references to have the cache to be auto cleaned up when the connections
     // objects are GCed.
-    private final Cache<SocketAddress, ServerCnx> connections = Caffeine.newBuilder()
+    // protected for test.

Review Comment:
   fine



-- 
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: commits-unsubscribe@pulsar.apache.org

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


[GitHub] [pulsar] github-actions[bot] commented on pull request #15372: [Tests] Make PersistentTopicE2ETest#testBrokerConnectionStats tests stable.

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on PR #15372:
URL: https://github.com/apache/pulsar/pull/15372#issuecomment-1112352998

   @horizonzy:Thanks for your contribution. For this PR, do we need to update docs?
   (The [PR template contains info about doc](https://github.com/apache/pulsar/blob/master/.github/PULL_REQUEST_TEMPLATE.md#documentation), which helps others know more about the changes. Can you provide doc-related info in this and future PR descriptions? Thanks)


-- 
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: commits-unsubscribe@pulsar.apache.org

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


[GitHub] [pulsar] github-actions[bot] commented on pull request #15372: [Tests] Make PersistentTopicE2ETest#testBrokerConnectionStats tests stable.

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on PR #15372:
URL: https://github.com/apache/pulsar/pull/15372#issuecomment-1112355230

   @horizonzy:Thanks for providing doc info!


-- 
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: commits-unsubscribe@pulsar.apache.org

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