Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feed displays the same message more than once #261

Open
lcarva opened this issue Aug 5, 2021 · 2 comments
Open

Feed displays the same message more than once #261

lcarva opened this issue Aug 5, 2021 · 2 comments

Comments

@lcarva
Copy link

lcarva commented Aug 5, 2021

When accessing the "Feed" link on the web UI, /raw?rows_per_page=1&delta=127800 ,some messages appear for than once.

If I increase the number of rows_per_page to 100, for example, the issue goes away.

Querying the database directly further confirms that a certain message only exists once:

select count(*) from messages where msg_id = '<my-message-id>';
 count 
-------
     1
(1 row)
@lcarva
Copy link
Author

lcarva commented Aug 5, 2021

It might be a good idea to switch the default rows_per_page attribute to something more realistic. Since requests are performed until the screen is full, loading the page on my laptop triggers about 20 requests.

@lcarva
Copy link
Author

lcarva commented Aug 11, 2021

This might be a long shot, but I think I understand now why we have just noticed this. Once we migrated datagrepper to OpenShift 4, all traffic was routed to the same pod, even though we had two replicas. For some reason, we have to explicitly set the annotation haproxy.router.openshift.io/balance: roundrobin on the Route to utilize both pods (behavior only seen when using TLS passthrough termination).

There appears to be some sort of DB session that yields different results for different pods.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant