Uh oh!
There was an error while loading. Please reload this page.
HBASE-24999 Master manages ReplicationServers - #2579
Conversation
Apache-HBase
commented
Oct 22, 2020
💔 -1 overall
This message was automatically generated. |
Apache-HBase
commented
Oct 22, 2020
💔 -1 overall
This message was automatically generated. |
Apache-HBase
commented
Oct 22, 2020
💔 -1 overall
This message was automatically generated. |
Apache-HBase
commented
Oct 22, 2020
💔 -1 overall
This message was automatically generated. |
Apache-HBase
commented
Oct 22, 2020
💔 -1 overall
This message was automatically generated. |
Apache-HBase
commented
Oct 22, 2020
💔 -1 overall
This message was automatically generated. |
| * server from the original instance. | ||
| */ | ||
| @InterfaceAudience.Private | ||
| public class ReplicationServerManager { |
There was a problem hiding this comment.
Would it make sense to extend ServerManager, or maybe both this one and ServerManager could implement a common interface? It seems there is a common workflow for server managers.
There was a problem hiding this comment.
Yes. But we want do this refator after we finished this, because ReplicationServerManager may have new featrues but ServerManager not need. It is not easy to decide that extend ServerManager or implement a common interface. Thanks.
Uh oh!
There was an error while loading. Please reload this page.
| /** | ||
| * Get the list of all the servers that are responsible for replication sink | ||
| * from the specified peer master | ||
| * @return list of server addresses or an empty list if the slave is unavailable |
There was a problem hiding this comment.
Is it true that an empty list would be returned if we can't reach slave master? Looks like we either throw an IOException or a RemoteException.
There was a problem hiding this comment.
Yes, I ignored changing the comment.
Fixed it.
Apache-HBase
commented
Oct 26, 2020
💔 -1 overall
This message was automatically generated. |
| import org.slf4j.LoggerFactory; | ||
| /** | ||
| * The ServerManager class manages info about replication servers. |
There was a problem hiding this comment.
ServerManager => ReplicationServerManager?
| * @param sl the server load on the server | ||
| * @return true if the server is recorded, otherwise, false | ||
| */ | ||
| boolean checkAndRecordNewServer(final ServerName serverName, final ServerMetrics sl) { |
Uh oh!
There was an error while loading. Please reload this page.
| return abortRequested.compareAndSet(false, true); | ||
| } | ||
| protected void tryReplicationServerReport(long reportStartTime, long reportEndTime) |
| * @param refresh If true then master address will be read from ZK, otherwise use cached data | ||
| * @return master + port, or null if server has been stopped | ||
| */ | ||
| protected synchronized ServerName createReplicationServerStatusStub(boolean refresh) { |
infraio
commented
Oct 26, 2020
Add master UI to show ReplicationServer? |
Apache-HBase
commented
Oct 26, 2020
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Oct 26, 2020
🎊 +1 overall
This message was automatically generated. |
ddupg
commented
Oct 26, 2020
Thanks @infraio for reviewing. I have fixed as comments.
Do it in this PR? I was going to do it in a new PR? |
Apache-HBase
commented
Oct 26, 2020
💔 -1 overall
This message was automatically generated. |
Apache-HBase
commented
Oct 26, 2020
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Oct 26, 2020
🎊 +1 overall
This message was automatically generated. |
Ok. Let's do it in follow-on PR. |
Uh oh!
There was an error while loading. Please reload this page.
| * @param refresh If true then master address will be read from ZK, otherwise use cached data | ||
| * @return master + port, or null if server has been stopped | ||
| */ | ||
| private synchronized ServerName createReplicationServerStatusStub(boolean refresh) { |
There was a problem hiding this comment.
The return ServerName never used?
There was a problem hiding this comment.
It should be useful, let me fix it.
Apache-HBase
commented
Oct 27, 2020
💔 -1 overall
This message was automatically generated. |
Apache-HBase
commented
Oct 27, 2020
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Oct 27, 2020
🎊 +1 overall
This message was automatically generated. |
infraio
commented
Oct 28, 2020
infraio
commented
Oct 28, 2020
The spotbugs warnings is about HBASE-24666, not about this PR. And this PR fixed thems. "hbase-server generated 0 new + 0 unchanged - 3 fixed = 0 total (was 3)" |
Signed-off-by: Guanghao Zhang <zghao@apache.org>
Signed-off-by: Guanghao Zhang <zghao@apache.org>
Signed-off-by: Guanghao Zhang <zghao@apache.org>
No description provided.