Skip to content

Commit

Permalink
Suppress startup message on test cluster
Browse files Browse the repository at this point in the history
Also removes apache configuration file
jessestimpson committed Mar 2, 2024
1 parent 3384567 commit f389f35
Showing 2 changed files with 5 additions and 20 deletions.
18 changes: 0 additions & 18 deletions .asf.yaml

This file was deleted.

7 changes: 5 additions & 2 deletions src/erlfdb_util.erl
Original file line number Diff line number Diff line change
@@ -38,7 +38,7 @@

% Some systems are unable to compute the shared machine id without root,
% so we'll provide a hardcoded machine id for our managed fdbserver
-define(TEST_CLUSTER_MACHINE_ID, <<?MODULE_STRING>>).
-define(TEST_CLUSTER_MACHINE_ID, ?MODULE_STRING).
-define(TEST_TENANT_NAME, <<?MODULE_STRING, ".test">>).

get_test_db() ->
@@ -194,7 +194,7 @@ init_test_cluster_int(Options) ->
<<"-L">>,
Dir,
<<"-i">>,
?TEST_CLUSTER_MACHINE_ID
<<?TEST_CLUSTER_MACHINE_ID>>
],
FDBPortOpts = [{args, FDBPortArgs}],
FDBServer = erlang:open_port(FDBPortName, FDBPortOpts),
@@ -299,6 +299,9 @@ port_loop(FDBServer, Monitor) ->
receive
close ->
ok;
{FDBServer, {data, "ZoneId set to " ?TEST_CLUSTER_MACHINE_ID ", dcId to [not set]\n"}} ->
% Silence start message
port_loop(FDBServer, Monitor);
{FDBServer, {data, "FDBD joined cluster.\n"}} ->
% Silence start message
port_loop(FDBServer, Monitor);

0 comments on commit f389f35

Please sign in to comment.