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

Nathan Marz commented on STORM-484:
-----------------------------------

I think this is useful but not for performance reasons. It will take at least a 
few seconds until the topology gets launched on the cluster, so the cost of 
serializing the topology is irrelevant. However, validating as the topology is 
constructed would provide better stack traces and a better debugging experience.

> Implement topology validation logic in TopologyBuilder
> ------------------------------------------------------
>
>                 Key: STORM-484
>                 URL: https://issues.apache.org/jira/browse/STORM-484
>             Project: Apache Storm (Incubating)
>          Issue Type: Improvement
>            Reporter: Michael Brailsford
>            Priority: Minor
>              Labels: features
>             Fix For: 0.9.2-incubating
>
>
> Currently topology validation occurs only when submitting the topology to 
> nimbus.  Once a topology is built with TopologyBuilder.createTopology() all 
> relevant data to validate a topology is correctly wired already exists.  
> However, TopologyBuilder.createTopology() incurs the cost of serializing the 
> ComponentObject which isn't needed to validate the topology is wired 
> correctly.  The operation of validating a topology can provided in 
> TopologyBuilder, or a helper class like TopologyValidator, to validate a 
> topology while it is being built by consumers without the cost of serializing 
> ComponentObjects or submitting to nimbus.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to