Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file added FETCH_HEAD
Empty file.
Empty file added fix-stringutils-split
Empty file.
1 change: 0 additions & 1 deletion java/org/apache/catalina/ha/tcp/LocalStrings.properties
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ ReplicationValve.invoke.uri=Invoking replication request on [{0}]
ReplicationValve.nocluster=No cluster configured for this request.
ReplicationValve.resetDeltaRequest=Cluster is standalone: reset Session Request Delta at context [{0}]
ReplicationValve.send.failure=Unable to perform replication request.
ReplicationValve.send.invalid.failure=Unable to send session [id={0}] invalid message over cluster.
ReplicationValve.session.found=Context [{0}]: Found session [{1}] but it isn''t a ClusterSession.
ReplicationValve.session.indicator=Context [{0}]: Primarity of session [{1}] in request attribute [{2}] is [{3}].
ReplicationValve.session.invalid=Context [{0}]: Requested session [{1}] is invalid, removed or not replicated at this node.
Expand Down
11 changes: 9 additions & 2 deletions java/org/apache/catalina/ha/tcp/ReplicationValve.java
Original file line number Diff line number Diff line change
Expand Up @@ -364,13 +364,20 @@ protected void sendReplicationMessage(Request request, long totalstart, boolean
try {
// send invalid sessions
sendInvalidSessions(clusterManager);
} catch (Exception e) {
log.error(sm.getString("ReplicationValve.send.failure"), e);
}
try {
// send replication
sendSessionReplicationMessage(request, clusterManager);
} catch (Exception e) {
log.error(sm.getString("ReplicationValve.send.failure"), e);
}
try {
if (isCrossContext) {
sendCrossContextSession();
}
} catch (Exception e) {
// FIXME we have a lot of sends, but the trouble with one node stops the correct replication to other nodes!
log.error(sm.getString("ReplicationValve.send.failure"), e);
} finally {
if (doStatistics()) {
Expand Down Expand Up @@ -499,7 +506,7 @@ protected void sendInvalidSessions(ClusterManager manager) {
try {
send(manager, invalidId);
} catch (Exception e) {
log.error(sm.getString("ReplicationValve.send.invalid.failure", invalidId), e);
log.error(sm.getString("ReplicationValve.send.failure"), e);
}
}
}
Expand Down
3 changes: 2 additions & 1 deletion test/org/apache/tomcat/util/buf/TestStringUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package org.apache.tomcat.util.buf;

import java.util.Collection;
Expand Down Expand Up @@ -74,4 +75,4 @@ public void testNullIterableCharFunctionStringBuilder() {
StringUtils.join((Iterable<String>) null, ',', null, sb);
Assert.assertEquals("", sb.toString());
}
}
}