[Bugs] [Bug 1065634] Enabling compression and encryption translators on the same volume causes data corruption

bugzilla at redhat.com bugzilla at redhat.com
Tue Jan 19 13:44:02 UTC 2016


https://bugzilla.redhat.com/show_bug.cgi?id=1065634

Prashanth Pai <ppai at redhat.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|ppai at redhat.com             |bugs at gluster.org
              Flags|needinfo?(ppai at redhat.com)  |
                   |needinfo?(ppai at redhat.com)  |



--- Comment #5 from Prashanth Pai <ppai at redhat.com> ---
# gluster volume info test

Volume Name: test
Type: Distributed-Replicate
Volume ID: 2a31cc3b-0a39-4aeb-a041-265330a8a14e
Status: Started
Number of Bricks: 2 x 2 = 4
Transport-type: tcp
Bricks:
Brick1: saio:/export/brick1/b
Brick2: saio:/export/brick2/b
Brick3: saio:/export/brick3/b
Brick4: saio:/export/brick4/b
Options Reconfigured:
performance.io-cache: off
performance.read-ahead: off
features.encryption: on
encryption.master-key: /root/keys/master.key
performance.open-behind: off
performance.write-behind: off
performance.quick-read: off
network.compression: on
performance.readdir-ahead: on
auto-delete: disable

Tried this out and at first it did seem to work fine as shown below.

# echo "hello world" > /mnt/gluster-object/test/o1

# cat /mnt/gluster-object/test/o1
hello world

But NOT quite for bigger files:

root# ls -l ./rabbitmq-server-3.3.4-1.noarch.rpm 
-rw-r--r--. 1 root root 3943201 Jun 24  2014
./rabbitmq-server-3.3.4-1.noarch.rpm

root# cp ./rabbitmq-server-3.3.4-1.noarch.rpm /mnt/gluster-object/test/
cp: overwrite ‘/mnt/gluster-object/test/rabbitmq-server-3.3.4-1.noarch.rpm’? y

root# md5sum ./rabbitmq-server-3.3.4-1.noarch.rpm
/mnt/gluster-object/test/rabbitmq-server-3.3.4-1.noarch.rpm
da246de9bd2288b090c699e272b19ece  ./rabbitmq-server-3.3.4-1.noarch.rpm
1f19aa26bb5cace41d022483fd6df4d5 
/mnt/gluster-object/test/rabbitmq-server-3.3.4-1.noarch.rpm

root# echo 3 > /proc/sys/vm/drop_caches

root# md5sum ./rabbitmq-server-3.3.4-1.noarch.rpm
/mnt/gluster-object/test/rabbitmq-server-3.3.4-1.noarch.rpm
da246de9bd2288b090c699e272b19ece  ./rabbitmq-server-3.3.4-1.noarch.rpm
211482e270fa7c21ff66a0ac7eba6f9e 
/mnt/gluster-object/test/rabbitmq-server-3.3.4-1.noarch.rpm

root# echo 3 > /proc/sys/vm/drop_caches

root# md5sum ./rabbitmq-server-3.3.4-1.noarch.rpm
/mnt/gluster-object/test/rabbitmq-server-3.3.4-1.noarch.rpm
da246de9bd2288b090c699e272b19ece  ./rabbitmq-server-3.3.4-1.noarch.rpm
379d6b5dde099579ef6a2fc52baae1c3 
/mnt/gluster-object/test/rabbitmq-server-3.3.4-1.noarch.rpm

As seen above, the file content is different EVERY time it is read!

I also see the mount logs flooded with this:
[2016-01-19 13:05:03.962772] E [mem-pool.c:554:mem_put]
(-->/usr/local/lib/glusterfs/3.8dev/xlator/mount/fuse.so(+0x8a4b)
[0x7f259df4fa4b]
-->/usr/local/lib/glusterfs/3.8dev/xlator/mount/fuse.so(+0x899c)
[0x7f259df4f99c] -->/usr/local/lib/libglusterfs.so.0(mem_put+0x162)
[0x7f25a6b24961] ) 0-mem-pool: mem-pool ptr is NULL


So this issue exists in latest master code too.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.


More information about the Bugs mailing list