Skip to content

Commit

Permalink
Merge pull request #8687 from Mats-SX/remoteprojprogress
Browse files Browse the repository at this point in the history
Fix remote projection progress logging
  • Loading branch information
FlorentinD authored Feb 9, 2024
2 parents c4afb15 + 9fabe07 commit 60fd53d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,17 @@ public final class Extractors {

private Extractors() {}

public static ThrowingExtractor<String, String, RuntimeException> removingServerAddress() {
return Extractors::removingServerAddress;
}

private static String removingServerAddress(String message) {
if (message.contains("localhost:")) {
return removingServerAddress(message.replaceFirst("localhost:\\d+", "<address>"));
}
return message;
}

public static ThrowingExtractor<String, String, RuntimeException> removingThreadId() {
return Extractors::removeThreadId;
}
Expand Down
4 changes: 4 additions & 0 deletions core/src/main/java/org/neo4j/gds/api/DatabaseInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ static DatabaseInfo of(DatabaseId databaseId, DatabaseLocation databaseLocation)
return ImmutableDatabaseInfo.of(databaseId, databaseLocation, Optional.empty());
}

static DatabaseInfo of(DatabaseId databaseId, DatabaseLocation databaseLocation, DatabaseId remoteDatabaseId) {
return ImmutableDatabaseInfo.of(databaseId, databaseLocation, remoteDatabaseId);
}

DatabaseId databaseId();

DatabaseLocation databaseLocation();
Expand Down

0 comments on commit 60fd53d

Please sign in to comment.