Skip to content

Conversation

@andreitokar
Copy link
Contributor

No description provided.

Copy link
Contributor

@katzyn katzyn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What happened in TestCompatibility.testConcurrentAutoIncrement()?

FileStore.acceptChunkOccupancyChanges() threw an assertion error with message 2:

assert !mvStore.isOpen() || chunk != null : chunkId;

I think I newer saw such failure in CI tests.

public ArrayList<Constraint> getConstraints() {
return constraints;
public final Iterable<Constraint> getConstraints() {
return constraints == null ? Collections.emptyList() : constraints;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

List.of() for consistency.

@andreitokar
Copy link
Contributor Author

andreitokar commented Jan 3, 2025

I've never seen it either, but now I realized that it is possible under very unfortunate thread scheduling. Pages within chunk may become dead before that chunk even posted to a chunk map. It's all just speculations, because I still unable to reproduce it for real.
This is in no way related to changes in this PR, but I put a fix here - moved publishing to chunk map upstream (earlier).

@andreitokar andreitokar merged commit aff14d4 into h2database:master Jan 3, 2025
2 checks passed
@andreitokar andreitokar deleted the code-cleanup branch January 4, 2025 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants