-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ENG-3117: Async DNS resolution of peers
Summary: Implemented async DNS resolution of address for peers. Used in async mode during config update and election. There are still places that use synchronous DNS resolution: 1) SetupCatalog 2) StepDown 3) NotifyLeaderAboutLostElection Suppose that 2 and 3 could be kept in synchronous mode. Did not test it with docker yet. Creating diff to trigger tests and start review process. Test Plan: Jenkins Reviewers: mikhail, bogdan Reviewed By: mikhail Subscribers: ybase, bharat Differential Revision: https://phabricator.dev.yugabyte.com/D4489
- Loading branch information
Showing
32 changed files
with
402 additions
and
235 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// Copyright (c) YugaByte, Inc. | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except | ||
// in compliance with the License. You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software distributed under the License | ||
// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express | ||
// or implied. See the License for the specific language governing permissions and limitations | ||
// under the License. | ||
// | ||
|
||
#ifndef YB_CONSENSUS_CONSENSUS_FWD_H | ||
#define YB_CONSENSUS_CONSENSUS_FWD_H | ||
|
||
namespace yb { | ||
namespace consensus { | ||
|
||
class PeerProxyFactory; | ||
class PeerMessageQueue; | ||
class VoteRequestPB; | ||
class VoteResponsePB; | ||
|
||
class ConsensusServiceProxy; | ||
typedef std::unique_ptr<ConsensusServiceProxy> ConsensusServiceProxyPtr; | ||
|
||
class PeerProxy; | ||
typedef std::unique_ptr<PeerProxy> PeerProxyPtr; | ||
|
||
} // namespace consensus | ||
} // namespace yb | ||
|
||
#endif // YB_CONSENSUS_CONSENSUS_FWD_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.