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-8712 BiasRevocationTest.testFailedRevocationDuringPutAllOnNonOwn… #5692

Conversation

danberindei
Copy link
Member

…erThrowBefore random failures
https://issues.jboss.org/browse/ISPN-8712

  • Avoid NullPointerException in EntryWrappingInterceptor
    when resetting the context entries for a retried command.
  • Wrap triangle ACK exceptions on the originator
  • Use the same logic as for synchronous commands, preserving
    OutdatedTopologyExceptions.

…erThrowBefore random failures

* Avoid NullPointerException in EntryWrappingInterceptor
  when resetting the context entries for a retried command.
* Wrap triangle ACK exceptions on the originator
* Use the same logic as for synchronous commands, preserving
  OutdatedTopologyExceptions.
Copy link
Member

@rvansa rvansa left a comment

Choose a reason for hiding this comment

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

Having a deterministic reproducer would be better, but likely not worth it.

@@ -17,6 +21,7 @@
* @since 9.0
*/
public class ExceptionAckCommand extends BaseRpcCommand {
private static final Log log = LogFactory.getLog(ExceptionAckCommand.class);
Copy link
Member

Choose a reason for hiding this comment

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

unused?

Copy link
Member Author

Choose a reason for hiding this comment

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

Forgot about this comment, sorry.

Copy link
Member

Choose a reason for hiding this comment

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

Me too, I've checked just tests and merged... let's not worry about that.

@@ -235,7 +234,7 @@ private BlockingRunnable createIndirectRpcRunnable(SingleRpcCommand command, int
return new DefaultTopologyRunnable(this, command, Reply.NO_OP, TopologyMode.READY_TX_DATA, commandTopologyId, false) {
@Override
protected void onException(Throwable throwable) {
sendExceptionAck(writeCommand.getCommandInvocationId(), new RemoteException("Exception on " + localAddress, throwable), commandTopologyId);
sendExceptionAck(writeCommand.getCommandInvocationId(), throwable, commandTopologyId);
Copy link
Member

Choose a reason for hiding this comment

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

Did you have any reason to drop the RemoteException wrapping? I probably found useful having the address of exception source at hand...

Copy link
Member Author

Choose a reason for hiding this comment

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

Except for OutdatedTopologyException and AvailabilityException, the wrapping still happens.

@rvansa rvansa merged commit dd0a845 into infinispan:master Jan 23, 2018
@danberindei danberindei deleted the ISPN-8712_EntryWrappingInterceptor_NullPointerException branch January 29, 2018 23:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants