Exceptions when using CARBONLINK_HASHING_TYPE = 'fnv1a_ch'

Asked by Tobias

Hi

When using the following in local_settings.py I see a lot of exceptions in the exceptions.log web log:

CARBONLINK_HASHING_TYPE = 'fnv1a_ch'

  File "/opt/vgt/graphite/webapp/graphite/readers.py", line 204, in fetch
    cached_datapoints = CarbonLink.query(self.real_metric_path)
  File "/opt/vgt/graphite/webapp/graphite/carbonlink.py", line 90, in query
    results = self.send_request(request)
  File "/opt/vgt/graphite/webapp/graphite/carbonlink.py", line 121, in send_request
    host = self.select_host(metric)
  File "/opt/vgt/graphite/webapp/graphite/carbonlink.py", line 49, in select_host
    for node in self.hash_ring.get_nodes(key):
  File "/opt/vgt/graphite/webapp/graphite/render/hashing.py", line 112, in get_nodes
    position = self.compute_ring_position(key)
  File "/opt/vgt/graphite/webapp/graphite/render/hashing.py", line 77, in compute_ring_position
    small_hash = int(big_hash[:4], 16) ^ int(big_hash[4:], 16)

After commenting out CARBONLINK_HASHING_TYPE = 'fnv1a_ch' the errors disappeared.

Here is my complete configuration:

CARBONLINK_HOSTS = ["127.0.0.1:7102:w1", "127.0.0.1:7103:w2", "127.0.0.1:7104:w3", "127.0.0.1:7105:w4", "127.0.0.1:7106:w5", "127.0.0.1:7107:w6"]
CARBONLINK_QUERY_BULK = True
CARBONLINK_HASHING_TYPE = 'fnv1a_ch'

Do I have a misconfiguration somewhere you think?

I am on version 1.0.2.

Question information

Language:
English Edit question
Status:
Solved
For:
Graphite Edit question
Assignee:
No assignee Edit question
Solved by:
Denis Zhdanov
Solved:
Last query:
Last reply:
Revision history for this message
Best Denis Zhdanov (deniszhdanov) said :
#1
Revision history for this message
Tobias (lindqt01) said :
#2

OK, thanks for the quick response.

Revision history for this message
Tobias (lindqt01) said :
#3

Thanks Denis Zhdanov, that solved my question.