You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Alexander Lex (Jira)" <ji...@apache.org> on 2022/08/04 13:35:00 UTC

[jira] [Commented] (CAMEL-18351) ExchangePropertyKey.SPLIT_COMPLETE not set to true after zip splitting completed

    [ https://issues.apache.org/jira/browse/CAMEL-18351?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17575269#comment-17575269 ] 

Alexander Lex commented on CAMEL-18351:
---------------------------------------

.split(new ZipSplitter()) .streaming() .aggregate(constant(true), new ZipAggregationStrategy(true, true)) .completionPredicate(new Predicate() \{ @Override public boolean matches(Exchange exchange) { return exchange.getProperty(ExchangePropertyKey.SPLIT_COMPLETE, Boolean.FALSE, Boolean.class); } }).eagerCheckCompletion()

 

The code will not finish

> ExchangePropertyKey.SPLIT_COMPLETE not set to true after zip splitting completed
> --------------------------------------------------------------------------------
>
>                 Key: CAMEL-18351
>                 URL: https://issues.apache.org/jira/browse/CAMEL-18351
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-zipfile
>    Affects Versions: 3.18.0
>            Reporter: Alexander Lex
>            Priority: Major
>
> When running the zip splitter, it splits the zip file as expected. However, looking at the property "ExchangePropertyKey.SPLIT_COMPLETE", it shows not the expected "true".
>  
> Expected behaviour is the property "ExchangePropertyKey.SPLIT_COMPLETE" to be set to true after the splitting is completed.
>  
> Code to reproduce can be found here:
> https://github.com/lx183/camel-zip-issue/blob/master/src/test/java/ZipSplitterRouteTest.java



--
This message was sent by Atlassian Jira
(v8.20.10#820010)