On Tue, Aug 9, 2011 at 3:17 PM, Ioan Eugen Stan <stan.ieu...@gmail.com> wrote:
> 2011/8/9 Robert Burrell Donkin <robertburrelldon...@gmail.com>:
>> On Mon, Aug 8, 2011 at 9:57 PM, Ioan Eugen Stan <stan.ieu...@gmail.com> 
>> wrote:
>>> I fixed the exception in the test (forgot to update it when I made the
>>> change). I also fixed some other issues.
>>> Now all tests should pass, except for HBaseMailboxManager which runs
>>> indefinitely. I tried to profile the test case in NetBeans but failed.
>>> I have an idea of what's going on, but not being able to profile the
>>> application will probably take more time.
>>
>> One tactic I sometimes use with type of problem is to add more
>> specific tests. Another is to selectively dummy.
>
> I have tracked down the problem. It is in HBaseMailboxMapper.save() method. 
> [1].
> I have put some System.out.print statements to see what happens and it
> seems that reading from the InputStream blocks.
> This is strange. I will try to see what is causing this. Do the
> messages created in the test suite have content equal to the size?
>
>            while ((b = message.getBodyContent().read()) != -1) {
>                out.write(b);
>            }
>            out.close();
>            out = new
> ChunkOutputStream(sessionMapperFactory.getClusterConfiguration(),
>                    MESSAGES_TABLE, MESSAGE_DATA_HEADERS,
> messageRowKey(message), MAX_COLUMN_SIZE);
>            while ((b = message.getHeaderContent().read()) != -1) {
>                out.write(b);
>            }

I've just had a hard power failure and I'm recovering my main
development box now :-/

It might be tomorrow before I can get back to you but hopefully
someone else will be able to jump in before then...

Robert

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org

Reply via email to