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

check if isJsonNull before getAsString #2326

Merged
merged 4 commits into from
Dec 1, 2023

Conversation

AlvaroVega
Copy link
Member

@AlvaroVega AlvaroVega commented Nov 30, 2023

Stack trace:
çtime=2023-11-30T11:22:47.981Z | lvl=ERROR | corr=ca63547c-8f72-11ee-ac81-0a580a800215; cbnotif=1 | trans=b69c016a-1f12-4c45-be86-0478d2316e08 | srv=N/A | subsrv=N/A | comp=cygnus-ngsi | op=processNewBatches | msg=com.telefonica.iot.cygnus.sinks.NGSISink[614] : JsonNull Sink: postgis_urbo-sink-postgis Destination: XXX/YYYY Stack trace:
[com.google.gson.JsonElement.getAsString(JsonElement.java:179), com.telefonica.iot.cygnus.containers.NotifyContextRequest$ContextMetadata.getValue(NotifyContextRequest.java:487), com.telefonica.iot.cygnus.containers.NotifyContextRequest$ContextAttribute.getContextMetadata(NotifyContextRequest.java:387), com.telefonica.iot.cygnus.aggregation.NGSIGenericColumnAggregator.aggregate(NGSIGenericColumnAggregator.java:165), com.telefonica.iot.cygnus.sinks.NGSIPostgisSink.persistBatch(NGSIPostgisSink.java:390), com.telefonica.iot.cygnus.sinks.NGSISink.processNewBatches(NGSISink.java:592), com.telefonica.iot.cygnus.sinks.NGSISink.process(NGSISink.java:369), org.apache.flume.sink.DefaultSinkProcessor.process(DefaultSinkProcessor.java:39), org.apache.flume.SinkRunner$PollingRunner.run(SinkRunner.java:145), java.base/java.lang.Thread.run(Thread.java:829)]

@AlvaroVega AlvaroVega marked this pull request as ready for review December 1, 2023 10:11
@AlvaroVega AlvaroVega requested a review from fgalan December 1, 2023 10:11
CHANGES_NEXT_RELEASE Outdated Show resolved Hide resolved
Copy link
Member

@fgalan fgalan left a comment

Choose a reason for hiding this comment

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

LGTM

@fgalan fgalan merged commit c83f2be into master Dec 1, 2023
5 checks passed
@fgalan fgalan deleted the task/check_isJsonNull_before_getAsString branch December 1, 2023 10:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants