Project

General

Profile

Actions

Tasks #64723

closed

Tasks #63293: Implement fscrypt in libcephfs and cephfs-fuse

Tasks #64160: RMW race detection

ffsb configure issues (gcc fails)

Added by Christopher Hoffman about 2 months ago. Updated about 1 month ago.

Status:
Closed
Priority:
Normal
Category:
-
Target version:
-
% Done:

0%

Tags:
Reviewed:
Affected Versions:
Component(FS):
Labels (FS):
Pull request ID:

Description

Isolated the failure, see below

When appending to file and ls is performed on it at or before 5s it appears stale data is obtained.

rm test.c test.h -f
echo '/* confdefs.h.  */
#define PACKAGE_NAME "" 
#define PACKAGE_TARNAME "" 
#define PACKAGE_VERSION "" 
#define PACKAGE_STRING "" 
#define PACKAGE "ffsb"' > test.h
cat test.h >>test.c
cat >>test.c <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
sleep 5s
ls test.*
cat test.c

Consider the following:
1. remove sleep 5s, script will fail
2. remove ls, script will pass
3. change sleep to 6s, script will pass
4. remove ls and sleep, script will pass

Contents of test.c below

pass case:

/* confdefs.h.  */
#define PACKAGE_NAME "" 
#define PACKAGE_TARNAME "" 
#define PACKAGE_VERSION "" 
#define PACKAGE_STRING "" 
#define PACKAGE "ffsb" 
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}

fail case:

/* confdefs.h.  */
#define PACKAGE_NAME "" 
#define PACKAGE_TARNAME "" 
#define PACKAGE_VERSION "" 
#define PACKAGE_STRING "" 
#define PACKAGE "ffsb" 


Related issues 1 (0 open1 closed)

Related to CephFS - Tasks #64413: File size is not correct after rmwResolvedChristopher Hoffman

Actions
Actions #1

Updated by Christopher Hoffman about 2 months ago

The sleep interval is directly tied to client_caps_release_delay.

Actions #2

Updated by Christopher Hoffman about 2 months ago

  • Parent task changed from #63293 to #64160
Actions #3

Updated by Christopher Hoffman about 2 months ago

This is an issue with not updating metadata with the new appended file size.

Actions #4

Updated by Christopher Hoffman about 2 months ago

  • Related to Tasks #64413: File size is not correct after rmw added
Actions #5

Updated by Christopher Hoffman about 1 month ago

  • Status changed from In Progress to Closed

Fixed by: https://tracker.ceph.com/issues/64413#note-8. The commit is in wip-fscrypt.

Actions

Also available in: Atom PDF