With Gatling 2.3.1 (using csv(file).**records.**toVector instead), simDataTokens returned three expected records and size = 3 with following debugging info:
My2cents: there’s an exception and you don’t see it because you silently trap it and return Vector.empty, which looks very fishy to me.
Have you checked the migration guide and how feeder file location resolution has changed (“data” folder is dropped)?
id: 0, tokens: Map(name → a, token → 1)
15:04:51.395 [ERROR] i.g.a.Gatling$ - Run crashed
java.lang.UnsupportedOperationException: null
at io.gatling.core.feeder.ArrayBasedMap.$plus(ArrayBasedMap.scala:28)
at io.gatling.core.feeder.ArrayBasedMap.$plus(ArrayBasedMap.scala:26)
at com.illumio.commonHeader$.$anonfun$simDataTokens$1(commonHeader.scala:210)
at scala.collection.TraversableLike.$anonfun$map$1(TraversableLike.scala:233)
at scala.collection.Iterator.foreach(Iterator.scala:937)
at scala.collection.Iterator.foreach$(Iterator.scala:937)
at scala.collection.AbstractIterator.foreach(Iterator.scala:1425)
at scala.collection.IterableLike.foreach(IterableLike.scala:70)
at scala.collection.IterableLike.foreach$(IterableLike.scala:69)
at scala.collection.AbstractIterable.foreach(Iterable.scala:54)
at scala.collection.TraversableLike.map(TraversableLike.scala:233)
at scala.collection.TraversableLike.map$(TraversableLike.scala:226)
at scala.collection.AbstractTraversable.map(Traversable.scala:104)
at com.illumio.commonHeader$.(commonHeader.scala:203)
at com.illumio.commonHeader$.(commonHeader.scala)
… 14 common frames omitted
`
It appears the Map addition operation (tokens + (“id” → id)) is not supported? Any suggestion if that’s the case?
Our ArrayBasedMap doesn’t currently implement +, - and updated operations, simply because we don’t need them internally in Gatling and use cases such as yours are pretty exotic.
Feel free to send a PR to implement them.