You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@allura.apache.org by Rohan Verma <ro...@gmail.com> on 2016/04/02 21:48:59 UTC

[allura:tickets] #7145 When deleting a tool, the solr call should be a bg task



---

** [tickets:#7145] When deleting a tool, the solr call should be a bg task**

**Status:** open
**Milestone:** unreleased
**Labels:** bitesize 
**Created:** Thu Feb 06, 2014 09:46 PM UTC by Dave Brondsema
**Last Updated:** Tue Feb 10, 2015 07:00 AM UTC
**Owner:** Rohan Verma


We should run a background task instead of calling it inline, so that there's not an error when solr's down.  And makes the operation faster for the user anyway.

See also [#4799] which is somewhat of a reverse problem

~~~~
File '/var/local/allura/Allura/allura/app.py', line 474 in uninstall
  project_id, self.config.options['mount_point']))
File '/var/local/allura/Allura/allura/lib/solr.py', line 76 in delete
  responses.append(solr.delete(*args, **kw))
File '/var/local/env-allura/lib/python2.7/site-packages/TimerMiddleware-0.4.4-py2.7.egg/timermiddleware/__init__.py', line 117 in wrapper
  return self.run_and_log(func, inst, *args, **kwargs)
File '/var/local/env-allura/lib/python2.7/site-packages/TimerMiddleware-0.4.4-py2.7.egg/timermiddleware/__init__.py', line 126 in run_and_log
  return func(*args, **kwargs)
File '/var/local/env-allura/lib/python2.7/site-packages/pysolr-2.1.0_beta-py2.7.egg/pysolr.py', line 716 in delete
  response = self._update(m, commit=commit, waitFlush=waitFlush, waitSearcher=waitSearcher)
File '/var/local/env-allura/lib/python2.7/site-packages/pysolr-2.1.0_beta-py2.7.egg/pysolr.py', line 401 in _update
  return self._send_request('POST', path, message, {'Content-type': 'text/xml; charset=utf-8'})
File '/var/local/env-allura/lib/python2.7/site-packages/pysolr-2.1.0_beta-py2.7.egg/pysolr.py', line 310 in _send_request
  headers, response = http.request(url, method=method, body=body, headers=headers)
File '/var/local/env-allura/lib/python2.7/site-packages/httplib2-0.7.4-py2.7.egg/httplib2/__init__.py', line 1544 in request
  (response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)
File '/var/local/env-allura/lib/python2.7/site-packages/httplib2-0.7.4-py2.7.egg/httplib2/__init__.py', line 1294 in _request
  (response, content) = self._conn_request(conn, request_uri, method, body, headers)
File '/var/local/env-allura/lib/python2.7/site-packages/httplib2-0.7.4-py2.7.egg/httplib2/__init__.py', line 1230 in _conn_request
  conn.connect()
File '/var/local/env-allura/lib/python2.7/site-packages/httplib2-0.7.4-py2.7.egg/httplib2/__init__.py', line 890 in connect
  raise socket.error, msg
~~~~


---

Sent from forge-allura.apache.org because dev@allura.apache.org is subscribed to https://forge-allura.apache.org/p/allura/tickets/

To unsubscribe from further messages, a project admin can change settings at https://forge-allura.apache.org/p/allura/admin/tickets/options.  Or, if this is a mailing list, you can unsubscribe from the mailing list.

[allura:tickets] Ticket 7145 discussion

Posted by Rohan Verma <ro...@gmail.com>.
- **assigned_to**: Rohan Verma



---

** [tickets:#7145] When deleting a tool, the solr call should be a bg task**

**Status:** open
**Milestone:** unreleased
**Labels:** bitesize 
**Created:** Thu Feb 06, 2014 09:46 PM UTC by Dave Brondsema
**Last Updated:** Tue Feb 10, 2015 07:00 AM UTC
**Owner:** Rohan Verma


We should run a background task instead of calling it inline, so that there's not an error when solr's down.  And makes the operation faster for the user anyway.

See also [#4799] which is somewhat of a reverse problem

~~~~
File '/var/local/allura/Allura/allura/app.py', line 474 in uninstall
  project_id, self.config.options['mount_point']))
File '/var/local/allura/Allura/allura/lib/solr.py', line 76 in delete
  responses.append(solr.delete(*args, **kw))
File '/var/local/env-allura/lib/python2.7/site-packages/TimerMiddleware-0.4.4-py2.7.egg/timermiddleware/__init__.py', line 117 in wrapper
  return self.run_and_log(func, inst, *args, **kwargs)
File '/var/local/env-allura/lib/python2.7/site-packages/TimerMiddleware-0.4.4-py2.7.egg/timermiddleware/__init__.py', line 126 in run_and_log
  return func(*args, **kwargs)
File '/var/local/env-allura/lib/python2.7/site-packages/pysolr-2.1.0_beta-py2.7.egg/pysolr.py', line 716 in delete
  response = self._update(m, commit=commit, waitFlush=waitFlush, waitSearcher=waitSearcher)
File '/var/local/env-allura/lib/python2.7/site-packages/pysolr-2.1.0_beta-py2.7.egg/pysolr.py', line 401 in _update
  return self._send_request('POST', path, message, {'Content-type': 'text/xml; charset=utf-8'})
File '/var/local/env-allura/lib/python2.7/site-packages/pysolr-2.1.0_beta-py2.7.egg/pysolr.py', line 310 in _send_request
  headers, response = http.request(url, method=method, body=body, headers=headers)
File '/var/local/env-allura/lib/python2.7/site-packages/httplib2-0.7.4-py2.7.egg/httplib2/__init__.py', line 1544 in request
  (response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)
File '/var/local/env-allura/lib/python2.7/site-packages/httplib2-0.7.4-py2.7.egg/httplib2/__init__.py', line 1294 in _request
  (response, content) = self._conn_request(conn, request_uri, method, body, headers)
File '/var/local/env-allura/lib/python2.7/site-packages/httplib2-0.7.4-py2.7.egg/httplib2/__init__.py', line 1230 in _conn_request
  conn.connect()
File '/var/local/env-allura/lib/python2.7/site-packages/httplib2-0.7.4-py2.7.egg/httplib2/__init__.py', line 890 in connect
  raise socket.error, msg
~~~~


---

Sent from forge-allura.apache.org because dev@allura.apache.org is subscribed to https://forge-allura.apache.org/p/allura/tickets/

To unsubscribe from further messages, a project admin can change settings at https://forge-allura.apache.org/p/allura/admin/tickets/options.  Or, if this is a mailing list, you can unsubscribe from the mailing list.

[allura:tickets] #7145 When deleting a tool, the solr call should be a bg task

Posted by Dave Brondsema <da...@brondsema.net>.
- **status**: open --> closed
- **Reviewer**: Dave Brondsema



---

** [tickets:#7145] When deleting a tool, the solr call should be a bg task**

**Status:** closed
**Milestone:** unreleased
**Labels:** bitesize 
**Created:** Thu Feb 06, 2014 09:46 PM UTC by Dave Brondsema
**Last Updated:** Sat Apr 02, 2016 07:48 PM UTC
**Owner:** Rohan Verma


We should run a background task instead of calling it inline, so that there's not an error when solr's down.  And makes the operation faster for the user anyway.

See also [#4799] which is somewhat of a reverse problem

~~~~
File '/var/local/allura/Allura/allura/app.py', line 474 in uninstall
  project_id, self.config.options['mount_point']))
File '/var/local/allura/Allura/allura/lib/solr.py', line 76 in delete
  responses.append(solr.delete(*args, **kw))
File '/var/local/env-allura/lib/python2.7/site-packages/TimerMiddleware-0.4.4-py2.7.egg/timermiddleware/__init__.py', line 117 in wrapper
  return self.run_and_log(func, inst, *args, **kwargs)
File '/var/local/env-allura/lib/python2.7/site-packages/TimerMiddleware-0.4.4-py2.7.egg/timermiddleware/__init__.py', line 126 in run_and_log
  return func(*args, **kwargs)
File '/var/local/env-allura/lib/python2.7/site-packages/pysolr-2.1.0_beta-py2.7.egg/pysolr.py', line 716 in delete
  response = self._update(m, commit=commit, waitFlush=waitFlush, waitSearcher=waitSearcher)
File '/var/local/env-allura/lib/python2.7/site-packages/pysolr-2.1.0_beta-py2.7.egg/pysolr.py', line 401 in _update
  return self._send_request('POST', path, message, {'Content-type': 'text/xml; charset=utf-8'})
File '/var/local/env-allura/lib/python2.7/site-packages/pysolr-2.1.0_beta-py2.7.egg/pysolr.py', line 310 in _send_request
  headers, response = http.request(url, method=method, body=body, headers=headers)
File '/var/local/env-allura/lib/python2.7/site-packages/httplib2-0.7.4-py2.7.egg/httplib2/__init__.py', line 1544 in request
  (response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)
File '/var/local/env-allura/lib/python2.7/site-packages/httplib2-0.7.4-py2.7.egg/httplib2/__init__.py', line 1294 in _request
  (response, content) = self._conn_request(conn, request_uri, method, body, headers)
File '/var/local/env-allura/lib/python2.7/site-packages/httplib2-0.7.4-py2.7.egg/httplib2/__init__.py', line 1230 in _conn_request
  conn.connect()
File '/var/local/env-allura/lib/python2.7/site-packages/httplib2-0.7.4-py2.7.egg/httplib2/__init__.py', line 890 in connect
  raise socket.error, msg
~~~~


---

Sent from forge-allura.apache.org because dev@allura.apache.org is subscribed to https://forge-allura.apache.org/p/allura/tickets/

To unsubscribe from further messages, a project admin can change settings at https://forge-allura.apache.org/p/allura/admin/tickets/options.  Or, if this is a mailing list, you can unsubscribe from the mailing list.