Print

Print


Hi Andy,
I observed this behaviour in the unit tests:
xrootd/tests/XrdClTests/FileSystemTest.cc -> test case: MvTest, the test was done with one metamanager, 2 managers, and 4 data servers.

There is a race condition in the following code snippet:

CPPUNIT_ASSERT_XRDST( fs.Mv( filePath1, filePath2 ) ); // first move operation
CPPUNIT_ASSERT_XRDST( fs.Mv( filePath2, filePath1 ) ); // second move operation

that's the error message:

FileSystemTest.cc:136:Assertion
Test name: FileSystemTest::MvTest
assertion failed

It seems to me that the 'Mv' operation is asynchronous and sometimes the second move operation is being executed before the first one (it might be that this behaviour is correct and the test case is erroneous, this needs clarification?)


Reply to this email directly or view it on GitHub.



Use REPLY-ALL to reply to list

To unsubscribe from the XROOTD-DEV list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-DEV&A=1