forked from apache/kudu
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use dynamic bind address for internal + external mini clusters
This technique helps avoid port conflicts. It assigns a unique loopback IP, based on pid and per-cluster numbering, to every InternalMiniCluster or ExternalMiniCluster component (including masters and tablet servers). Changes: 1. Apply the "dynamic bind address" technique to internal mini clusters (previously it was only used for external mini clusters). 2. Apply it to masters (previously it was only used for tablet servers). I will post a follow-up patch to remove some of the CMakeLists.txt limitations related to port conflicts, although we may need to put some back due to lack of macOS support for unique loopback addresses. I had to refactor a few host-related APIs to do this in a relatively non-hacky manner. All tests still pass (and should more often). Additional changes: * Move BindMode to MiniCluster base class. * Fix a few brittle tests that started failing because of this change. Change-Id: I35eff9fbf5ccf8822cfe061673bc36598dff56f0 Reviewed-on: http://gerrit.cloudera.org:8080/7274 Tested-by: Mike Percy <[email protected]> Reviewed-by: Todd Lipcon <[email protected]>
- Loading branch information
1 parent
42a0749
commit e675873
Showing
20 changed files
with
316 additions
and
192 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
Oops, something went wrong.