Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • May 12 23:51

    mikereiche on 4.2.x

    Upgrade Couchbase Java SDK to 3… (compare)

  • May 12 23:51
    mikereiche closed #1137
  • May 12 23:50
    mikereiche opened #1137
  • May 12 23:48

    mikereiche on datacouch_1136_upgrade_to_java_sdk_3_1_5

    Upgrade Couchbase Java SDK to 3… (compare)

  • May 12 14:26

    odrotbohm on 2.5.x

    Upgrade to Spring HATEOAS 1.3.1… (compare)

  • May 12 14:26

    odrotbohm on 2.4.x

    Upgrade to Spring HATEOAS 1.2.6… (compare)

  • May 12 12:58

    mp911de on main

    Disable unit tests for Kotlin u… (compare)

  • May 12 12:58

    mp911de on 2.5.x

    Disable unit tests for Kotlin u… (compare)

  • May 12 12:53

    mp911de on main

    Switch Kotlin test sources to l… (compare)

  • May 12 12:53

    mp911de on 2.5.x

    Switch Kotlin test sources to l… (compare)

  • May 12 12:25
    christophstrobl opened #3647
  • May 12 12:05

    christophstrobl on 3602

    Update Documentation (compare)

  • May 12 10:00

    mp911de on 2.4.x

    Upgrade to Lettuce 6.0.5. Clos… (compare)

  • May 12 10:00

    mp911de on 2.5.x

    Upgrade to Lettuce 6.1.2. Clos… Guard non-initialized RedisConn… (compare)

  • May 12 10:00

    mp911de on main

    Upgrade to Lettuce 6.1.2. Clos… Guard non-initialized RedisConn… (compare)

  • May 12 09:58

    mp911de on 2057

    (compare)

  • May 12 09:58
    mp911de closed #2058
  • May 12 09:57
    mp911de unlabeled #2058
  • May 12 09:57
    mp911de labeled #2058
  • May 12 09:26

    mp911de on 3.1.x

    Consider full type descriptors … (compare)

both of these show elasticsearch as a technology that is valuable and can/should be adopted
anyways, yeah elasticsearch will probably be around for sometime, haven't heard of a lot of production ready open source alternatives
Nick Caballero
@nickcaballero
it's possible that it gets forked away from spring data project, similar to what happened to the aws cloud project from spring cloud
but i dunno, i think it really depends on how many are using/contributing to the project and based on its popularity, it will probably stick around
Peter-Josef Meisch
@sothawo
Spring Data Elasticsearch is a community driven module as well. And to be honest - contribution by the community is pretty small. I started as a maintainer in April 2019, and since then there were 46 commits by community members, 315 by me - as we do 1 commit per issue that's the number of issues addressed in these two years. I did not count the commits made by vmware/pivotal/spring committers, these are mostly commits with regards to releasing the versions.
So Spring Data Elasticsearch is an active module, although it's basically a one man show. I have no plans to give up the project lead or maintainer's role, so it will still be alive for the next time.
Nick Caballero
@nickcaballero
@sothawo :thumbsup:
would be nice if there were any metrics on usage of libraries similar to how NPM has stats regarding most downloaded modules - https://www.npmtrends.com/elasticsearch
Mark Paluch
@mp911de
It's an open-source project after all which lives from folks maintaining and contributing to it. Having high consumption on one side and little to no contribution on the other one isn't really a sustainable model. The Elasticsearch module specifically had a couple of active iterations where maintainers changed in between and in that no-maintenance periods, Spring Data Elasticsearch remained basically unmaintained.
That being said, if you want to use Spring Data Elasticsearch in your project then you should consider contributing back in some sense.
Johan Blomgren
@blommish

HikariDatabase + TaskExecutor(ThreadPoolTaskExecutor)

executor.setWaitForTasksToCompleteOnShutdown(true)
executor.setAwaitTerminationSeconds(30)

I have running tasks that are stopped after the database is stopped. Is it possible to make the running tasks stop before the database is stopped?

Manoj Chauhan
@manoj.kiwitech_gitlab

HikariDatabase + TaskExecutor(ThreadPoolTaskExecutor)

executor.setWaitForTasksToCompleteOnShutdown(true)
executor.setAwaitTerminationSeconds(30)

I have running tasks that are stopped after the database is stopped. Is it possible to make the running tasks stop before the database is stopped?

I have also faced this problem in past, I used to kill processes manually. I am also interested in a better answer.

Dirk Luijk
@dirkluijk
Spring Data JDBC 2020.0.0 seems to ignore?currentSchema=foo in the Spring Datasource url. Did someone else had that issue?
1 reply
might be a more general issue with Spring Data
Kenneth
@kennywk
So after further analysis, reviewing the thread dump, it appears that after a successful deployment of the web application in wildfly, spring data mongo hangs on establishing the connection and verifying indexes. (Spring-data-mongodb-2.2.9)
The exact debug log message hangs at MongoPersistentEntityIndexCreator checkForIndexes
It does appear to be connected as highlighted by the log entry: cluster info - Monitor thread successfully connected to server with description ServerDescription{address=127.0.0.1:27017, type=STANDALONE, state=CONNECTED, ok=true, version=ServerVersion{versionList=[4, 2, 1]}, minWireVersion=0, maxWireVersion=8, maxDocumentSize=16777216, logicalSessionTimeoutMinutes=30, roundTripTimeNanos=3900255}.... but the indexing process hangs deployment until the deployment times out.
Mark Paluch
@mp911de
@kennywk depending on the database size that can happen. You might want to either manage your indexes externally so that they do not prevent application startup or enable them for background creation.
Kenneth
@kennywk
This occurs with no data in the database.
Vanilla load/deploy
You mention to manage it externally... assuming this is toggleable within spring-data-mongo in some way? The only indexes currently used is the @ID.
Mark Paluch
@mp911de
Can you post the thread dump?
Ghenadii Batalski
@ghenadiibatalski
Hey all, may i ask here about spring data mongodb?
Ghenadii Batalski
@ghenadiibatalski
Okay, i see, someone already asks about Mongo above, so i would just write my question down:
I save a single document via MongoTemplate.save() and then i return some detail from the saved entity. The following request tries to find an entity (possibly on a different node/instance) by this detail, but the entity isn't there. Some time later the entity is there and can be selected by the given detail. Mongodb runs a single instance. Is this a known behaviour? I expect, the entity is at least written to a some kind log and from that time can be found by other clients. Is my assumption about mongodb wrong? I should also point out that this behaviour occurs only from the mass test via jmeter with a higher request rate (50 per seconds or above). Thanks and regards
Mark Paluch
@mp911de

The following request tries to find an entity (possibly on a different node/instance) by this detail,

That sounds like eventual consistency in action. Spring Data MongoDB can be used with different write concerns/read preferences to tune for consistency. Other than that Spring Data is operating on top of the driver so you will see the exact same behavior when using the driver directly

There's nothing that would actively do threading and get in your way.
Ghenadii Batalski
@ghenadiibatalski

There's nothing that would actively do threading and get in your way.

Can i sync the db state before returning from the request?

Mark Paluch
@mp911de
check out write concerns and probably causal consistency (https://docs.mongodb.com/manual/core/causal-consistency-read-write-concerns/)
Ghenadii Batalski
@ghenadiibatalski
@mp911de okay, thanks!
Kenneth
@kennywk
@mp911de i'll see what i can get... the thread dump wasnt all that eventful.
Johan Blomgren
@blommish
Is it correct that OptimisticLockingFailureException is wrapped in org.springframework.data.relational.core.conversion.DbActionExecutionException: Failed to execute DbAction.UpdateRoot I thought it would be rootexception ?
3 replies
James Howe
@OrangeDog
Hibernate FlushMode. I would like it to by default be MANUAL in read only transactions and COMMIT otherwise. Is this already (partially?) the case? If not what's the easiest way to make it the case (a property set somewhere and/or custom code at some level), and which project would be the place to request built-in support for such a configuration? In an ideal world I guess it would match the isolation level (i.e. COMMIT for read-committed, AUTO for repeatable-read, and ALWAYS for serialized).
Adding @QueryHints to everything is not ideal in the first place, but obviously also doesn't account for transaction properties.
Nor is always injecting the EntityManager/Session everywhere when using Data repositories
James Howe
@OrangeDog
Or actually the other way around, as you'd have to flush in order to read commited changes, and not flushing implies you'll always read the same thing.
James Howe
@OrangeDog

SessionFactory.getCurrentSession() always throws wherever I've tried to put it

No CurrentSessionContext configured!

Aha, which has lead me to SpringJtaSessionContext, so the read-only => MANUAL would be sorted if that were actually used
James Howe
@OrangeDog
Turns out hibernate ignores the mode and insists on a flush in my situation anyway.
https://hibernate.atlassian.net/browse/HHH-2399
Morgan
@morganlutz
Does anyone have experience using spring-data-elasticsearch with aws and has time to help a noob? I need to sign the requests - I followed this example: https://gist.github.com/jleskovar-tyro/620e18d05c69ee9568ece8609c21be66... added the interceptor to the high level rest client, but no dice. I was hoping to find a more complete / up-to-date example to compare what I have vs something that is working
9 replies
Joseph Tarbit
@Sm0keySa1m0n
I'm using Spring Data Neo4j with reactor, when I save two entities with the same ID and then subscribe to each of those operations it creates a duplicate entity in the database. I'm using optimistic locking and when I check the database both entities have been assigned the same version number.
Joseph Earl
@josephearl
Hi I have a @DataJdbcTest and a custom AbstractJdbcConfigurationconfiguration that overrides jdbcMappingContext
The test does not seem to load my custom configuration. However if I replace @DataJdbcTest with @SpringBootTest my configuration is loaded. and the test passes.
How can I tell @DataJdbcTest to load my configuration?
I've tried adding @ImportAutoConfiguration(classes = MyJdbcConfiguration.class) but that results in an exception starting the application context:
BeanDefinitionOverrideException: Invalid bean definition with name 'jdbcMappingContext' defined in class path resource ... There is already .. JdbcRepositoriesAutoConfiguration$SpringBootJdbcConfiguration.class ... bound.
2 replies
Sushant Borse
@bsushant-athena
Hi, I'm fairly new to the spring JPA. I wanted to know the best practice to follow when the required output data is a combination of data from multiple tables. So in this case do we create two different models? like one as per table schema and another one as per required output?
Juan David Piza
@JuanDavid31
Any reason why repository.save(...) does not insert an entity? I'm using @DataJpaTest and this behaviour is quite common.
1 reply
Hamza Bahassou
@B-hamza
Hello guys, using spring-data-jdbc we're trying to save a List<UUID> as UUID ARRAY into postgres, as postgres support uuid, we expect the support of List<UUID> but instead we do have Couldn't determine JDBCType for class java.util.UUID. Any idea how to handle that ? Is spring data List support only string ? Even converters<List<UUID>, String> dosnt work
GK Muthu
@gkmuthu

hey guys. I am getting an Instantiation exception for the Jackson JsonNode data type.

Note my custom converter not found even after register during the application up & running. converter not found on converterService.converters list

this is happening after the spring data migration. now we are using spring data 3.1.3

GK Muthu
@gkmuthu
image.png
@guacjack / anyone here, can u please help me to come out of this converter, not fount even after register the custom converter
Tiago Casinhas
@Heatmanofurioso_gitlab
Hi, I've been told that QueryByExample only supports singular attributes.
Is there any alternative to do queries involving complex objects with multiple fields?
I've been told about QueryDSL, but I'd like to know if anyone here suggests on that, or another alternative