MVCC: IgniteCacheContinuousQueryBackupQueueTest is flacky. This closes
@@ -169,8 +169,11 @@ public class IgniteCacheContinuousQueryBackupQueueTest extends GridCommonAbstrac
int size = backupQueueSize();
- assertTrue(size > 0);
- assertTrue(size <= BACKUP_ACK_THRESHOLD * QUERY_COUNT * /* partition count */1024);
+ // Backup queues total size should not exceed one entry per query per partition. This is because
+ // {@link CacheContinuousQueryEventBuffer} is optimized to store filtered events and
+ // used in this test {@link AlwaysFalseFilterFactory} always declines updates.
+ // Zero total size is possible when backup queue is cleaned by timeout.
+ assertTrue(size <= QUERY_COUNT * /* partition count */1024);
for (QueryCursor qry : qryCursors)
qry.close();
