Return-Path: X-Original-To: apmail-streams-dev-archive@minotaur.apache.org Delivered-To: apmail-streams-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 460BF11A14 for ; Fri, 15 Aug 2014 19:45:40 +0000 (UTC) Received: (qmail 86928 invoked by uid 500); 15 Aug 2014 19:45:40 -0000 Delivered-To: apmail-streams-dev-archive@streams.apache.org Received: (qmail 86885 invoked by uid 500); 15 Aug 2014 19:45:40 -0000 Mailing-List: contact dev-help@streams.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@streams.incubator.apache.org Delivered-To: mailing list dev@streams.incubator.apache.org Received: (qmail 86874 invoked by uid 99); 15 Aug 2014 19:45:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Aug 2014 19:45:40 +0000 X-ASF-Spam-Status: No, hits=-2000.7 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO mail.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 15 Aug 2014 19:45:39 +0000 Received: (qmail 85931 invoked by uid 99); 15 Aug 2014 19:45:18 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Aug 2014 19:45:18 +0000 Date: Fri, 15 Aug 2014 19:45:18 +0000 (UTC) From: "Steve Blackmon (JIRA)" To: dev@streams.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (STREAMS-148) Platform-level type validation MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org Steve Blackmon created STREAMS-148: -------------------------------------- Summary: Platform-level type validation Key: STREAMS-148 URL: https://issues.apache.org/jira/browse/STREAMS-148 Project: Streams Issue Type: Improvement Reporter: Steve Blackmon Investigate / implement mechanisms for a streams runtime (starting with streams-runtime-local) to validate each document against it's declared type class(es) using whatever javax.validation annotations are present on those classes at any point where a document is pulled off a provider or processor outbound queue. A non-valid document should be logged to WARN, and written to a different queue which downstream processors/providers can connect to using StreamBuilder. Demonstrate this works by making activity.id a required field in streams-pojo and having a test that ensures an activity without an id is caught and handled by the runtime. -- This message was sent by Atlassian JIRA (v6.2#6252)