cassandra-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Terje Marthinussen <tmarthinus...@gmail.com>
Subject 2GB rows and errros
Date Fri, 04 Mar 2011 19:36:56 GMT
Hi,

Any good reason this guy
 public int bytesPastMark(FileMark mark)
    {
        assert mark instanceof BufferedRandomAccessFileMark;
        long bytes = getFilePointer() - ((BufferedRandomAccessFileMark)
mark).pointer;

        assert bytes >= 0;
        if (bytes > Integer.MAX_VALUE)
            throw new UnsupportedOperationException("Overflow: " + bytes);
        return (int) bytes;
    }

does not show an error more like "Overflow: Maximum row size 2GB.
Currently:" + bytes?

Error you get today is not exactly self explaining :)

Terje

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message