Skip to content

Commit

Permalink
Merge branch 'feature/vertex-store-overflow-mitigations' into feature…
Browse files Browse the repository at this point in the history
…/slow-down-consensus-when-vertex-store-full
  • Loading branch information
LukasGasior1 committed Feb 18, 2025
2 parents 3271811 + a9751ea commit c3dc3b7
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,7 @@ public void vertex_store_should_not_insert_a_vertex_when_size_limit_is_reached()
// And the size should be close to the limit
final var size = vertexStoreAdapter.getCurrentSerializedSizeBytes();
assertTrue(
size < config.maxSerializedSizeBytes() && size + 5000 > config.maxSerializedSizeBytes());
size < config.maxSerializedSizeBytes() + 500
&& size > config.maxSerializedSizeBytes() - 500);
}
}

0 comments on commit c3dc3b7

Please sign in to comment.