is now running on 12? different processors. The parser that's created by each of those processors will hash the same IP address differently. This has caused queries that rely on consistent hashing to fail. We should either tell people that IP addresses are no longer going to be hashed consistently or we should figure out a way to share the hashing function. If we decide to keep it inconsistent, we should find and help people who are relying on consistency.
Description
Details
| Status | Subtype | Assigned | Task | ||
|---|---|---|---|---|---|
| Resolved | • kevinator | T102225 {stag} EventLogging on Kafka | |||
| Resolved | Ottomata | T112688 Bug: client IP is being hashed differently by the different parallel processors {stag} [13 pts] |
Event Timeline
Change 238533 had a related patch set uploaded (by Milimetric):
Hack around bad Event Logging IP hash problem
By the way, for the https://edit-analysis.wmflabs.org/compare/ dashboard, if you clear cache it looks like the data is back in order. As I mentioned in the notes, there will now be a slight abnormality for any browsers that don't support the crypto functions which generate random session ids. For those, session ids will collide. If you suspect any problems with the data, I'd look into that first. A human can usually tell the collisions from true sessions based on the timestamps of the actions in the session.
Change 238784 had a related patch set uploaded (by Ottomata):
Run 1 EventLogging processor until bug is fixed
I just restarted eventlogging client side processor running only 1 process. This should fix the problem until we actually fix the bug.
Change 238854 had a related patch set uploaded (by Ottomata):
[POC] add etcd_rotating_key as an option for sharing hash keys between mulitple processes
Change 240916 had a related patch set uploaded (by Ottomata):
Puppetize etcd use for eventlogging processor
Change 242201 had a related patch set uploaded (by Ottomata):
Set default for $ssldir in etcd::ssl::base
Change 242203 had a related patch set uploaded (by Ottomata):
Remove etcd package requirement from etcd::ssl::base
Change 242203 merged by Ottomata:
Remove etcd package requirement from etcd::ssl::base
Change 242207 had a related patch set uploaded (by Ottomata):
Ensure /var/lib/etcd exists even if etcd package is not installed
Change 242207 merged by Ottomata:
Ensure /var/lib/etcd exists even if etcd package is not installed
Change 242213 had a related patch set uploaded (by Ottomata):
Apparently dirname isn't available, set $vardir and ensure it exists for etcd
Change 242213 merged by Ottomata:
Apparently dirname isn't available, set $vardir and ensure it exists for etcd
Change 242229 had a related patch set uploaded (by Ottomata):
Parameterize owner, group and modes for etcd::ssl::base files
Change 242229 merged by Ottomata:
Parameterize owner, group and modes for etcd::ssl::base files
Change 238854 merged by Ottomata:
Add SharedRotatingToken to share hash tokens in etcd
Change 242251 had a related patch set uploaded (by Ottomata):
Fix eventlogging ssl paths for etcd
Change 242270 had a related patch set uploaded (by Ottomata):
Use ca_cert for etcd client in eventlogging processor
Change 242270 merged by Ottomata:
Use ca_cert for etcd client in eventlogging processor
Change 242338 had a related patch set uploaded (by Ottomata):
eventlogging now requires python-etcd
Change 242359 had a related patch set uploaded (by Ottomata):
Lower python-etcd version requirement, we run a patched 0.3.3 in prod
Change 242359 merged by Ottomata:
Lower python-etcd version requirement, we run a patched 0.3.3 in prod
Change 242413 had a related patch set uploaded (by Ottomata):
Comment out python-etcd dependency so we can install on Trusty
Change 242413 merged by Ottomata:
Comment out python-etcd dependency so we can install on Trusty
Phew, ok, I got this deployed, but I had to do a little hackery.
Our packaged version of python-etcd has a python dependency for python-openssl >= 0.14. Trusty does not have this available as a .deb package, so if eventlogging code specifies the python-etcd dependency, it will refuse to install.
I worked around this by commenting out the python-etcd requirement in eventlogging's setup.py. Puppet installs this in production anyway, and this seems to work just fine with python-openssl 0.13, so now eventlogging can be installed in Trusty.
The downside is, if you attempt to install on Trusty in labs, pip will not auto-install python-etcd.
2 things come out of this:
- we should make it so that you can't use eventlogging in labs without the proper deb packages. We should disable the usage of pip there.
- We should upgrade all eventlogging servers to Jessie, so things just work properly.
I will make a task for 2.