Giter VIP home page Giter VIP logo

Comments (9)

bserdar avatar bserdar commented on June 12, 2024

These are not JDBC driver properties, they are datasource properties, and
setting them is already supported. Please let me know if this doesn't work.
Thanks.

On Mon, Jul 27, 2015 at 4:13 AM, mschoepke [email protected] wrote:

Please add support for the following properties of a JDBC driver:

  • validation
    • check-valid-connection-sql
    • validate-on-match
    • background-validation
    • background-validation-millis
    • ...
      • timeout
    • set-tx-query-timeout
    • blocking-timeout-millis
    • idle-timeout-minutes
    • query-timeout
    • use-try-lock
    • allocation-retry
    • allocation-retry-wait-millis
    • ...


Reply to this email directly or view it on GitHub
#54.

from jcliff.

mschoepke avatar mschoepke commented on June 12, 2024

Yes, it works fine, thanks.

from jcliff.

MarS919 avatar MarS919 commented on June 12, 2024

I just found out that using datasource properties in jcliff breaks its Idempotence. jcliff will reload every time it runs.

Example: background-validation-millis should be set to 30000. If I read the log correctly, it finds it to be set to 30000L. Don't know where the L comes from. Of course, it will write the attribute again to be 30000.

Any clue?

from jcliff.

bserdar avatar bserdar commented on June 12, 2024

It is probably because of automatic type conversion. You set some value to
30000, it is internally a long value, so it shows up as 30000L (L means
"long"), jcliff compares the nodes and sees "30000"!="30000L", and applies
the rule again.

If jboss-cli says it is 30000L, then set it to 30000L in your configuration
file, and it should work once. I'll try to find a way to change the
comparison algorithm to ignore such syntax differences.

On Thu, Nov 5, 2015 at 6:41 AM, MarS919 [email protected] wrote:

I just found out that using datasource properties in jcliff breaks its
Idempotence. jcliff will reload every time it runs.

Example: background-validation-millis should be set to 30000. If I read
the log correctly, it finds it to be set to 30000_L_. Don't know where
the L comes from. Of course, it will write the attribute again to be 30000.

Any clue?


Reply to this email directly or view it on GitHub
#54 (comment).

from jcliff.

MarS919 avatar MarS919 commented on June 12, 2024

No, jboss-cli says it's 30000. Just jcliff reads it as 30000L.

Setting it to 30000L in my configuration results in

Exception in thread "main" java.io.IOException: Invalid character: L

from jcliff.

bserdar avatar bserdar commented on June 12, 2024

ok, i'll check

On Thu, Nov 12, 2015 at 7:31 AM, MarS919 [email protected] wrote:

No, jboss-cli says it's 30000. Just jcliff reads it as 30000L.

Setting it to 30000L in my configuration results in

Exception in thread "main" java.io.IOException: Invalid character: L


Reply to this email directly or view it on GitHub
#54 (comment).

from jcliff.

bserdar avatar bserdar commented on June 12, 2024

Please try with 2.10.13.

On Thu, Nov 12, 2015 at 7:32 AM, Burak Serdar [email protected] wrote:

ok, i'll check

On Thu, Nov 12, 2015 at 7:31 AM, MarS919 [email protected] wrote:

No, jboss-cli says it's 30000. Just jcliff reads it as 30000L.

Setting it to 30000L in my configuration results in

Exception in thread "main" java.io.IOException: Invalid character: L


Reply to this email directly or view it on GitHub
#54 (comment).

from jcliff.

MarS919 avatar MarS919 commented on June 12, 2024

Thanks for the new version, but the issue remains the same. Tell me when you need more information from me.

from jcliff.

bserdar avatar bserdar commented on June 12, 2024

Can you send me the full execution log when jcliff is run with this
configuration file causing the problem? Run jcliff with -v, and remove any
passwords in the output please.

Thanks.

On Mon, Nov 16, 2015 at 12:09 AM, MarS919 [email protected] wrote:

Thanks for the new version, but the issue remains the same. Tell me when
you need more information from me.


Reply to this email directly or view it on GitHub
#54 (comment).

from jcliff.

Related Issues (20)

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.