Jira (PUP-4528) Chaining arrows do not work as expected with empty resources

2015-05-05 Thread Vladimir Brik (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Vladimir Brik created an issue 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
 Puppet /  PUP-4528 
 
 
 
  Chaining arrows do not work as expected with empty resources  
 
 
 
 
 
 
 
 
 

Issue Type:
 
  Bug 
 
 
 

Affects Versions:
 

 PUP 3.7.4 
 
 
 

Assignee:
 

 Unassigned 
 
 
 

Created:
 

 2015/05/05 10:35 AM 
 
 
 

Priority:
 
  Normal 
 
 
 

Reporter:
 
 Vladimir Brik 
 
 
 
 
 
 
 
 
 
 
It seems reasonable to expect the code below to always print A first and B second: 
notify { A:} - notify{ []:} - notify{ B:}  However, because the second notify creates no resources, A and B seem to actually have no ordering relationship.  This leads to difficult to detect ordering bugs when it is not obvious that the ordering chain has an empty resource:  res1{ A} 
- res2 { foo($bar):} 
- res { B:} 
If foo($bar) returns [], B may be applied before A. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
   

Jira (PUP-4528) Chaining arrows do not work as expected with empty resources

2015-05-05 Thread Vladimir Brik (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Vladimir Brik updated an issue 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
 Puppet /  PUP-4528 
 
 
 
  Chaining arrows do not work as expected with empty resources  
 
 
 
 
 
 
 
 
 

Change By:
 
 Vladimir Brik 
 
 
 
 
 
 
 
 
 
 ItseemsreasonabletoexpectthecodebelowtoalwaysprintAfirstandBsecond: {noformat} notify{A:}-notify{[]:}-notify{B:} {noformat}   However,becausethesecondnotifycreatesnoresources,AandBseemtoactuallyhavenoorderingrelationship.Thisleadstodifficulttodetectorderingbugswhenitisnotobviousthattheorderingchainhasanemptyresource: {noformat} res1{A:}-res2{foo($bar):}-res{B:} {noformat}   Iffoo($bar)returns[],BmaybeappliedbeforeA. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.3.15#6346-sha1:dbc023d) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups Puppet Bugs group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.