[FLINK-39900] [forst] Add configuration option for setting the number of ForSt transfer threads - #28373
Conversation
…n for setting a transfer thread count
…g/apache/flink/state/forst/snapshot/ForStIncrementalSnapshotStrategyTest.java Co-authored-by: Purushottam Sinha <sinhapurushottam911@gmail.com>
spuru9
left a comment
There was a problem hiding this comment.
LGTM
Can you run mvn spotless:apply
| <tr> | ||
| <td><h5>state.backend.forst.checkpoint.transfer.thread.num</h5></td> | ||
| <td style="word-wrap: break-word;">4</td> | ||
| <td>Integer</td> |
There was a problem hiding this comment.
This we should document the default value of 4. Also there should be documentation to describe bet practises around when this new option should be used and any side effects if it is incorrectly configured.
There was a problem hiding this comment.
Thanks, I updated this to be more explicit.
|
@Zakelly , @spuru9 , @francis-a this commit broke the build |
|
here it is the fix #28859 |
|
everything is much worse I'm going just revert the problem commit (fyi: @spuru9 @Zakelly @francis-a ) UPD: So I don't understand why this PR then was merged ? Please do NOT merge code which does NOT pass CI tests first |
|
@snuyanzin oh sorry, my fault. I was interrupted halfway through the review and mistakenly thought the CI for this PR had already passed. Thanks for the revert. |
|
@snuyanzin @Zakelly sorry about that, that is on me for not noticing the failing test. Thanks for taking care of the revert. I will re-open this change set with the needed test fixes. |
|
The new PR is open here: #28897 The test failure caught a real issue with the new property missing from the config merge set in |
What is the purpose of the change
Currently the number of threads used by the
ForStStateDataTransferclass is hardcoded to 4. This PR proposes a newstate.backend.forst.checkpoint.transfer.thread.numconfiguration option that allows for providing a custom thread number value.Brief change log
state.backend.forst.checkpoint.transfer.thread.numconfig optionForStResourceContainerwith a getter to return this option valueForStStateDataTransferto provide the new config option value instead of the hardcoded default of 4Verifying this change
This change is a trivial rework / code cleanup without any test coverage.
Does this pull request potentially affect one of the following parts:
@Public(Evolving): / noDocumentation
ConfigOptionclass