You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@samza.apache.org by "Prateek Maheshwari (JIRA)" <ji...@apache.org> on 2019/03/19 17:43:00 UTC
[jira] [Commented] (SAMZA-1828) MessageStreamAssert check passed
but throwing exception
[ https://issues.apache.org/jira/browse/SAMZA-1828?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16796330#comment-16796330 ]
Prateek Maheshwari commented on SAMZA-1828:
-------------------------------------------
[~Sanil] Is this still relevant?
> MessageStreamAssert check passed but throwing exception
> -------------------------------------------------------
>
> Key: SAMZA-1828
> URL: https://issues.apache.org/jira/browse/SAMZA-1828
> Project: Samza
> Issue Type: Bug
> Reporter: Yi Pan (Data Infrastructure)
> Priority: Major
> Fix For: 1.0
>
>
> {code}
> private void check() {
> final CountDownLatch latch = LATCHES.get(id);
> try {
> assertThat(actual, Matchers.containsInAnyOrder((M[]) expected.toArray()));
> throw new IllegalArgumentException("asdas");
> } finally {
> latch.countDown();
> }
> }
> {code}
> When assertThat(...) passed, we still throw IllegalArgumentException() here.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)