[
https://issues.apache.org/jira/browse/JAMES-1533?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13900960#comment-13900960
]
Patrick Sauts commented on JAMES-1533:
--------------------------------------
In fact the pb was somewhere else.
Hbase mailbox has a bug:
when writing or reading the byte from hbase those are signed et the upstream
stream is interrupted when encounter a value < 0.
The fix is pretty simple but as my code is very different than the original one
I won't do a diff:
In the hbase mailbox
class ChunkInputStream method public int read() throws IOException {
...
return chunk[pos++] & 0xff;
}
class ChunkOutputStream method public void write(int b) throws IOException {
....
chunk[(int) pos++] = (byte) (b & 0xff);
}
> MailBox Hbase - failed to retrieve all messages
> -----------------------------------------------
>
> Key: JAMES-1533
> URL: https://issues.apache.org/jira/browse/JAMES-1533
> Project: James Server
> Issue Type: Bug
> Components: MailStore & MailRepository
> Affects Versions: 3.0.0-beta5
> Environment: linux debian / centOs
> Reporter: Patrick Sauts
>
> The hbase imap mailbox implementation return only the last 200 messages.
> even with the parameter
> <connectionBacklog>200000</connectionBacklog>
> It doesn't seem to work better with POP3.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]