This code might not be multi-threading safe and depending on deployment
configuration django apps might fail in mt context. This could be solved
by a few locks but essentially what is needed is a definite answer on MT
+ django which django itself does not seem to offer.

-- 
You received this bug notification because you are a member of Linaro
Validation Team, which is the registrant for LAVA Dashboard.
https://bugs.launchpad.net/bugs/816335

Title:
  Data views and reports sometimes fail as if loaded twice

Status in LAVA Dashboard:
  Confirmed

Bug description:
  While testing 0.7a1 I noticed something strange. Refreshing this view
  [1] a few times causes the following error. It seems like one of the
  apache processes is attempting to load a data report that is already
  present in memory.

  [1]: http://validation.linaro.org/lava-server/dashboard/reports/board-
  activity/

  [Tue Jul 26 09:52:40 2011] [error] ERROR:root:Unable to dispatch XML-RPC 
method query_data_view(('board-activity', {'pathname': 
'/anonymous/lava-daily/'}))
  [Tue Jul 26 09:52:40 2011] [error] Traceback (most recent call last):
  [Tue Jul 26 09:52:40 2011] [error]   File 
"/usr/lib/pymodules/python2.6/linaro_django_xmlrpc/models.py", line 395, in 
dispatch
  [Tue Jul 26 09:52:40 2011] [error]     return impl(*params)
  [Tue Jul 26 09:52:40 2011] [error]   File 
"/usr/lib/pymodules/python2.6/dashboard_app/xmlrpc.py", line 604, in 
query_data_view
  [Tue Jul 26 09:52:40 2011] [error]     data_view = 
DataView.repository.get(name=name)
  [Tue Jul 26 09:52:40 2011] [error]   File 
"/usr/lib/pymodules/python2.6/dashboard_app/repositories/__init__.py", line 
151, in get
  [Tue Jul 26 09:52:40 2011] [error]     return self._queryset().get(**kwargs)
  [Tue Jul 26 09:52:40 2011] [error]   File 
"/usr/lib/pymodules/python2.6/dashboard_app/repositories/__init__.py", line 
100, in get
  [Tue Jul 26 09:52:40 2011] [error]     raise 
self.model.MultipleValuesReturned()
  [Tue Jul 26 09:52:40 2011] [error] MultipleValuesReturned

To manage notifications about this bug go to:
https://bugs.launchpad.net/lava-dashboard/+bug/816335/+subscriptions

_______________________________________________
Mailing list: https://launchpad.net/~linaro-release
Post to     : linaro-release@lists.launchpad.net
Unsubscribe : https://launchpad.net/~linaro-release
More help   : https://help.launchpad.net/ListHelp

Reply via email to