Closed dvanaken closed 4 years ago
The hard-coded target objective should be replaced with the session's target objective.
[14/Jan/2020 08:16:54] INFO [django.request:12] GET /get_workload_data/?id=1&session_id=1&conf=1&met=dbtime&=1579007813136 [14/Jan/2020 08:16:54] ERROR [django.request:135] Internal Server Error: /get_workload_data/ Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/core/handlers/exception.py", line 41, in inner response = get_response(request) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/core/handlers/base.py", line 249, in _legacy_get_response response = self._get_response(request) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/core/handlers/base.py", line 187, in _get_response response = self.process_exception_by_middleware(e, request) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/core/handlers/base.py", line 185, in _get_response response = wrapped_callback(request, *callback_args, *callback_kwargs) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/contrib/auth/decorators.py", line 23, in _wrapped_view return view_func(request, args, **kwargs) File "/Users/dva/git/ottertune-fork/server/website/website/views.py", line 952, in get_workload_data results = sorted(results, key=lambda x: int(result_data[x.pk][target_objectives.THROUGHPUT])) File "/Users/dva/git/ottertune-fork/server/website/website/views.py", line 952, in results = sorted(results, key=lambda x: int(result_data[x.pk][target_objectives.THROUGHPUT])) KeyError: 'throughput_txn_per_sec' [14/Jan/2020 08:16:54] INFO [django.request:19] GET /get_workload_data/?id=1&session_id=1&conf=1&met=dbtime&=1579007813136 - 500 [14/Jan/2020 08:16:54] ERROR [django.server:124] "GET /get_workload_data/?id=1&session_id=1&conf=1&met=dbtime&=1579007813136 HTTP/1.1" 500 19236
The hard-coded target objective should be replaced with the session's target objective.
[14/Jan/2020 08:16:54] INFO [django.request:12] GET /get_workload_data/?id=1&session_id=1&conf=1&met=dbtime&=1579007813136 [14/Jan/2020 08:16:54] ERROR [django.request:135] Internal Server Error: /get_workload_data/ Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/core/handlers/exception.py", line 41, in inner response = get_response(request) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/core/handlers/base.py", line 249, in _legacy_get_response response = self._get_response(request) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/core/handlers/base.py", line 187, in _get_response response = self.process_exception_by_middleware(e, request) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/core/handlers/base.py", line 185, in _get_response response = wrapped_callback(request, *callback_args, *callback_kwargs) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/contrib/auth/decorators.py", line 23, in _wrapped_view return view_func(request, args, **kwargs) File "/Users/dva/git/ottertune-fork/server/website/website/views.py", line 952, in get_workload_data results = sorted(results, key=lambda x: int(result_data[x.pk][target_objectives.THROUGHPUT])) File "/Users/dva/git/ottertune-fork/server/website/website/views.py", line 952, in
results = sorted(results, key=lambda x: int(result_data[x.pk][target_objectives.THROUGHPUT]))
KeyError: 'throughput_txn_per_sec'
[14/Jan/2020 08:16:54] INFO [django.request:19] GET /get_workload_data/?id=1&session_id=1&conf=1&met=dbtime&=1579007813136 - 500
[14/Jan/2020 08:16:54] ERROR [django.server:124] "GET /get_workload_data/?id=1&session_id=1&conf=1&met=dbtime&=1579007813136 HTTP/1.1" 500 19236