[ 
https://issues.apache.org/jira/browse/ARIA-248?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ran Ziv updated ARIA-248:
-------------------------
    Description: 
When executing operations using {{ProcessExecutor}}, writes to the storage 
don't actually happen from the process running the operation, but rather from 
its parent process. The tracking of changes and information to store, as well 
as their transfer to the parent process, take place in the {{instrumentation}} 
module.

When the {{instumentation}} module tries to apply tracked changes and fails for 
some reason, [it tries to log a 
message|https://github.com/apache/incubator-ariatosca/blob/master/aria/storage/instrumentation.py#L259]
 containing the attributes and instances  it did manage to update.
However, if one of those attributes is a 
[{{_STUB}}|https://github.com/apache/incubator-ariatosca/blob/master/aria/storage/instrumentation.py#L27],
 {{json.dumps}} fails to decode it and an error is raised.


  was:
When the instumentation module tries to apply tracked changes, and it fails, it 
should print out the attributes it did manage to update. However, if one of 
those attributes is a _STUB (which is an object() type object), json.dumps 
fails to decode it. 
https://github.com/apache/incubator-ariatosca/blob/master/aria/storage/instrumentation.py#L259

This prevents from any msg to be returned.


> When applying tracked changes fails no message is returned
> ----------------------------------------------------------
>
>                 Key: ARIA-248
>                 URL: https://issues.apache.org/jira/browse/ARIA-248
>             Project: AriaTosca
>          Issue Type: Bug
>            Reporter: Maxim Orlov
>
> When executing operations using {{ProcessExecutor}}, writes to the storage 
> don't actually happen from the process running the operation, but rather from 
> its parent process. The tracking of changes and information to store, as well 
> as their transfer to the parent process, take place in the 
> {{instrumentation}} module.
> When the {{instumentation}} module tries to apply tracked changes and fails 
> for some reason, [it tries to log a 
> message|https://github.com/apache/incubator-ariatosca/blob/master/aria/storage/instrumentation.py#L259]
>  containing the attributes and instances  it did manage to update.
> However, if one of those attributes is a 
> [{{_STUB}}|https://github.com/apache/incubator-ariatosca/blob/master/aria/storage/instrumentation.py#L27],
>  {{json.dumps}} fails to decode it and an error is raised.



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

Reply via email to