@@ -805,7 +805,7 @@ public synchronized WriteBatcher withForestConfig(ForestConfiguration forestConf
805
805
removedHostInfos .put (hostInfo .hostName , hostInfo );
806
806
}
807
807
}
808
- logger .info ("(withForestConfig) Using {} hosts with forests for \" {}\" " , hosts .keySet (), forests [0 ].getDatabaseName ());
808
+ logger .info ("(withForestConfig) Using forests on {} hosts for \" {}\" " , hosts .keySet (), forests [0 ].getDatabaseName ());
809
809
// initialize a DatabaseClient for each host
810
810
HostInfo [] newHostInfos = new HostInfo [hosts .size ()];
811
811
int i =0 ;
@@ -819,8 +819,10 @@ public synchronized WriteBatcher withForestConfig(ForestConfiguration forestConf
819
819
Forest forest = hosts .get (host );
820
820
// this is a host-specific client (no DatabaseClient is actually forest-specific)
821
821
newHostInfos [i ].client = getMoveMgr ().getForestClient (forest );
822
- logger .info ("Adding DatabaseClient on port {} for host \" {}\" to the rotation" ,
823
- newHostInfos [i ].client .getPort (), host );
822
+ if (getMoveMgr ().getConnectionType () == DatabaseClient .ConnectionType .DIRECT ) {
823
+ logger .info ("Adding DatabaseClient on port {} for host \" {}\" to the rotation" ,
824
+ newHostInfos [i ].client .getPort (), host );
825
+ }
824
826
}
825
827
i ++;
826
828
}
@@ -1052,7 +1054,7 @@ public void run() {
1052
1054
transaction = transactionInfo .transaction ;
1053
1055
transactionInfo .written .set (true );
1054
1056
}
1055
- logger .trace ("begin write batch {} to host \" {}\" " , writeSet .getBatchNumber (), writeSet .getClient ().getHost ());
1057
+ logger .trace ("begin write batch {} to forest on host \" {}\" " , writeSet .getBatchNumber (), writeSet .getClient ().getHost ());
1056
1058
if ( writeSet .getTemporalCollection () == null ) {
1057
1059
writeSet .getClient ().newDocumentManager ().write (
1058
1060
writeSet .getWriteSet (), writeSet .getTransform (), transaction
@@ -1077,7 +1079,7 @@ public void run() {
1077
1079
throw new DataMovementException ("Failed to write because transaction already underwent commit or rollback" , null );
1078
1080
}
1079
1081
} catch (Throwable t ) {
1080
- logger .trace ("failed batch sent to host \" {}\" " , writeSet .getClient ().getHost ());
1082
+ logger .trace ("failed batch sent to forest on host \" {}\" " , writeSet .getClient ().getHost ());
1081
1083
Consumer <Throwable > onFailure = writeSet .getOnFailure ();
1082
1084
if ( onFailure != null ) {
1083
1085
onFailure .accept (t );
0 commit comments