Skip to content
This repository has been archived by the owner on Sep 26, 2019. It is now read-only.

Reduce log level when invalid messages received from peers #274

Merged
merged 9 commits into from
Nov 19, 2018

Conversation

ajsutton
Copy link
Contributor

PR description

Update DeFramer to treat FramingException as an indication that an invalid message was received - log the error at debug level and disconnect with BREACH_OF_PROTOCOL rather than logging at error level.

Update Framer to ensure that it throws FramingException for any invalid message situations, including being unable to decompress a message.

Given that SnappyCompressor is the only implementation of Compressor remove the interface and CompressionException (which SnappyCompressor was failing to convert exceptions to anyway).

Fixed Issue(s)

fixes #251

@@ -32,7 +32,7 @@ public static void main(final String... args) {
new BlockImporter(),
new RunnerBuilder(),
new PantheonControllerBuilder(),
new Builder());
new SynchronizerConfiguration.Builder());
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I admit this change is completely unrelated to this PR but just changes which import we use to make things more readable.

@ajsutton ajsutton added the bug Something isn't working label Nov 19, 2018
@ajsutton ajsutton merged commit c8549bd into PegaSysEng:master Nov 19, 2018
@ajsutton ajsutton deleted the decompresision branch November 19, 2018 03:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants