You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ariatosca.apache.org by "Ran Ziv (JIRA)" <ji...@apache.org> on 2017/04/23 13:41:04 UTC
[jira] [Updated] (ARIA-144) sql_mapi raises an error in regards to
date_time string
[ https://issues.apache.org/jira/browse/ARIA-144?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ran Ziv updated ARIA-144:
-------------------------
Description:
provided the traceback:
{code}
tests/orchestrator/context/test_toolbelt.py:132:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/orchestrator/context/__init__.py:29: in execute
eng.execute()
aria/orchestrator/workflows/core/engine.py:60: in execute
for task in self._ended_tasks():
aria/orchestrator/workflows/core/engine.py:97: in <genexpr>
return (task for task in self._tasks_iter() if task.has_ended())
aria/orchestrator/workflows/core/engine.py:110: in _tasks_iter
self._workflow_context.model.task.refresh(task.model_task)
aria/storage/sql_mapi.py:142: in refresh
self._load_relationships(entry)
aria/storage/sql_mapi.py:379: in _load_relationships
getattr(instance, rel.key)
.tox/py27/lib/python2.7/site-packages/sqlalchemy/orm/attributes.py:237: in __get__
return self.impl.get(instance_state(instance), dict_)
.tox/py27/lib/python2.7/site-packages/sqlalchemy/orm/attributes.py:584: in get
value = self.callable_(state, passive)
.tox/py27/lib/python2.7/site-packages/sqlalchemy/orm/strategies.py:557: in _load_for_state
return self._emit_lazyload(session, state, ident_key, passive)
<string>:1: in <lambda>
???
.tox/py27/lib/python2.7/site-packages/sqlalchemy/orm/strategies.py:603: in _emit_lazyload
return loading.load_on_ident(q, ident_key)
.tox/py27/lib/python2.7/site-packages/sqlalchemy/orm/loading.py:223: in load_on_ident
return q.one()
.tox/py27/lib/python2.7/site-packages/sqlalchemy/orm/query.py:2790: in one
ret = self.one_or_none()
.tox/py27/lib/python2.7/site-packages/sqlalchemy/orm/query.py:2760: in one_or_none
ret = list(self)
.tox/py27/lib/python2.7/site-packages/sqlalchemy/orm/loading.py:90: in instances
util.raise_from_cause(err)
.tox/py27/lib/python2.7/site-packages/sqlalchemy/util/compat.py:203: in raise_from_cause
reraise(type(exception), exception, tb=exc_tb, cause=cause)
.tox/py27/lib/python2.7/site-packages/sqlalchemy/orm/loading.py:75: in instances
rows = [proc(row) for row in fetch]
.tox/py27/lib/python2.7/site-packages/sqlalchemy/orm/loading.py:437: in _instance
loaded_instance, populate_existing, populators)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
context = <sqlalchemy.orm.query.QueryContext object at 0x7f208f19e850>
row = <[ValueError("Couldn't parse datetime string: u''") raised in repr()] SafeRepr object at 0x7f2074d11ea8>
state = <sqlalchemy.orm.state.InstanceState object at 0x7f208c1ffc10>
dict_ = {'_sa_instance_state': <sqlalchemy.orm.state.InstanceState object at 0x7f208c1ffc10>}
isnew = True
load_path = EntityRegistry((<Mapper at 0x7f209296fc10; Execution>,))
loaded_instance = True, populate_existing = False
populators = defaultdict(<type 'list'>, {'quick': [('is_system_workflow', <operator.itemget...208c1ff510>), ('created_at', <operator.itemgetter object at 0x7f208c1ffc90>)]})
def _populate_full(
context, row, state, dict_, isnew, load_path,
loaded_instance, populate_existing, populators):
if isnew:
# first time we are seeing a row with this identity.
state.runid = context.runid
for key, getter in populators["quick"]:
> dict_[key] = getter(row)
E ValueError: Couldn't parse datetime string: u''
.tox/py27/lib/python2.7/site-packages/sqlalchemy/orm/loading.py:498: ValueError
{code}
was:
provided the traceback:
tests/orchestrator/context/test_toolbelt.py:132:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/orchestrator/context/__init__.py:29: in execute
eng.execute()
aria/orchestrator/workflows/core/engine.py:60: in execute
for task in self._ended_tasks():
aria/orchestrator/workflows/core/engine.py:97: in <genexpr>
return (task for task in self._tasks_iter() if task.has_ended())
aria/orchestrator/workflows/core/engine.py:110: in _tasks_iter
self._workflow_context.model.task.refresh(task.model_task)
aria/storage/sql_mapi.py:142: in refresh
self._load_relationships(entry)
aria/storage/sql_mapi.py:379: in _load_relationships
getattr(instance, rel.key)
.tox/py27/lib/python2.7/site-packages/sqlalchemy/orm/attributes.py:237: in __get__
return self.impl.get(instance_state(instance), dict_)
.tox/py27/lib/python2.7/site-packages/sqlalchemy/orm/attributes.py:584: in get
value = self.callable_(state, passive)
.tox/py27/lib/python2.7/site-packages/sqlalchemy/orm/strategies.py:557: in _load_for_state
return self._emit_lazyload(session, state, ident_key, passive)
<string>:1: in <lambda>
???
.tox/py27/lib/python2.7/site-packages/sqlalchemy/orm/strategies.py:603: in _emit_lazyload
return loading.load_on_ident(q, ident_key)
.tox/py27/lib/python2.7/site-packages/sqlalchemy/orm/loading.py:223: in load_on_ident
return q.one()
.tox/py27/lib/python2.7/site-packages/sqlalchemy/orm/query.py:2790: in one
ret = self.one_or_none()
.tox/py27/lib/python2.7/site-packages/sqlalchemy/orm/query.py:2760: in one_or_none
ret = list(self)
.tox/py27/lib/python2.7/site-packages/sqlalchemy/orm/loading.py:90: in instances
util.raise_from_cause(err)
.tox/py27/lib/python2.7/site-packages/sqlalchemy/util/compat.py:203: in raise_from_cause
reraise(type(exception), exception, tb=exc_tb, cause=cause)
.tox/py27/lib/python2.7/site-packages/sqlalchemy/orm/loading.py:75: in instances
rows = [proc(row) for row in fetch]
.tox/py27/lib/python2.7/site-packages/sqlalchemy/orm/loading.py:437: in _instance
loaded_instance, populate_existing, populators)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
context = <sqlalchemy.orm.query.QueryContext object at 0x7f208f19e850>
row = <[ValueError("Couldn't parse datetime string: u''") raised in repr()] SafeRepr object at 0x7f2074d11ea8>
state = <sqlalchemy.orm.state.InstanceState object at 0x7f208c1ffc10>
dict_ = {'_sa_instance_state': <sqlalchemy.orm.state.InstanceState object at 0x7f208c1ffc10>}
isnew = True
load_path = EntityRegistry((<Mapper at 0x7f209296fc10; Execution>,))
loaded_instance = True, populate_existing = False
populators = defaultdict(<type 'list'>, {'quick': [('is_system_workflow', <operator.itemget...208c1ff510>), ('created_at', <operator.itemgetter object at 0x7f208c1ffc90>)]})
def _populate_full(
context, row, state, dict_, isnew, load_path,
loaded_instance, populate_existing, populators):
if isnew:
# first time we are seeing a row with this identity.
state.runid = context.runid
for key, getter in populators["quick"]:
> dict_[key] = getter(row)
E ValueError: Couldn't parse datetime string: u''
.tox/py27/lib/python2.7/site-packages/sqlalchemy/orm/loading.py:498: ValueError
> sql_mapi raises an error in regards to date_time string
> -------------------------------------------------------
>
> Key: ARIA-144
> URL: https://issues.apache.org/jira/browse/ARIA-144
> Project: AriaTosca
> Issue Type: Bug
> Reporter: Maxim Orlov
> Priority: Minor
>
> provided the traceback:
> {code}
> tests/orchestrator/context/test_toolbelt.py:132:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> tests/orchestrator/context/__init__.py:29: in execute
> eng.execute()
> aria/orchestrator/workflows/core/engine.py:60: in execute
> for task in self._ended_tasks():
> aria/orchestrator/workflows/core/engine.py:97: in <genexpr>
> return (task for task in self._tasks_iter() if task.has_ended())
> aria/orchestrator/workflows/core/engine.py:110: in _tasks_iter
> self._workflow_context.model.task.refresh(task.model_task)
> aria/storage/sql_mapi.py:142: in refresh
> self._load_relationships(entry)
> aria/storage/sql_mapi.py:379: in _load_relationships
> getattr(instance, rel.key)
> .tox/py27/lib/python2.7/site-packages/sqlalchemy/orm/attributes.py:237: in __get__
> return self.impl.get(instance_state(instance), dict_)
> .tox/py27/lib/python2.7/site-packages/sqlalchemy/orm/attributes.py:584: in get
> value = self.callable_(state, passive)
> .tox/py27/lib/python2.7/site-packages/sqlalchemy/orm/strategies.py:557: in _load_for_state
> return self._emit_lazyload(session, state, ident_key, passive)
> <string>:1: in <lambda>
> ???
> .tox/py27/lib/python2.7/site-packages/sqlalchemy/orm/strategies.py:603: in _emit_lazyload
> return loading.load_on_ident(q, ident_key)
> .tox/py27/lib/python2.7/site-packages/sqlalchemy/orm/loading.py:223: in load_on_ident
> return q.one()
> .tox/py27/lib/python2.7/site-packages/sqlalchemy/orm/query.py:2790: in one
> ret = self.one_or_none()
> .tox/py27/lib/python2.7/site-packages/sqlalchemy/orm/query.py:2760: in one_or_none
> ret = list(self)
> .tox/py27/lib/python2.7/site-packages/sqlalchemy/orm/loading.py:90: in instances
> util.raise_from_cause(err)
> .tox/py27/lib/python2.7/site-packages/sqlalchemy/util/compat.py:203: in raise_from_cause
> reraise(type(exception), exception, tb=exc_tb, cause=cause)
> .tox/py27/lib/python2.7/site-packages/sqlalchemy/orm/loading.py:75: in instances
> rows = [proc(row) for row in fetch]
> .tox/py27/lib/python2.7/site-packages/sqlalchemy/orm/loading.py:437: in _instance
> loaded_instance, populate_existing, populators)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> context = <sqlalchemy.orm.query.QueryContext object at 0x7f208f19e850>
> row = <[ValueError("Couldn't parse datetime string: u''") raised in repr()] SafeRepr object at 0x7f2074d11ea8>
> state = <sqlalchemy.orm.state.InstanceState object at 0x7f208c1ffc10>
> dict_ = {'_sa_instance_state': <sqlalchemy.orm.state.InstanceState object at 0x7f208c1ffc10>}
> isnew = True
> load_path = EntityRegistry((<Mapper at 0x7f209296fc10; Execution>,))
> loaded_instance = True, populate_existing = False
> populators = defaultdict(<type 'list'>, {'quick': [('is_system_workflow', <operator.itemget...208c1ff510>), ('created_at', <operator.itemgetter object at 0x7f208c1ffc90>)]})
> def _populate_full(
> context, row, state, dict_, isnew, load_path,
> loaded_instance, populate_existing, populators):
> if isnew:
> # first time we are seeing a row with this identity.
> state.runid = context.runid
>
> for key, getter in populators["quick"]:
> > dict_[key] = getter(row)
> E ValueError: Couldn't parse datetime string: u''
> .tox/py27/lib/python2.7/site-packages/sqlalchemy/orm/loading.py:498: ValueError
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)