Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ISPN-12801 Hot Rod client logs a timeout error after every server error #9097

Merged

Conversation

danberindei
Copy link
Member

https://issues.redhat.com/browse/ISPN-12801

  • Cancel the timeout future on completeExceptionally().
  • Add a test for cache creation failure.
  • Improve logging for admin and execute operations.

Copy link
Member

@wburns wburns left a comment

Choose a reason for hiding this comment

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

Changes look good, however it is conflicted now as I ended up fixing the cancelling of the timeout in another PR as it causes a temporary memory leak.

@@ -68,4 +70,20 @@ protected void executeOperation(Channel channel) {
public void acceptResponse(ByteBuf buf, short status, HeaderDecoder decoder) {
complete(bytes2obj(channelFactory.getMarshaller(), ByteBufUtil.readArray(buf), dataFormat.isObjectStorage(), cfg.getClassAllowList()));
}

@Override
protected void addParams(StringBuilder sb) {
Copy link
Member

Choose a reason for hiding this comment

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

This seems a bit unrelated, but fine

Copy link
Member Author

Choose a reason for hiding this comment

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

Without this change, cache creation operations are logged as AdminOperation (default), with no mention of the cache name.

* Extract timeout task cancellation to a new method
* Add a test for cache creation failure.
* Add scheduled task check in ServerErrorTest
* Improve logging for admin and execute operations.
@danberindei danberindei force-pushed the ISPN-12801_hotrod_client_timeout branch from 00f6ae1 to 67928d5 Compare March 15, 2021 10:12
@wburns wburns merged commit 0322cab into infinispan:master Mar 19, 2021
@wburns
Copy link
Member

wburns commented Mar 19, 2021

Integrated into master, thanks @danberindei !

@danberindei danberindei deleted the ISPN-12801_hotrod_client_timeout branch March 19, 2021 18:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants