Bug 1785520

Summary: performance/io-cache: After “performance/io-cache: update pages with write data” patch commit and disable md-cache sometimes that gcc compilation file can not execute right now.
Product: [Community] GlusterFS Reporter: yinkui <13965432176>
Component: io-cacheAssignee: Mohammed Rafi KC <rkavunga>
Status: CLOSED UPSTREAM QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: 6CC: bugs, pasik, rkavunga, sabose
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-03-12 12:39:23 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:

Description yinkui 2019-12-20 06:12:15 UTC
Description of problem:
The patch SHA-1: d50f22e6ae410fdcde573b6015b97dc1573bbb7e discripted that "performance/io-cache: update pages with write data” . How after that patch commit and disable md-cache sometimes that gcc  compilation file can not execute right now.

Version-Release number of selected component (if applicable):
gluster version 6, io-cache

Steps to Reproduce:
1.gluster v create testvol_distributed host1:/bricks/brick1/testvol_distributed_brick0 host2:/bricks/brick1/testvol_distributed_brick0 host3:/bricks/brick1/testvol_distributed_brick0
2.gluster v set testvol_distributed performance.md-cache-pass-through true
3.gluster v start testvol_distributed 
4.mount -t glusterfs 127.0.0.1:/testvol_distributed /mnt/testvol_dispersed
5.gcc stat.c -o stat1 -lm ; ./stat1 smcomp.time
-bash: ./stat1: cannot execute binary file
6.we should execute stat1 right now. we maybe not reproduce this problem so 

Actual results:
can execute binary file

Expected results:
can execute binary file

Additional info:
The reason is not do ioc_inode_flush or update io cache page failed after ioc_writev_cbk. The patch commit ioc_inode_flush used by steps mdc_inode_iatt_set_validate->inode_invalidate->ioc_invalidate->ioc_inode_flush .

Comment 1 yinkui 2019-12-20 06:16:05 UTC
Actual results:
can not execute binary file

Comment 2 Sahina Bose 2019-12-23 10:57:42 UTC
Rafi, can you take a look?

Comment 3 Worker Ant 2020-03-12 12:39:23 UTC
This bug is moved to https://github.com/gluster/glusterfs/issues/920, and will be tracked there from now on. Visit GitHub issues URL for further details

Comment 4 Red Hat Bugzilla 2023-09-14 05:49:02 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days