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

Lack of correlator in retries of rollbacked transactions (Cygnus HDFS) #1770

Closed
smartcitydevops opened this issue Nov 28, 2019 · 2 comments · Fixed by #1800
Closed

Lack of correlator in retries of rollbacked transactions (Cygnus HDFS) #1770

smartcitydevops opened this issue Nov 28, 2019 · 2 comments · Fixed by #1800
Assignees
Labels
Milestone

Comments

@smartcitydevops
Copy link
Collaborator

When there is a transaction in Cygnus HDFS with a final message of a rollback

11/28/194:08:45.810 PM time=2019-11-28T15:08:45.810Z | lvl=INFO | corr=f717a80a-11f0-11ea-a16b-fa163e83ea20 | trans=9a36df35-2d12-49b3-aad5-7f9d2e4c7772 | srv=sc_vlci | subsrv=/sonometros | op=doRollback | comp=Cygnus | msg=com.telefonica.iot.cygnus.sinks.NGSISink[632] : Rollbacking (f49198ca-11f0-11ea-84e4-fa163e83ea20,f717a80a-11f0-11ea-a16b-fa163e83ea20), 10 retries will be done host = pro2-iot-hadoop-nn-01-vlci source = /var/log/cygnus/cygnus_hdfs.log

If we try to check the following retries, the correlator string only is found in a final message of a retry, but , this new transaction lacks its own correlator string

11/28/194:08:56.460 PM | time=2019-11-28T15:08:56.460Z | lvl=INFO | corr=N/A | trans=N/A | srv=N/A | subsrv=N/A | op=processRollbackedBatches | comp=Cygnus | msg=com.telefonica.iot.cygnus.sinks.NGSISink[416] : Finishing internal transaction (f49198ca-11f0-11ea-84e4-fa163e83ea20,f717a80a-11f0-11ea-a16b-fa163e83ea20) host = pro2-iot-hadoop-nn-01-vlci source = /var/log/cygnus/cygnus_hdfs.log
-- | --

We would like to track what happens in this new try, but , with corr=N/A we only can try to guess the logs of this cygnus in a short period of time around this final message. So we understand that this transaction should include its own correlator id

@IvanHdzC
Copy link
Contributor

@smartcitydevops could you provide me a complete log for this scenario where I can fully track the issue in order to propose a solution?

@fgalan
Copy link
Member

fgalan commented Jan 23, 2020

Implemented by PR #1800

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants