Examples of FSWriteError


Examples of org.apache.cassandra.io.FSWriteError

                writeLong(-1);
                writeInt(-1);
            }
            catch (IOException e)
            {
                throw new FSWriteError(e, filePath);
            }
        }
View Full Code Here

Examples of org.apache.cassandra.io.FSWriteError

                // seek forward to the previous position
                seek(currentPosition);
            }
            catch (IOException e)
            {
                throw new FSWriteError(e, filePath);
            }
        }
View Full Code Here

Examples of org.apache.cassandra.io.FSWriteError

                     + (chunkIndex * 8L));
                getChannel().truncate(getFilePointer());
            }
            catch (IOException e)
            {
                throw new FSWriteError(e, filePath);
            }
        }
View Full Code Here

Examples of org.apache.cassandra.io.FSWriteError

        {
            CLibrary.createHardLink(from, to);
        }
        catch (IOException e)
        {
            throw new FSWriteError(e, to);
        }
    }
View Full Code Here

Examples of org.apache.cassandra.io.FSWriteError

        {
            return File.createTempFile(prefix, suffix, directory);
        }
        catch (IOException e)
        {
            throw new FSWriteError(e, directory);
        }
    }
View Full Code Here

Examples of org.apache.cassandra.io.FSWriteError

    {
        assert file.exists() : "attempted to delete non-existing file " + file.getName();
        if (logger.isDebugEnabled())
            logger.debug("Deleting " + file.getName());
        if (!file.delete())
            throw new FSWriteError(new IOException("Failed to delete " + file.getAbsolutePath()), file);
    }
View Full Code Here

Examples of org.apache.cassandra.io.FSWriteError

        {
            file.getChannel().truncate(size);
        }
        catch (IOException e)
        {
            throw new FSWriteError(e, path);
        }
        finally
        {
            closeQuietly(file);
        }
View Full Code Here

Examples of org.apache.cassandra.io.FSWriteError

    public static void createDirectory(File directory)
    {
        if (!directory.exists())
        {
            if (!directory.mkdirs())
                throw new FSWriteError(new IOException("Failed to mkdirs " + directory), directory);
        }
    }
View Full Code Here

Examples of org.apache.cassandra.io.FSWriteError

            assert dataSize == dataFile.getFilePointer() - (dataStart + 8)
                   : "incorrect row data size " + dataSize + " written to " + dataFile.getPath() + "; correct is " + (dataFile.getFilePointer() - (dataStart + 8));
        }
        catch (IOException e)
        {
            throw new FSWriteError(e, dataFile.getPath());
        }
        sstableMetadataCollector.update(dataFile.getFilePointer() - currentPosition, row.columnStats());
        return afterAppend(row.key, currentPosition, row.deletionInfo(), row.index());
    }
View Full Code Here

Examples of org.apache.cassandra.io.FSWriteError

            dataFile.stream.write(buffer.getData(), 0, buffer.getLength());
            afterAppend(decoratedKey, startPosition, cf.deletionInfo(), index);
        }
        catch (IOException e)
        {
            throw new FSWriteError(e, dataFile.getPath());
        }
        sstableMetadataCollector.update(dataFile.getFilePointer() - startPosition, cf.getColumnStats());
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.