chesnokoff commented on code in PR #12301:
URL: https://github.com/apache/ignite/pull/12301#discussion_r2471900251
##########
modules/core/src/test/java/org/apache/ignite/internal/GridReleaseTypeSelfTest.java:
##########
@@ -51,67 +84,406 @@ public class GridReleaseTypeSelfTest extends
GridCommonAbstractTest {
cfg.setDiscoverySpi(discoSpi);
+ DataStorageConfiguration storageCfg = new DataStorageConfiguration();
+
+
storageCfg.getDefaultDataRegionConfiguration().setPersistenceEnabled(persistence);
+
+ cfg.setDataStorageConfiguration(storageCfg);
+
return cfg;
}
/** {@inheritDoc} */
@Override protected void afterTest() throws Exception {
stopAllGrids();
+ cleanPersistenceDir();
}
- /**
- * @throws Exception If failed.
- */
+ /** */
+ @Test
+ public void testTwoConflictVersions() {
Review Comment:
JFY, I have these stats on my machine
<img width="525" height="914" alt="image"
src="https://github.com/user-attachments/assets/dbd3c868-bd40-43b6-8dbc-5bcd613cf179"
/>
In `ServerImpl#spiStop0` we have
``` java
while (spiState != LEFT && timeout > 0) { // timeout == 5_000
try {
mux.wait(timeout);
timeout = U.nanosToMillis(thresholdNanos -
System.nanoTime());
}
catch (InterruptedException ignored) {
Thread.currentThread().interrupt();
break;
}
}
```
Java profilers show that we waste time on mutex waitng. Stop is called from
`IgniteKernal#start` at line 1267. In this place we catch e ==
`IgniteCheckedException: Failed to start manager: GridManagerAdapter
[enabled=true,
name=org.apache.ignite.internal.managers.discovery.GridDiscoveryManager]` and
its cause is our `Remote node rejected due to incompatible version for joining`
--
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]