Fix output chunk end property in ChunkProcessor implementations
Resolves #4560
This commit is contained in:
committed by
Mahmoud Ben Hassine
parent
e785391915
commit
a4a8ab7aaa
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2006-2023 the original author or authors.
|
||||
* Copyright 2006-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -306,7 +306,9 @@ public class FaultTolerantChunkProcessor<I, O> extends SimpleChunkProcessor<I, O
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (inputs.isEnd()) {
|
||||
outputs.setEnd();
|
||||
}
|
||||
return outputs;
|
||||
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2006-2022 the original author or authors.
|
||||
* Copyright 2006-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -340,6 +340,9 @@ public class SimpleChunkProcessor<I, O> implements ChunkProcessor<I>, Initializi
|
||||
iterator.remove();
|
||||
}
|
||||
}
|
||||
if (inputs.isEnd()) {
|
||||
outputs.setEnd();
|
||||
}
|
||||
return outputs;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user