Skip to content

Commit

Permalink
Ensure that failed places prevent server startup only when configured…
Browse files Browse the repository at this point in the history
… to do so.
  • Loading branch information
drivenflywheel committed Nov 9, 2023
1 parent 5794d03 commit c13889b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/main/java/emissary/admin/Startup.java
Original file line number Diff line number Diff line change
Expand Up @@ -515,9 +515,11 @@ public boolean verifyNoInvisiblePlacesStarted() {
try {
IDirectoryPlace dirPlace = DirectoryPlace.lookup();
List<DirectoryEntry> dirEntries = dirPlace.getEntries();
for (DirectoryEntry currentDir : dirEntries) {
// add place names of active directories
activeDirPlaces.add(currentDir.getLocalPlace().getPlaceName());
for (DirectoryEntry entry : dirEntries) {
// add place names of active places. getLocalPlace() returns null for any place that failed to start
if (entry.getLocalPlace() != null) {
activeDirPlaces.add(entry.getLocalPlace().getPlaceName());
}
}

// remove DirectoryPlace from activeDirPlaces. DirectoryPlace is started up automatically in order to
Expand Down

0 comments on commit c13889b

Please sign in to comment.