Skip to content

IGNITE-16657 [Native Persistence 3.0] Implement partitions chunks merger#972

Merged
SammyVimes merged 14 commits intoapache:mainfrom
gridgain:ignite-16657
Aug 4, 2022
Merged

IGNITE-16657 [Native Persistence 3.0] Implement partitions chunks merger#972
SammyVimes merged 14 commits intoapache:mainfrom
gridgain:ignite-16657

Conversation

@tkalkirill
Copy link
Contributor

threadPoolExecutor.execute(merger);
} catch (RejectedExecutionException ignore) {
// Run the task synchronously.
merger.run();
Copy link
Contributor

Choose a reason for hiding this comment

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

Why should it throw this exception?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is a copy of the code from 2.0, the rejection can be if it was not possible to add a worker due to a stop or in the process of shutting down.

In theory, we won’t have this, because at the stop of the Compactor we say that we are canceling, we wait for all threads to complete and only then shutdown the thread pool.

I will remove this code here and at the Checkpointer.

Copy link
Contributor

@SammyVimes SammyVimes left a comment

Choose a reason for hiding this comment

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

LGTM

@SammyVimes SammyVimes merged commit d05837a into apache:main Aug 4, 2022
@SammyVimes SammyVimes deleted the ignite-16657 branch August 4, 2022 09:14
isapego pushed a commit to isapego/ignite-3 that referenced this pull request Dec 26, 2024
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