Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1610744

Summary: [abrt] test-cal-client-get-revision could fail due to delayed D-Bus property change notification
Product: Red Hat Enterprise Linux 7 Reporter: Vladimir Benes <vbenes>
Component: evolution-data-serverAssignee: Milan Crha <mcrha>
Status: CLOSED ERRATA QA Contact: Desktop QE <desktop-qa-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.6CC: jkoten, mcrha, tpelka
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: https://faf.lab.eng.brq.redhat.com/faf/reports/bthash/59fd2e1bda4dbb86e5b1b11506fbedd05a0655dc/
Whiteboard:
Fixed In Version: evolution-data-server-3.28.5-3 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1713619 (view as bug list) Environment:
Last Closed: 2019-08-06 12:02:26 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1713619    

Description Vladimir Benes 2018-08-01 11:25:07 UTC
This bug has been created based on an anonymous crash report requested by the package maintainer.

Report URL: https://faf.lab.eng.brq.redhat.com/faf/reports/bthash/59fd2e1bda4dbb86e5b1b11506fbedd05a0655dc/

Comment 2 Milan Crha 2018-08-21 16:08:38 UTC
Thanks for a bug report. This is a timing issue, which works most of the times fine, but not always. I can reproduce it with something like:

   $ for i in {1..100}; do ./test-cal-client-get-revision; done

where it fails only couple times. A workaround in the code might be to add a sleep before the e_client_get_backend_property_sync() is called, thus D-Bus has enough time to deliver the notification about the property change. 10 ms had been enough here.

The thing is, the property is a D-Bus property, which means it's not updated on the client side immediately. I guess I can add some workaround for it into the code, like the aforementioned sleep, but I'm afraid it'll be ugly.

Comment 3 Milan Crha 2018-11-13 09:43:32 UTC
A bit better command, which also shows how many tests passed successfully:

   $ export _GOOD=0 && for i in {1..100}; do .test-cal-client-get-revision && \
         export _GOOD=$((_GOOD+1)); done; echo "good:${_GOOD}"

There's a very similar test for EBookClient, which doesn't fail, due to having more operations being done before reading the revision number back (it adds a contact, verifies it's added and immediately removes it, then it reads the revision). The ECalClient test only added a component and read the revision back, which didn't give enough time to the D-Bus to deliver the property change. I fixed it upstream [1] (for 3.31.3+ and 3.30.3+) by adding the component removal to the code, similarly as the book test works.

[1] https://gitlab.gnome.org/GNOME/evolution-data-server/commit/5eaebbe5c

Comment 7 Jiri Koten 2019-05-21 14:43:31 UTC
*** Bug 1712327 has been marked as a duplicate of this bug. ***

Comment 8 Milan Crha 2019-05-23 18:46:47 UTC
Hrm, this is very tricky. Even when I flush the pending notifications over D-bus on the server side, the client side still doesn't receive them always. I ended with a workaround added to the test, which will wait half of a second (to give the D-Bus and the client side to receive the property change), when the property didn't change yet. This is logged in the test output with this text: "D-Bus property 'revision' change not received, trying to wait a bit".

Comment 9 Milan Crha 2019-05-23 19:07:58 UTC
I split the change upstream to [1] and [2], committed for 3.33.3+ and 3.32.3+.

We do not have a RHEL8 bug for this, do we? The version in RHEL8 is also affected.

[1] https://gitlab.gnome.org/GNOME/evolution-data-server/commit/760002735da1
[2] https://gitlab.gnome.org/GNOME/evolution-data-server/commit/1be2a36737b8

Comment 12 errata-xmlrpc 2019-08-06 12:02:26 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2019:2018