You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by "CosmosNi (via GitHub)" <gi...@apache.org> on 2026/02/05 05:36:36 UTC
[PR] [Improve][connector-elasticsearch-v2] Add slicing support and e2e coverage for Elasticsearch source [seatunnel]
CosmosNi opened a new pull request, #10454:
URL: https://github.com/apache/seatunnel/pull/10454
This change adds configurable slicing to the Elasticsearch source (slice_max), enabling parallel reads for Scroll and PIT while keeping SQL mode unchanged. It propagates slice metadata through splits, injects slice parameters into Scroll/PIT requests, and logs active slice info at runtime. E2E coverage is extended with PIT/Scroll slicing scenarios, and docs are updated to describe the new option and examples.
<!--
Thank you for contributing to SeaTunnel! Please make sure that your code changes
are covered with tests. And in case of new features or big changes
remember to adjust the documentation.
Feel free to ping committers for the review!
## Contribution Checklist
- Make sure that the pull request corresponds to a [GITHUB issue](https://github.com/apache/seatunnel/issues).
- Name the pull request in the form "[Feature] [component] Title of the pull request", where *Feature* can be replaced by `Hotfix`, `Bug`, etc.
- Minor fixes should be named following this pattern: `[hotfix] [docs] Fix typo in README.md doc`.
-->
### Purpose of this pull request
<!-- Describe the purpose of this pull request. For example: This pull request adds checkstyle plugin.-->
### Does this PR introduce _any_ user-facing change?
<!--
Note that it means *any* user-facing change including all aspects such as the documentation fix.
If yes, please clarify the previous behavior and the change this PR proposes - provide the console output, description and/or an example to show the behavior difference if possible.
If possible, please also clarify if this is a user-facing change compared to the released SeaTunnel versions or within the unreleased branches such as dev.
If no, write 'No'.
If you are adding/modifying connector documents, please follow our new specifications: https://github.com/apache/seatunnel/issues/4544.
-->
### How was this patch tested?
<!--
If tests were added, say they were added here. Please make sure to add some test cases that check the changes thoroughly including negative and positive cases if possible.
If it was tested in a way different from regular unit tests, please clarify how you tested step by step, ideally copy and paste-able, so that other reviewers can test and check, and descendants can verify in the future.
If tests were not added, please describe why they were not added and/or why it was difficult to add.
If you are adding E2E test cases, maybe refer to https://github.com/apache/seatunnel/blob/dev/seatunnel-e2e/seatunnel-connector-v2-e2e/connector-cdc-mysql-e2e/src/test/resources/mysqlcdc_to_mysql.conf, here is a good example.
-->
### Check list
* [ ] If any new Jar binary package adding in your PR, please add License Notice according
[New License Guide](https://github.com/apache/seatunnel/blob/dev/docs/en/contribution/new-license.md)
* [ ] If necessary, please update the documentation to describe the new feature. https://github.com/apache/seatunnel/tree/dev/docs
* [ ] If necessary, please update `incompatible-changes.md` to describe the incompatibility caused by this PR.
* [ ] If you are contributing the connector code, please check that the following files are updated:
1. Update [plugin-mapping.properties](https://github.com/apache/seatunnel/blob/dev/plugin-mapping.properties) and add new connector information in it
2. Update the pom file of [seatunnel-dist](https://github.com/apache/seatunnel/blob/dev/seatunnel-dist/pom.xml)
3. Add ci label in [label-scope-conf](https://github.com/apache/seatunnel/blob/dev/.github/workflows/labeler/label-scope-conf.yml)
4. Add e2e testcase in [seatunnel-e2e](https://github.com/apache/seatunnel/tree/dev/seatunnel-e2e/seatunnel-connector-v2-e2e/)
5. Update connector [plugin_config](https://github.com/apache/seatunnel/blob/dev/config/plugin_config)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Improve][connector-elasticsearch-v2] Add slicing support and e2e coverage for Elasticsearch source [seatunnel]
Posted by "CosmosNi (via GitHub)" <gi...@apache.org>.
CosmosNi commented on PR #10454:
URL: https://github.com/apache/seatunnel/pull/10454#issuecomment-4429258897
@DanielLeens PTAL
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Improve][connector-elasticsearch-v2] Add slicing support and e2e coverage for Elasticsearch source [seatunnel]
Posted by "DanielLeens (via GitHub)" <gi...@apache.org>.
DanielLeens commented on PR #10454:
URL: https://github.com/apache/seatunnel/pull/10454#issuecomment-4563348247
Re-posting this under Daniel because the previous submission from my environment was attributed incorrectly. Please treat this Daniel-authored comment as the authoritative maintainer note for the current head.
Thanks for the update. I re-reviewed the latest head from scratch and traced the actual PIT/scroll slicing path again from `ElasticsearchSourceSplitEnumerator` into `ElasticsearchSourceReader`.
The main blocker from my previous review is fixed on the current head. The reader now creates the PIT lazily when a split actually starts reading, so the queued-slice path no longer starts the PIT lifetime too early in the enumerator. I also checked the new queued-slice E2E path and the scroll-slice coverage, and they now hit the scenario that was previously missing.
Runtime path I checked:
```text
Split planning
-> ElasticsearchSourceSplitEnumerator.getElasticsearchSplit(...)
-> create one split per slice by slice_id / slice_max
-> no pre-created shared PIT is injected here anymore
Reader path
-> ElasticsearchSourceReader.searchWithPointInTime(...)
-> if the split has no PIT yet, create PIT lazily at first read
-> reuse that PIT only within the active reader path
-> ElasticsearchSourceReader.searchByScroll(...)
-> scroll slicing now passes slice_id / slice_max too
Regression coverage
-> ElasticsearchIT.testElasticsearchWithPITSliceQueued(...)
-> slice_max(4) > parallelism(2) now exercises queued slices explicitly
```
Findings:
- I do not see a reopened source-level blocker on the latest head.
- The earlier shared-PIT lifetime problem is fixed.
- The queued-slice E2E that was missing before is present on the current head.
Test stability:
- Rating: Stable
- Why: the new PIT coverage now includes the delayed-slice path that mattered for the previous blocker, and I did not see a new flaky pattern introduced in the added test methods themselves.
### Conclusion: can merge
Blocking items:
- None from my source-level review on the latest head.
- Please still let the current GitHub `Build` run finish green before merge.
Non-blocking suggestions:
- None beyond keeping an eye on CI for environment-only failures.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Improve][connector-elasticsearch-v2] Add slicing support and e2e coverage for Elasticsearch source [seatunnel]
Posted by "davidzollo (via GitHub)" <gi...@apache.org>.
davidzollo merged PR #10454:
URL: https://github.com/apache/seatunnel/pull/10454
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Improve][connector-elasticsearch-v2] Add slicing support and e2e coverage for Elasticsearch source [seatunnel]
Posted by "CosmosNi (via GitHub)" <gi...@apache.org>.
CosmosNi commented on PR #10454:
URL: https://github.com/apache/seatunnel/pull/10454#issuecomment-4429253521
@dybyte PTAL
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Improve][connector-elasticsearch-v2] Add slicing support and e2e coverage for Elasticsearch source [seatunnel]
Posted by "DanielCarter-stack (via GitHub)" <gi...@apache.org>.
DanielCarter-stack commented on PR #10454:
URL: https://github.com/apache/seatunnel/pull/10454#issuecomment-3853123334
<!-- code-pr-reviewer -->
<!-- cpr:pr_reply_v2_parts {"group": "apache/seatunnel#10454", "part": 1, "total": 1} -->
### Issue 1: Shared PIT Resource Leak After Checkpoint Recovery
**Location**: `ElasticsearchSourceSplitEnumerator.java:61, 70-84`
**Related Context**:
- State serialization: `ElasticsearchSourceState.java:29-33`
- State deserialization: `ElasticsearchSourceSplitEnumerator.java:70-84` (constructor)
- PIT cleanup: `ElasticsearchSourceSplitEnumerator.java:192-200` (close method)
**Problem Description**:
`sharedPitIds` Map is a newly introduced instance variable used to track shared PIT IDs. However, during checkpoint recovery, the constructor only restores `pendingSplit` and does not restore `sharedPitIds`. This leads to:
1. **PIT ID tracking lost**: PIT IDs created before recovery are not in `sharedPitIds`
2. **Resource leak**: `close()` method cannot delete these PITs
3. **Resource accumulation**: In scenarios with frequent checkpoints, a large number of PITs will not be cleaned up
**Potential Risks**:
- During frequent checkpoints in production environments, a large number of uncleaned PITs will accumulate on the Elasticsearch cluster
- Occupies ES cluster memory resources
- May trigger ES PIT quantity limits (default limits are relatively loose, but still need to be considered)
**Impact Scope**:
- **Direct Impact**: All jobs using PIT + slicing with checkpoint enabled
- **Indirect Impact**: Memory and resource management of the Elasticsearch cluster
- **Affected Scope**: Single Connector (Elasticsearch Source)
**Severity**: **MAJOR**
**Improvement Suggestion**:
```java
// Option 1: Extract PIT ID from restored split
public ElasticsearchSourceSplitEnumerator(
SourceSplitEnumerator.Context<ElasticsearchSourceSplit> context,
ElasticsearchSourceState sourceState,
ReadonlyConfig connConfig,
List<ElasticsearchConfig> elasticsearchConfigs) {
this.context = context;
this.connConfig = connConfig;
this.pendingSplit = new HashMap<>();
this.sharedPitIds = new HashMap<>();
this.shouldEnumerate = sourceState == null;
if (sourceState != null) {
this.shouldEnumerate = sourceState.isShouldEnumerate();
this.pendingSplit.putAll(sourceState.getPendingSplit());
// Restore sharedPitIds
for (List<ElasticsearchSourceSplit> splits : sourceState.getPendingSplit().values()) {
for (ElasticsearchSourceSplit split : splits) {
String pitId = split.getElasticsearchConfig().getPitId();
if (StringUtils.isNotEmpty(pitId)) {
String indexName = split.getElasticsearchConfig().getIndex();
sharedPitIds.putIfAbsent(indexName, pitId);
}
}
}
}
this.elasticsearchConfigs = elasticsearchConfigs;
}
// Option 2: Explicitly save sharedPitIds in ElasticsearchSourceState
// Need to modify ElasticsearchSourceState class
```
**Rationale**: Ensure that shared PIT resources can be properly tracked and cleaned up after checkpoint recovery.
---
### Issue 2: ElasticsearchConfig Missing serialVersionUID
**Location**: `ElasticsearchConfig.java:33`
**Related Context**:
- Implements `Serializable` interface
- Serialized in `ElasticsearchSourceSplit`
- Other serializable classes have serialVersionUID
**Problem Description**:
`ElasticsearchConfig` implementsthe `Serializable` interface and will be serialized into checkpoints, but does not declare `serialVersionUID`. This causes the JVM to automatically generate UID, posing a risk of cross-version deserialization failure.
**Potential Risks**:
- After upgrading SeaTunnel version, old checkpoints may not be recoverable
- Different JVM implementations may generate different UIDs
**Impact Scope**:
- **Direct Impact**: All jobs using Elasticsearch Source with checkpoint enabled
- **Indirect Impact**: State recovery during version upgrades
- **Affected Scope**: Single Connector
**Severity**: **MAJOR**
**Improvement Suggestion**:
```java
@Getter
@Setter
public class ElasticsearchConfig implements Serializable {
private static final long serialVersionUID = 1L; // Add serialVersionUID
private String index;
// ... other fields
}
```
**Rationale**: Explicitly declaring serialVersionUID ensures serialization compatibility and avoids cross-version recovery failures.
---
### Issue 3: Duplicate SQL Mode Validation Logic
**Locations**:
- `ElasticsearchSource.java:184-188`
- `ElasticsearchSourceSplitEnumerator.java:156-159`
**Related Context**:
- Both places have the same `if (SearchTypeEnum.SQL.equals(...) && sliceMax > 1)` validation
- Both log the same warning messages
**Problem Description**:
The same validation logic is duplicated in two places, increasing maintenance costs and causing duplicate warning logs.
**Potential Risks**:
- Code redundancy, high maintenance cost
- Future modifications may miss one location
- Poor user experience (duplicate logs)
**Impact Scope**:
- **Direct Impact**: Code maintainability
- **Indirect Impact**: None
- **Affected Scope**: Single Connector
**Severity**: **MINOR**
**Improvement Suggestion**:
```java
// Option 1: Validate only once in ElasticsearchSource (recommended)
// Keep validation in ElasticsearchSource.java
// Remove validation in ElasticsearchSourceSplitEnumerator.java, directly use elasticsearchConfig.getSliceMax()
// Option 2: Extract as static utility method
public static int validateSliceMaxForSearchType(SearchTypeEnum searchType, int sliceMax) {
if (SearchTypeEnum.SQL.equals(searchType) && sliceMax > 1) {
log.warn("SQL search_type does not support slicing. slice_max will be ignored.");
return 1;
}
return Math.max(1, sliceMax);
}
```
**Rationale**: Eliminate code redundancy and improve maintainability.
---
### Issue 4: E2E Test Data Insufficient to Verify Data Correctness
**Locations**:
- `ElasticsearchIT.java:690` (generateTestDataSet1)
- `ElasticsearchIT.java:428-447` (test method)
**Related Context**:
- Test generates 100 data records
- `slice_max = 2`
- Only validates set equality, not data uniqueness
**Problem Description**:
Current E2E tests have the following deficiencies:
1. **Data volume too small**: 100 records are too few for 2 slices, insufficient to fully verify slice logic
2. **No uniqueness validation**: If slice logic has bugs causing data duplication, current `assertIterableEquals` cannot detect it
3. **No data distribution validation**: Does not verify whether the amount of data read by each slice is reasonable
4. **Missing checkpoint tests**: Does not test checkpoint recovery scenarios
**Potential Risks**:
- Slice implementation has bugs (e.g., data duplication, loss) but tests cannot detect them
- Data quality issues in production environments
**Impact Scope**:
- **Direct Impact**: Test coverage
- **Indirect Impact**: Production data quality
- **Affected Scope**: Single Connector
**Severity**: **MAJOR**
**Improvement Suggestion**:
```java
@TestTemplate
public void testElasticsearchWithPITSlice(TestContainer container)
throws IOException, InterruptedException {
Container.ExecResult execResult =
container.executeJob("/elasticsearch/elasticsearch_source_with_pit_slice.conf");
Assertions.assertEquals(0, execResult.getExitCode());
List<String> sinkData = readSinkDataWithSchema("st_index_pit_slice");
// 1. Verify data uniqueness (newly added)
Set<String> uniqueData = new HashSet<>(sinkData);
Assertions.assertEquals(sinkData.size(), uniqueData.size(),
"Data should not have duplicates");
// 2. Verify data integrity (existing)
Assertions.assertIterableEquals(mapTestDatasetForDSL(), sinkData);
// 3. Verify data volume (newly added)
int expectedCount = (int) mapTestDatasetForDSL().stream().count();
Assertions.assertEquals(expectedCount, sinkData.size(),
"Data count should match expected");
}
// Increase test data volume (in generateTestDataSet1)
for (int i = 0; i < 1000; i++) { // Increase from 100 to 1000
// ...
}
```
**Rationale**: Ensure the correctness of slice functionality and avoid data duplication or loss issues in production environments.
---
### Issue 5: Missing Fallback Handling for PIT Creation Failure
**Location**: `ElasticsearchSourceSplitEnumerator.java:167-172`
**Related Context**:
```java
sharedPitId = sharedPitIds.computeIfAbsent(
indexName,
key -> esRestClient.createPointInTime(
key, elasticsearchConfig.getPitKeepAlive()));
```
**Problem Description**:
If `createPointInTime()` fails due to network issues, ES cluster anomalies, or other reasons, it will cause:
1. Entire split enumeration failure
2. Job crash
3. Unable to fall back to non-sliced mode
**Potential Risks**:
- Network fluctuations or temporary ES unavailability cause job failures
- Reduced system availability
**Impact Scope**:
- **Direct Impact**: Jobs using PIT + slicing
- **Indirect Impact**: Job stability
- **Affected Scope**: Single Connector
**Severity**: **MINOR**
**Improvement Suggestion**:
```java
if (useSharedPit) {
try {
sharedPitId = sharedPitIds.computeIfAbsent(
indexName,
key -> {
try {
return esRestClient.createPointInTime(
key, elasticsearchConfig.getPitKeepAlive());
} catch (Exception e) {
log.warn("Failed to create shared PIT for index: {}, fallback to sliceMax=1. Error: {}",
key, e.getMessage());
return null;
}
});
// If PIT creation fails, fall back to not using slices
if (sharedPitId == null) {
sliceMax = 1;
useSharedPit = false;
}
} catch (Exception e) {
log.warn("Exception during PIT creation for index: {}, fallback to sliceMax=1",
indexName, e);
sliceMax = 1;
useSharedPit = false;
}
}
```
**Rationale**: Improve system fault tolerance and availability.
---
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Improve][connector-elasticsearch-v2] Add slicing support and e2e coverage for Elasticsearch source [seatunnel]
Posted by "CosmosNi (via GitHub)" <gi...@apache.org>.
CosmosNi commented on PR #10454:
URL: https://github.com/apache/seatunnel/pull/10454#issuecomment-4036674808
@zhangshenghang @Hisoka-X PTAL
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Improve][connector-elasticsearch-v2] Add slicing support and e2e coverage for Elasticsearch source [seatunnel]
Posted by "chl-wxp (via GitHub)" <gi...@apache.org>.
chl-wxp commented on code in PR #10454:
URL: https://github.com/apache/seatunnel/pull/10454#discussion_r2792375063
##########
docs/en/connectors/source/Elasticsearch.md:
##########
@@ -256,6 +257,11 @@ runtime_fields = [
- Only Painless scripts are supported
- May be slower than indexed fields for large-scale queries
+### slice_max [int]
Review Comment:
Please indicate which Elasticsearch versions support this parameter
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Improve][connector-elasticsearch-v2] Add slicing support and e2e coverage for Elasticsearch source [seatunnel]
Posted by "DanielLeens (via GitHub)" <gi...@apache.org>.
DanielLeens commented on PR #10454:
URL: https://github.com/apache/seatunnel/pull/10454#issuecomment-4430360153
Thanks for the ping. I re-checked the current head, and there is still no new code after my last pass, so my previous conclusion stays the same from my side: I do not see a new blocking issue in the current revision.
The one thing I would still keep an eye on is recovery coverage around shared PIT lifetime, since the current tests mainly exercise the steady-state read path. If you push another code update later, I am happy to re-review the latest head again.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Improve][connector-elasticsearch-v2] Add slicing support and e2e coverage for Elasticsearch source [seatunnel]
Posted by "DanielLeens (via GitHub)" <gi...@apache.org>.
DanielLeens commented on PR #10454:
URL: https://github.com/apache/seatunnel/pull/10454#issuecomment-4192543364
I fetched this PR locally and traced the split enumerator -> reader flow for both Scroll and PIT slicing. The current revision looks directionally sound: slice metadata is carried into each split, SQL mode explicitly disables slicing, shared PIT IDs are only reader-owned when created locally, and the new E2E cases cover both scroll and PIT slice reads. I do not see a blocking issue in the current revision.
The remaining risk I would keep an eye on is failover / recovery coverage around shared PIT lifetime, since the new tests focus on steady-state reads rather than recovery semantics.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Improve][connector-elasticsearch-v2] Add slicing support and e2e coverage for Elasticsearch source [seatunnel]
Posted by "CosmosNi (via GitHub)" <gi...@apache.org>.
CosmosNi commented on PR #10454:
URL: https://github.com/apache/seatunnel/pull/10454#issuecomment-3874739866
@zhangshenghang PTAL
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Improve][connector-elasticsearch-v2] Add slicing support and e2e coverage for Elasticsearch source [seatunnel]
Posted by "CosmosNi (via GitHub)" <gi...@apache.org>.
CosmosNi commented on PR #10454:
URL: https://github.com/apache/seatunnel/pull/10454#issuecomment-4088062348
@corgy-w CC
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Improve][connector-elasticsearch-v2] Add slicing support and e2e coverage for Elasticsearch source [seatunnel]
Posted by "CosmosNi (via GitHub)" <gi...@apache.org>.
CosmosNi commented on PR #10454:
URL: https://github.com/apache/seatunnel/pull/10454#issuecomment-3874739405
@zhangshenghang PTAL
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Improve][connector-elasticsearch-v2] Add slicing support and e2e coverage for Elasticsearch source [seatunnel]
Posted by "davidzollo (via GitHub)" <gi...@apache.org>.
davidzollo commented on PR #10454:
URL: https://github.com/apache/seatunnel/pull/10454#issuecomment-4563338663
Re-posting this under Daniel because the previous review submission from my environment was attributed incorrectly. Please treat this Daniel-authored comment as the authoritative maintainer review for the current head.
Thanks for the update. I re-reviewed the latest head from scratch and traced the actual PIT/scroll slicing path again from `ElasticsearchSourceSplitEnumerator` into `ElasticsearchSourceReader`.
The main blocker from my previous review is fixed on the current head. The reader now creates the PIT lazily when a split actually starts reading, so the queued-slice path no longer starts the PIT lifetime too early in the enumerator. I also checked the new queued-slice E2E path and the scroll-slice coverage, and they now hit the scenario that was previously missing.
Runtime path I checked:
```text
Split planning
-> ElasticsearchSourceSplitEnumerator.getElasticsearchSplit(...)
-> create one split per slice by slice_id / slice_max
-> no pre-created shared PIT is injected here anymore
Reader path
-> ElasticsearchSourceReader.searchWithPointInTime(...)
-> if the split has no PIT yet, create PIT lazily at first read
-> reuse that PIT only within the active reader path
-> ElasticsearchSourceReader.searchByScroll(...)
-> scroll slicing now passes slice_id / slice_max too
Regression coverage
-> ElasticsearchIT.testElasticsearchWithPITSliceQueued(...)
-> slice_max(4) > parallelism(2) now exercises queued slices explicitly
```
Findings:
- I do not see a reopened source-level blocker on the latest head.
- The earlier shared-PIT lifetime problem is fixed.
- The queued-slice E2E that was missing before is present on the current head.
Test stability:
- Rating: Stable
- Why: the new PIT coverage now includes the delayed-slice path that mattered for the previous blocker, and I did not see a new flaky pattern introduced in the added test methods themselves.
### Conclusion: can merge
Blocking items:
- None from my source-level review on the latest head.
- Please still let the current GitHub `Build` run finish green before merge.
Non-blocking suggestions:
- None beyond keeping an eye on CI for environment-only failures.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org