quickstart icon indicating copy to clipboard operation
quickstart copied to clipboard

[WFLY-19790] Replaces -ds.xml deprecated filed with Jakarta's DataSou…

Open emmartins opened this issue 1 year ago • 16 comments

…rceDefinition Issue: https://issues.redhat.com/browse/WFLY-19790

emmartins avatar Oct 30 '24 19:10 emmartins

@tadamski I am seeing the following warning when using the DataSourceDefinition instead of the -ds.xml

20:12:46,089 WARN [org.jboss.jca.core.connectionmanager.pool.strategy.OnePool] (ServerService Thread Pool -- 46) IJ000407: No lazy enlistment available for batch-processing_batch-processing_batch-processing_java:jboss/datasources/batch-processingDS

Perhaps there is a property we need to add to the DataSourceDefinition to prevent this?

emmartins avatar Oct 30 '24 20:10 emmartins

@jfdenise FYI it seems Glow is not aware of DataSourceDefinition annotation and reports the following error in this project, if you remove the failOnError

[ERROR] * unbound datasources error: java:jboss/datasources/batch-processingDS

emmartins avatar Oct 30 '24 20:10 emmartins

@liweinan IMHO this is still a work in progress, after all it currently replaces one warn with another, and then there is the provisioning error... I suspect we will need server side and glow side changes to make it "proper"!

@kstekovi WDYT?

emmartins avatar Oct 31 '24 18:10 emmartins

@emmartins cool!

liweinan avatar Nov 01 '24 02:11 liweinan

@tadamski can you please have a look at https://github.com/wildfly/quickstart/pull/973#issuecomment-2448281052 above once you have a chance?

emmartins avatar Nov 15 '24 10:11 emmartins

@kstekovi for the record I don't think we should merge this till we have that new warning suppressed or documented, we should not replace one warning with another.

emmartins avatar Nov 15 '24 10:11 emmartins

@emmartins @liweinan , DataSourceDefinition is going to be natively supported by WildFly Glow. We have the following PR opened:

  • https://github.com/wildfly/wildfly-glow/pull/94
  • https://github.com/wildfly/wildfly/pull/18420 Once merged this would require a WildFly Maven Plugin upgrade and usage of WildFly SNAPSHOT (until WF 35.Beta1 is released).

You would then have to remove the explicit h2-datasource add-on, and the fail-on-error.

jfdenise avatar Nov 22 '24 11:11 jfdenise

thanks @jfdenise , I will keep this open till that happens.

emmartins avatar Nov 22 '24 14:11 emmartins

@tadamski hello?

emmartins avatar Dec 02 '24 15:12 emmartins

@emmartins , FYI, The changes in WildFly have been merged. We are waiting for a new WildFly Maven Plugin release that integrates the support.

jfdenise avatar Dec 02 '24 16:12 jfdenise

@tadamski please please? ^^

emmartins avatar Dec 09 '24 15:12 emmartins

@emmartins @darranl sorry for this huge lag!

In order to get rid of the warning cached connection manager has to be turned on, but I don't see such possibility for annotated datasource. I'm going to create a ironjacamar fix for that but I think this PR can be merged.

FYI I have downgraded logging to DEBUG (JBJCA-1513). CCM is problematic in itself and requires refactor (see JBJCA-1494). It is perfectly fine that it is off by default in datasource annotation parsing and shouldn't introduce any cofusing warn messages.

tadamski avatar Feb 16 '25 21:02 tadamski

@tadamski thanks for your feedback, personally I see no interest in making this change till the warning is gone, after all this would be replacing one warning (that is already documented) with another.

emmartins avatar Feb 17 '25 14:02 emmartins

@emmartins This warning is only informative, tbh I was considering removing it, but after it was downgraded to debug it won't be visible anyway in standard configuration

tadamski avatar Feb 17 '25 15:02 tadamski

@tadamski does this means that WFLY 36 will no longer produce this warning?

emmartins avatar Feb 17 '25 15:02 emmartins

@emmartins yes

tadamski avatar Feb 17 '25 15:02 tadamski