nizhikov commented on code in PR #12339:
URL: https://github.com/apache/ignite/pull/12339#discussion_r2624167859
##########
modules/core/src/main/java/org/apache/ignite/spi/communication/tcp/internal/GridNioServerWrapper.java:
##########
@@ -1250,6 +1259,33 @@ private void checkClientQueueSize(GridNioSession ses,
int msgQueueSize) {
}
}
+ /**
+ * Checks node message queue size and produce warning if message queue
size exceeds the configured threshold.
+ *
+ * @param ses Node communication session.
+ * @param msgQueueSize Message queue size.
+ */
+ private void checkNodeQueueSize(GridNioSession ses, int msgQueueSize) {
+ if (cfg.messageQueueWarningSize() > 0 && msgQueueSize >
cfg.messageQueueWarningSize()) {
+ long lastWarnTs = lastMsqQueueSizeWarningTs.get();
+
+ if (U.currentTimeMillis() > lastWarnTs +
MIN_MSG_QUEUE_SIZE_WARN_FREQUENCY) {
+ if (lastMsqQueueSizeWarningTs.compareAndSet(lastWarnTs,
U.currentTimeMillis())) {
+ ConnectionKey id = ses.meta(CONN_IDX_META);
+ if (id != null) {
+ String msg = "Outbound message queue size for node
exceeded configured " +
Review Comment:
nit: msg can be inlined
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]