Coder Social home page Coder Social logo

embed-influxdb's People

Contributors

aveuiller avatar faisalferoz avatar fsanaulla avatar trojanbug avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

embed-influxdb's Issues

Embedded Influx doesn't work on mac os

I use the provided code snippet to start embedded influx on mac os 10.12.6, but I every time I try to run it I get the following message: [influxd error]/var/folders/z6/zxktn8v10nx_ssb1zctm_5w80000gn/T/extract-c9d95ee0-f9fb-4387-bb94-e85806f45c21influxd: /var/folders/z6/zxktn8v10nx_ssb1zctm_5w80000gn/T/extract-c9d95ee0-f9fb-4387-bb94-e85806f45c21influxd: cannot execute binary file
[influxd error]

Expose server state

It's will be great to have the opportunity to be able to check server state, for some internal manipulation, like to lock the thread until influx not stopped and cleaned properly.
Will be enough to have some getter method that will safely expose server state.

public ServerState getState() {
   return currentState;
}

Support for InfluxDB2

Is there any plans to support InfluxDB 2.0?
If I had time to contribute a PR would it be accepted?

Enable the user to feed an existing configuration file

As mentioned by @fsanaulla in #6, we should propose a ConfigurationWriter implementation able to use an existing influx config file.

I think in this case the methods should have the following behaviour:

  • addStatement: Throw an UnsupportedOperationException.
  • writeFile: Return the user given config file.
  • getDataPath: The main difficulty here since we should parse the given configuration file to retrieve the data path. And even if our configuration centralize all the data in a directory, the user defined configuration may come with multiple data directory.

Maybe we should give the option to the user to set a data directory to remove on server stop? This would avoid us to parse the given configuration file.

java.lang.NoSuchFieldException: handle

I am trying to set up a test context on Spring Boot with JDK 11 and am having the following problem:

20:16:22.120 [main] INFO io.apisense.embed.influx.InfluxServer - Initializing server: io.apisense.embed.influx.InfluxServer@57c758ac 20:16:22.206 [main] INFO io.apisense.embed.influx.InfluxServer - Starting server: io.apisense.embed.influx.InfluxServer@57c758ac 20:16:22.208 [main] DEBUG io.apisense.embed.influx.configuration.InfluxConfigurationWriter - Writing configuration file into: /var/folders/ny/jtc4x5md3gb7ff_79k7srk_80000gn/T/influxdb.config7344154943554392480111696521971499 20:16:22.222 [main] DEBUG io.apisense.embed.influx.execution.embed.InfluxProcess - Using config file /var/folders/ny/jtc4x5md3gb7ff_79k7srk_80000gn/T/influxdb.config7344154943554392480111696521971499 java.lang.NoSuchFieldException: handle at java.base/java.lang.Class.getDeclaredField(Class.java:2411) at de.flapdoodle.embed.process.runtime.Processes.windowsProcessId(Processes.java:109) at de.flapdoodle.embed.process.runtime.Processes.access$200(Processes.java:51) at de.flapdoodle.embed.process.runtime.Processes$PidHelper$2.getPid(Processes.java:209) at de.flapdoodle.embed.process.runtime.Processes.processId(Processes.java:72) at de.flapdoodle.embed.process.runtime.ProcessControl.<init>(ProcessControl.java:64) at de.flapdoodle.embed.process.runtime.ProcessControl.start(ProcessControl.java:205) at de.flapdoodle.embed.process.runtime.AbstractProcess.<init>(AbstractProcess.java:98) at io.apisense.embed.influx.execution.embed.InfluxProcess.<init>(InfluxProcess.java:25) at io.apisense.embed.influx.execution.embed.InfluxExecutable.start(InfluxExecutable.java:24) at io.apisense.embed.influx.execution.embed.InfluxExecutable.start(InfluxExecutable.java:11) at de.flapdoodle.embed.process.runtime.Executable.start(Executable.java:101) at io.apisense.embed.influx.execution.InfluxExecutor.start(InfluxExecutor.java:41) at io.apisense.embed.influx.InfluxServer.start(InfluxServer.java:65) at br.com.picpay.conciliations.TEste.main(TEste.java:41)

Taking a good look at the problem, I noticed that the java.lang.ProcessImpl class does not have the handle field, but the processHandle field, so the exception is thrown.

Regards.

Incorrect UDP section generation

Instead of generating [[udp]] it generates [udp]. Solution can be find here.
In short, we need wrap UDP section content in List, when putting it to config map.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.