{"action":"created","issue":{"url":"https://api.github.com/repos/paulgoldbaum/scala-influxdb-client/issues/14","repository_url":"https://api.github.com/repos/paulgoldbaum/scala-influxdb-client","labels_url":"https://api.github.com/repos/paulgoldbaum/scala-influxdb-client/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/paulgoldbaum/scala-influxdb-client/issues/14/comments","events_url":"https://api.github.com/repos/paulgoldbaum/scala-influxdb-client/issues/14/events","html_url":"https://github.com/paulgoldbaum/scala-influxdb-client/issues/14","id":139629788,"number":14,"title":"Writing problem","user":{"login":"alifirat","id":5478865,"avatar_url":"https://avatars.githubusercontent.com/u/5478865?v=3","gravatar_id":"","url":"https://api.github.com/users/alifirat","html_url":"https://github.com/alifirat","followers_url":"https://api.github.com/users/alifirat/followers","following_url":"https://api.github.com/users/alifirat/following{/other_user}","gists_url":"https://api.github.com/users/alifirat/gists{/gist_id}","starred_url":"https://api.github.com/users/alifirat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alifirat/subscriptions","organizations_url":"https://api.github.com/users/alifirat/orgs","repos_url":"https://api.github.com/users/alifirat/repos","events_url":"https://api.github.com/users/alifirat/events{/privacy}","received_events_url":"https://api.github.com/users/alifirat/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-09T16:35:46Z","updated_at":"2016-03-10T10:04:40Z","closed_at":"2016-03-10T10:04:40Z","body":"Hi,\r\n\r\nI'm using your library to communicate with influx. I met a problem when I'm writing data : all the data is not inserted like excepted. Here's the scenario : I have two list of Points, each have the same size of 742400. I'm doing this in a sequential way : I insert the points from the first list then the points from the second. For the first list, no problem all the points are inserted but for the second, only 74240 points are inserted. Some points from the lists share the same timestamp but using a tag and not field, the points are not overwritten. Here the way to build the list of points and the way to add into influx :\r\n\r\n```\r\ndef map2points\r\n      (\r\n        m : scala.collection.mutable.Map[String, List[Double]], // matrix of points \r\n        channels : Array[String],\r\n        awsKey : String,\r\n        startime : Long,\r\n        frequency : Double\r\n      ) : List[Point] = {\r\n      m.foldLeft(List[Point]()) { case (acc, (key, values)) =>\r\n        val timed_points : List[Point] = values.zipWithIndex map { case (v, i) =>\r\n          val ts = startime + (math round ((10e6 / frequency) * i)).toLong\r\n          Point(\"titi\",ts)\r\n            .addTag(\"channel\",key)\r\n            .addField(\"value\", v)\r\n        }\r\n        timed_points ++ acc\r\n      }\r\n    }\r\n  }\r\n```\r\n\r\n  ```\r\nval t4 = System.currentTimeMillis\r\n assert(points.size == 742400)\r\n Logger.info(\"Insertion status =  \" + Await.result(database.bulkWrite(points, precision = Precision.MICROSECONDS), 10.seconds))\r\nval t5 = System.currentTimeMillis\r\n\r\n```\r\n\r\nWhich I find weird, the boolean returned by the bulkWrite function is true even all the points are not inserted. Do you have an idea why all the points are not inserted ? Maybe I use the library in a wrong way ?"},"comment":{"url":"https://api.github.com/repos/paulgoldbaum/scala-influxdb-client/issues/comments/194767738","html_url":"https://github.com/paulgoldbaum/scala-influxdb-client/issues/14#issuecomment-194767738","issue_url":"https://api.github.com/repos/paulgoldbaum/scala-influxdb-client/issues/14","id":194767738,"user":{"login":"alifirat","id":5478865,"avatar_url":"https://avatars.githubusercontent.com/u/5478865?v=3","gravatar_id":"","url":"https://api.github.com/users/alifirat","html_url":"https://github.com/alifirat","followers_url":"https://api.github.com/users/alifirat/followers","following_url":"https://api.github.com/users/alifirat/following{/other_user}","gists_url":"https://api.github.com/users/alifirat/gists{/gist_id}","starred_url":"https://api.github.com/users/alifirat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alifirat/subscriptions","organizations_url":"https://api.github.com/users/alifirat/orgs","repos_url":"https://api.github.com/users/alifirat/repos","events_url":"https://api.github.com/users/alifirat/events{/privacy}","received_events_url":"https://api.github.com/users/alifirat/received_events","type":"User","site_admin":false},"created_at":"2016-03-10T10:04:40Z","updated_at":"2016-03-10T10:04:40Z","body":"I fixed my error,  there are some points with the same timestamp and the same tag. It's the reason why some points were not inserted into influx. "}}