[JIRA] (JENKINS-57639) InfluxDB Plugin Robot Framework "suite_result" data publication fails with org.influxdb.InfluxDBException$FieldTypeConflictException after update to 1.21

100 views
Skip to first unread message

atte.tanskanen@gmail.com (JIRA)

unread,
May 23, 2019, 6:33:03 AM5/23/19
to jenkinsc...@googlegroups.com
Atte Tanskanen created an issue
 
Jenkins / Bug JENKINS-57639
InfluxDB Plugin Robot Framework "suite_result" data publication fails with org.influxdb.InfluxDBException$FieldTypeConflictException after update to 1.21
Issue Type: Bug Bug
Assignee: Aleksi Simell
Components: influxdb-plugin
Created: 2019-05-23 10:32
Environment: Jenkins: 2.164.2
InfluxDB Plugin: 1.21
InfluxDB: 1.4.2
Priority: Minor Minor
Reporter: Atte Tanskanen

InfluxDB plugin fails Robot Framework data publication for measurement "suite_result" in post-build action with below exception. Started happening in all jobs (freestyle and pipeline) after updating Jenkins from 2.107.3 to 2.164.2 and InfluxDB Plugin from 1.15 to 1.21.

Data is being published from same jobs and to same InfluxDB target and database as before the update.

This error fails an otherwise successful build in Jenkins.

 

[InfluxDB Plugin] Collecting data for publication in InfluxDB...
[InfluxDB Plugin] Robot Framework data found. Writing to InfluxDB...
[InfluxDB Plugin] Git ChangeLog data found. Writing to InfluxDB...
[InfluxDB Plugin] Publishing data to: Target{description=XXXX, url=XXXX, username=XXXX, database=XXXX}
ERROR: Build step failed with exception
org.influxdb.InfluxDBException$FieldTypeConflictException: partial write: field type conflict: input field "rf_critical_failed" on measurement "suite_result" is type integer, already exists as type float dropped=562
	at org.influxdb.InfluxDBException.buildExceptionFromErrorMessage(InfluxDBException.java:144)
	at org.influxdb.InfluxDBException.buildExceptionForErrorState(InfluxDBException.java:173)
	at org.influxdb.impl.InfluxDBImpl.execute(InfluxDBImpl.java:796)
	at org.influxdb.impl.InfluxDBImpl.write(InfluxDBImpl.java:455)
	at jenkinsci.plugins.influxdb.InfluxDbPublicationService.writeToInflux(InfluxDbPublicationService.java:294)
Caused: jenkinsci.plugins.influxdb.InfluxReportException
	at jenkinsci.plugins.influxdb.InfluxDbPublicationService.writeToInflux(InfluxDbPublicationService.java:297)
	at jenkinsci.plugins.influxdb.InfluxDbPublicationService.perform(InfluxDbPublicationService.java:268)
	at jenkinsci.plugins.influxdb.InfluxDbPublisher.perform(InfluxDbPublisher.java:347)
	at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:81)
	at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)
	at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690)
	at hudson.model.Build$BuildExecution.cleanUp(Build.java:196)
	at hudson.model.Run.execute(Run.java:1863)
	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
	at hudson.model.ResourceController.execute(ResourceController.java:97)
	at hudson.model.Executor.run(Executor.java:429)
Build step 'Publish build data to InfluxDB' marked build as failure
Finished: FAILURE
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

aleksi.simell@eficode.com (JIRA)

unread,
May 24, 2019, 5:52:02 AM5/24/19
to jenkinsc...@googlegroups.com
Aleksi Simell commented on Bug JENKINS-57639
 
Re: InfluxDB Plugin Robot Framework "suite_result" data publication fails with org.influxdb.InfluxDBException$FieldTypeConflictException after update to 1.21

Did you also update Robot Framework plugin? InfluxDB plugin doesn't specify the type of data it writes, it gets its values from Robot Framework plugin. You have already written into the database with floats, so you cannot write integers there, unless you drop measurement suite_result.

atte.tanskanen@gmail.com (JIRA)

unread,
May 28, 2019, 7:41:04 AM5/28/19
to jenkinsc...@googlegroups.com

Somehow the error disappeared this week even though we didn't do any changes to Jenkins plugins or jobs... I'll close this bug as anyway the original issue was not with InfluxDB plugin.

atte.tanskanen@gmail.com (JIRA)

unread,
May 28, 2019, 7:42:01 AM5/28/19
to jenkinsc...@googlegroups.com
Atte Tanskanen edited a comment on Bug JENKINS-57639
Somehow the error disappeared this week even though we didn't do any changes to Jenkins plugins or jobs... I'll Please close /reject this bug as anyway the original issue was not with InfluxDB plugin.

aleksi.simell@eficode.com (JIRA)

unread,
May 28, 2019, 7:48:02 AM5/28/19
to jenkinsc...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages