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

duplicate push requests arrive at receiving tessera during send stess tests #882

Closed
nicolae-leonte-go opened this issue Sep 12, 2019 · 0 comments · Fixed by #883
Closed
Labels
0.10.1 bug Something isn't working

Comments

@nicolae-leonte-go
Copy link
Contributor

Please find below the sequence of events from the tessera logs. Transactions are sent from tesseraA to tesseraB (tesseraA makes a push request to tesseraB).

Logs on the tesseraA:

10:58:38.964 [qtp1714007305-63] INFO  c.q.t.server.jaxrs.LoggingFilter - Enter Request : POST : /send
10:58:39.011 [qtp1714007305-63] INFO  c.q.t.d.EncryptedTransactionDAOImpl - Stored transaction 1hh6LZ05xnE4r4fAo2mn7uWVhwajmSaXmTcK547LdRBofBh/cLcK3f315dJq80NUPetQa6uxmPYZRBuxIkWmUA==
10:58:39.011 [qtp1714007305-63] INFO  c.q.t.partyinfo.PartyInfoServiceImpl - Publishing message to http://localhost:50525/
10:58:39.011 [qtp1714007305-63] INFO  c.q.tessera.p2p.RestPayloadPublisher - Publishing message to http://localhost:50525/
10:58:39.061 [qtp1714007305-63] DEBUG c.q.t.a.e.DefaultExceptionMapper - null
com.quorum.tessera.partyinfo.PublishPayloadException: Unable to push payload to recipient url http://localhost:50525/

Logs on tesseraB:

10:58:39.013 [qtp852760745-50] INFO  c.q.t.server.jaxrs.LoggingFilter - Enter Request : POST : /push
10:58:39.014 [qtp852760745-50] INFO  c.q.t.d.EncryptedTransactionDAOImpl - Stored transaction 1hh6LZ05xnE4r4fAo2mn7uWVhwajmSaXmTcK547LdRBofBh/cLcK3f315dJq80NUPetQa6uxmPYZRBuxIkWmUA==
10:58:39.014 [qtp852760745-50] INFO  c.q.t.t.TransactionManagerImpl - Stored payload with hash 1hh6LZ05xnE4r4fAo2mn7uWVhwajmSaXmTcK547LdRBofBh/cLcK3f315dJq80NUPetQa6uxmPYZRBuxIkWmUA==
10:58:39.014 [qtp852760745-50] INFO  c.q.t.server.jaxrs.LoggingFilter - Exit Request : POST : /push
...
10:58:39.016 [qtp852760745-78] INFO  c.q.t.server.jaxrs.LoggingFilter - Enter Request : POST : /push
10:58:39.016 [qtp852760745-78] INFO  c.q.t.d.EncryptedTransactionDAOImpl - Stored transaction 1hh6LZ05xnE4r4fAo2mn7uWVhwajmSaXmTcK547LdRBofBh/cLcK3f315dJq80NUPetQa6uxmPYZRBuxIkWmUA==
10:58:39.036 [qtp852760745-78] WARN  eclipselink.logging.all - Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.7.3.v20180807-4be1041): org.eclipse.persistence.exceptions.DatabaseException
Internal Exception: org.h2.jdbc.JdbcSQLIntegrityConstraintViolationException: Unique index or primary key violation: "PUBLIC.PRIMARY_KEY_D ON PUBLIC.ENCRYPTED_TRANSACTION(HASH) VALUES 2390"; SQL statement:
INSERT INTO ENCRYPTED_TRANSACTION (ENCODED_PAYLOAD, TIMESTAMP, HASH) VALUES (?, ?, ?) [23505-199]
Error Code: 23505

The logs suggest that even though a single push is performed by tesseraA two requests with the same content are being processed on tesseraB.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.10.1 bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants