Skip to content
This repository has been archived by the owner on Aug 6, 2023. It is now read-only.

Exception raised when tried to put empty files into journal #127

Open
addiks opened this issue Feb 15, 2013 · 0 comments
Open

Exception raised when tried to put empty files into journal #127

addiks opened this issue Feb 15, 2013 · 0 comments

Comments

@addiks
Copy link

addiks commented Feb 15, 2013

When installing DoctrineDBAL, i get an exception that tells me it failed to put a file into the journal:

exception 'Pyrus\IOException' with message 'Unable to copy to DoctrineDBAL/Doctrine/DBAL/README.markdown in /home/gerrit/workspace/IDE/data/Modules/Addiks-Core/Pyrus/Latest/php/.journal-data' in /usr/git/Pyrus.addiks/src/Pyrus/AtomicFileTransaction/Transaction.php:151
Stack trace:
#0 /usr/git/Pyrus.addiks/src/Pyrus/Installer.php(527): Pyrus\AtomicFileTransaction\Transaction->createOrOpenPath('DoctrineDBAL/Do...', Resource id #2733, 420)
#1 /usr/git/Pyrus.addiks/src/Pyrus/Installer.php(328): Pyrus\Installer->install(Object(Pyrus\Package))
#2 /usr/workspace/include_path/Addiks/Core/Service/PyrusAgent.php(141): Pyrus\Installer::commit()
#3 /usr/workspace/include_path/Addiks/Core/Service/Autoloader/Chained.php(131): Addiks\Core\Service_PyrusAgent->installPackage('doctrine/Doctri...')
...
#15 {main}

After looking at it, i see that the file it is trying to put into journal is empty (0 bytes). The method that is performing the copy does also check the count of bytes copied and raises that exception above if 0 (zero) bytes get copied. That way it is impossible to put empty files into journal.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant