Uh oh!
There was an error while loading. Please reload this page.
HBASE-27466: Making metrics instance containing one or more connections. - #4874
Conversation
metrics object of connections.
Apache-HBase
commented
Nov 10, 2022
💔 -1 overall
This message was automatically generated. |
Apache-HBase
commented
Nov 10, 2022
💔 -1 overall
This message was automatically generated. |
Apache-HBase
commented
Nov 10, 2022
💔 -1 overall
This message was automatically generated. |
Apache-HBase
commented
Nov 10, 2022
💔 -1 overall
This message was automatically generated. |
Apache-HBase
commented
Nov 10, 2022
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Nov 10, 2022
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Nov 10, 2022
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Nov 10, 2022
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Nov 11, 2022
🎊 +1 overall
This message was automatically generated. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| Supplier<ThreadPoolExecutor> batchPool, Supplier<ThreadPoolExecutor> metaPool) { | ||
| String scope = getScope(conn); | ||
| MetricsConnection metrics; | ||
| synchronized (METRICS_INSTANCES) { |
There was a problem hiding this comment.
Consider a synchronized or concurrent map type instead.
There was a problem hiding this comment.
I am not sure if a synchronized or concurrent map can protect the entire block, I want this entire block to run in single thread mode. Especially in the deletion method below, the decrementing count, getting count, and remove it from the map have to be single threaded. @apurtell@d-c-manning
There was a problem hiding this comment.
The scope here should be unique per async connection object, is that correct?
There was a problem hiding this comment.
I guess the scope that you meant here is the scope of this code block, it is per async connection object, and the single metrics object which might be shared among multiple async connection objects. Please refer the comment in the deleteMetricsConnection() code block, too.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Apache-HBase
commented
Nov 12, 2022
💔 -1 overall
This message was automatically generated. |
Apache-HBase
commented
Nov 12, 2022
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Nov 12, 2022
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Nov 12, 2022
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Nov 12, 2022
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Nov 17, 2022
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Nov 17, 2022
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Nov 18, 2022
🎊 +1 overall
This message was automatically generated. |
virajjasani
commented
Nov 30, 2022
Let me retrigger the build. |
Apache-HBase
commented
Nov 30, 2022
🎊 +1 overall
This message was automatically generated. |
| Supplier<ThreadPoolExecutor> batchPool, Supplier<ThreadPoolExecutor> metaPool) { | ||
| String scope = getScope(conn); | ||
| MetricsConnection metrics; | ||
| synchronized (METRICS_INSTANCES) { |
There was a problem hiding this comment.
I guess the scope that you meant here is the scope of this code block, it is per async connection object, and the single metrics object which might be shared among multiple async connection objects. Please refer the comment in the deleteMetricsConnection() code block, too.
Uh oh!
There was an error while loading. Please reload this page.
virajjasani
commented
Nov 30, 2022
This is worth giving a shot, this would avoid us having coarse-grained lock on the entire Map: |
Apache-HBase
commented
Nov 30, 2022
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Nov 30, 2022
🎊 +1 overall
This message was automatically generated. |
vli02
commented
Nov 30, 2022
Thanks for the sample code. I guess you missed the
|
virajjasani
left a comment
There was a problem hiding this comment.
Left few nits, looks good overall.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Apache-HBase
commented
Dec 1, 2022
🎊 +1 overall
This message was automatically generated. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Apache-HBase
commented
Dec 1, 2022
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Dec 1, 2022
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Dec 1, 2022
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Dec 1, 2022
💔 -1 overall
This message was automatically generated. |
Apache-HBase
commented
Dec 1, 2022
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Dec 1, 2022
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Dec 1, 2022
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Dec 1, 2022
💔 -1 overall
This message was automatically generated. |
Apache-HBase
commented
Dec 1, 2022
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Dec 2, 2022
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Dec 2, 2022
🎊 +1 overall
This message was automatically generated. |
metrics object of connections.