Uh oh!
There was an error while loading. Please reload this page.
HBASE-26076 Support favoredNodes when do compaction offload - #3468
Conversation
Apache-HBase
commented
Jul 9, 2021
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Jul 9, 2021
💔 -1 overall
This message was automatically generated. |
Apache-HBase
commented
Jul 10, 2021
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Jul 10, 2021
🎊 +1 overall
This message was automatically generated. |
nyl3532016
commented
Jul 11, 2021
@Apache9 sir, mind help take a look at your convenience. |
Apache-HBase
commented
Jul 15, 2021
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Jul 15, 2021
💔 -1 overall
This message was automatically generated. |
Apache-HBase
commented
Jul 15, 2021
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Jul 27, 2021
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Jul 27, 2021
💔 -1 overall
This message was automatically generated. |
Apache-HBase
commented
Jul 27, 2021
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Jul 27, 2021
💔 -1 overall
This message was automatically generated. |
Apache-HBase
commented
Jul 28, 2021
🎊 +1 overall
This message was automatically generated. |
Uh oh!
There was an error while loading. Please reload this page.
| } | ||
| private InetSocketAddress[] getFavoredNodes() { | ||
| InetSocketAddress[] favoredNodes = null; |
There was a problem hiding this comment.
Does the code still compile after you remove this line? This is a behavior change? We have a favoredNodes class field in HStore?
| private InetSocketAddress[] favoredNodes = null; | ||
| public void setFavoredNodes( | ||
| List<org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.ServerName> favoredNodes) { |
There was a problem hiding this comment.
Just use HBaseProtos.ServerName?
| public void setFavoredNodes( | ||
| List<org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.ServerName> favoredNodes) { | ||
| if (favoredNodes != null && favoredNodes.size() > 0) { |
Uh oh!
There was an error while loading. Please reload this page.
Apache-HBase
commented
Aug 13, 2021
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Aug 13, 2021
💔 -1 overall
This message was automatically generated. |
Apache-HBase
commented
Aug 13, 2021
💔 -1 overall
This message was automatically generated. |
Apache-HBase
commented
Aug 13, 2021
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Aug 13, 2021
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Aug 13, 2021
🎊 +1 overall
This message was automatically generated. |
nyl3532016
commented
Aug 16, 2021
@Apache9 mind help take a look at your convenience. |
Apache9
left a comment
There was a problem hiding this comment.
+1.
Just a simple thing want to double confirm.
| if (region.getRegionServerServices() != null) { | ||
| favoredNodes = region.getRegionServerServices().getFavoredNodesForRegion( | ||
| region.getRegionInfo().getEncodedName()); | ||
| return region.getRegionServerServices() |
There was a problem hiding this comment.
So this means, if on a region server, we will get the favored nodes from region server, otherwise, use the one set by compaction server?
There was a problem hiding this comment.
Yes, the logic is like this
1.If we have favoredNodes for region, We use this policy
2.If we not have favoredNodes, we add the regionServer request compaction as favoredNodes when do compact on compaction server, to guarantee locality