Skip to content

Conversation

@scala-steward-asf
Copy link
Contributor

@scala-steward-asf scala-steward-asf bot commented Mar 30, 2025

About this PR

📦 Updates org.influxdb:influxdb-java from 2.23 to 2.25

Usage

Please merge!

I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.

If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.

Configure Scala Steward for your repository with a .scala-steward.conf file.

Have a fantastic day writing Scala!

⚙ Adjust future updates

Add this to your .scala-steward.conf file to ignore future updates of this dependency:

updates.ignore = [ { groupId = "org.influxdb", artifactId = "influxdb-java" } ]

Or, add this to slow down future updates of this dependency:

dependencyOverrides = [{
  pullRequests = { frequency = "30 days" },
  dependency = { groupId = "org.influxdb", artifactId = "influxdb-java" }
}]
labels: library-update, commit-count:1

@pjfanning
Copy link
Member

Breaks a lot of tests, eg

info] Test docs.javadsl.InfluxDbSourceTest.streamRawQueryResult started
[error] Test docs.javadsl.InfluxDbSourceTest.streamRawQueryResult failed: org.influxdb.InfluxDBMapperException: Unsupported type class java.time.Instant for column time, took 0.013 sec
[error]     at org.influxdb.dto.Point$Builder.setField(Point.java:420)
[error]     at org.influxdb.dto.Point$Builder.addFieldByAttribute(Point.java:369)
[error]     at org.influxdb.dto.Point$Builder.addFieldsFromPOJO(Point.java:312)
[error]     at org.influxdb.impl.InfluxDBMapper.save(InfluxDBMapper.java:53)
[error]     at docs.javadsl.TestUtils.populateDatabase(TestUtils.java:52)
[error]     at docs.javadsl.InfluxDbSourceTest.setUp(InfluxDbSourceTest.java:60)
[error]     ...
[info] Test docs.javadsl.InfluxDbSourceTest.streamQueryResult started
[error] Test docs.javadsl.InfluxDbSourceTest.streamQueryResult failed: org.influxdb.InfluxDBMapperException: Unsupported type class java.time.Instant for column time, took 0.013 sec
[error]     at org.influxdb.dto.Point$Builder.setField(Point.java:420)
[error]     at org.influxdb.dto.Point$Builder.addFieldByAttribute(Point.java:369)
[error]     at org.influxdb.dto.Point$Builder.addFieldsFromPOJO(Point.java:312)
[error]     at org.influxdb.impl.InfluxDBMapper.save(InfluxDBMapper.java:53)
[error]     at docs.javadsl.TestUtils.populateDatabase(TestUtils.java:52)
[error]     at docs.javadsl.InfluxDbSourceTest.setUp(InfluxDbSourceTest.java:60)

@pjfanning
Copy link
Member

pjfanning commented Mar 30, 2025

Our code looks like

  public static void populateDatabase(InfluxDB influxDB, Class<?> clazz) throws Exception {
    InfluxDBMapper influxDBMapper = new InfluxDBMapper(influxDB);
    Constructor<?> cons =
        clazz.getConstructor(
            Instant.class, String.class, String.class, Double.class, Boolean.class, Long.class);
    Object firstCore =
        cons.newInstance(
            Instant.now().minusSeconds(1000), "local_1", "eu-west-2", 1.4d, true, 123l);
    influxDBMapper.save(firstCore);
    Object secondCore =
        cons.newInstance(Instant.now().minusSeconds(500), "local_2", "eu-west-2", 1.4d, true, 123l);
    influxDBMapper.save(secondCore);
  }

The save call now fails. The Java reflection use seems ok because it relates to test classes used in Pekko tests - not InfluxDB classes.

@scala-steward-asf scala-steward-asf bot force-pushed the update/influxdb-java-2.25 branch from 05d3cdf to 44470b3 Compare April 6, 2025 02:36
@scala-steward-asf scala-steward-asf bot force-pushed the update/influxdb-java-2.25 branch 2 times, most recently from b4bd028 to b7fbf37 Compare April 20, 2025 02:38
@scala-steward-asf scala-steward-asf bot force-pushed the update/influxdb-java-2.25 branch from b7fbf37 to 96f0bab Compare April 27, 2025 02:39
@scala-steward-asf scala-steward-asf bot force-pushed the update/influxdb-java-2.25 branch 2 times, most recently from aa88783 to 7609cc6 Compare May 11, 2025 02:39
@scala-steward-asf scala-steward-asf bot force-pushed the update/influxdb-java-2.25 branch 2 times, most recently from b311bb9 to bef16c4 Compare July 13, 2025 02:52
@scala-steward-asf scala-steward-asf bot force-pushed the update/influxdb-java-2.25 branch 2 times, most recently from 43428ec to 9d12158 Compare July 27, 2025 02:53
@scala-steward-asf scala-steward-asf bot force-pushed the update/influxdb-java-2.25 branch 2 times, most recently from c7453dd to 4c2b1cc Compare August 10, 2025 02:53
@scala-steward-asf scala-steward-asf bot force-pushed the update/influxdb-java-2.25 branch 2 times, most recently from ed19a29 to e66ba7f Compare August 24, 2025 02:42
@scala-steward-asf scala-steward-asf bot force-pushed the update/influxdb-java-2.25 branch 2 times, most recently from 919ea1d to 5a8c48d Compare September 7, 2025 02:38
@scala-steward-asf scala-steward-asf bot force-pushed the update/influxdb-java-2.25 branch 2 times, most recently from 4b5a3e1 to 08a3087 Compare September 14, 2025 02:37
@scala-steward-asf scala-steward-asf bot force-pushed the update/influxdb-java-2.25 branch from 08a3087 to 4180694 Compare September 21, 2025 02:38
@scala-steward-asf scala-steward-asf bot force-pushed the update/influxdb-java-2.25 branch 2 times, most recently from 46aa1bd to e5d3f4d Compare October 5, 2025 02:39
@scala-steward-asf scala-steward-asf bot force-pushed the update/influxdb-java-2.25 branch 2 times, most recently from 02238b8 to 99916cf Compare October 12, 2025 02:37
@scala-steward-asf scala-steward-asf bot force-pushed the update/influxdb-java-2.25 branch from 99916cf to 26bf343 Compare October 19, 2025 02:41
@scala-steward-asf scala-steward-asf bot force-pushed the update/influxdb-java-2.25 branch from 26bf343 to e7bd034 Compare October 27, 2025 11:53
@scala-steward-asf scala-steward-asf bot force-pushed the update/influxdb-java-2.25 branch from e7bd034 to 642368e Compare November 2, 2025 02:41
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.

1 participant