Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1381968 - md-cache: Invalidate cache entry in case of OPEN with O_TRUNC
md-cache: Invalidate cache entry in case of OPEN with O_TRUNC
Status: CLOSED ERRATA
Product: Red Hat Gluster Storage
Classification: Red Hat
Component: md-cache (Show other bugs)
3.2
All All
unspecified Severity medium
: ---
: RHGS 3.2.0
Assigned To: Soumya Koduri
surabhi
: Triaged
Depends On: 1382266 1391448 1391450 1391451
Blocks: 1351528 1380742
  Show dependency treegraph
 
Reported: 2016-10-05 08:49 EDT by Soumya Koduri
Modified: 2017-03-23 02:08 EDT (History)
4 users (show)

See Also:
Fixed In Version: glusterfs-3.8.4-4
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2017-03-23 02:08:18 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2017:0486 normal SHIPPED_LIVE Moderate: Red Hat Gluster Storage 3.2.0 security, bug fix, and enhancement update 2017-03-23 05:18:45 EDT

  None (edit)
Description Soumya Koduri 2016-10-05 08:49:54 EDT
Description of problem:


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:
Comment 2 Soumya Koduri 2016-10-05 08:52:16 EDT
Sorry. By mistake the bug got filed before I filled up description. 

Description of problem:

In case if there is open() done on a file with O_TRUNC posix flag passed, the backend server truncates the file, resulting in change of size of the file. This case needs to be handled by md-cache and should invalidate its cache-entry accordingly.
Comment 3 Soumya Koduri 2016-10-06 03:48:22 EDT
Patch posted upstream for review - 

http://review.gluster.org/15618
Comment 8 surabhi 2016-11-23 07:06:39 EST
As discussed with Soumya, executed pynfs test suite with latest build and the OPEN test is passed without any issues.

Moving the BZ to verified.
Comment 10 errata-xmlrpc 2017-03-23 02:08:18 EDT
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://rhn.redhat.com/errata/RHSA-2017-0486.html

Note You need to log in before you can comment on or make changes to this bug.