Merge branch 'plugins-v2' into qa

* plugins-v2:
  log error response writing to trough
This commit is contained in:
Noah Levitt 2018-01-25 00:51:39 +00:00
commit 03379f73d5

View File

@ -176,6 +176,10 @@ class TroughClient(object):
try:
response = requests.post(write_url, sql, timeout=600)
if response.status_code != 200:
raise Exception(
'Received %s: %r in response to POST %s with data %r' % (
response.status_code, response.text, write_url, sql))
if segment_id not in self._dirty_segments:
with self._dirty_segments_lock:
self._dirty_segments.add(segment_id)