Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8045127
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T05:26:48+00:00 2026-06-05T05:26:48+00:00

I have multiple machines running a service that is updating and reading values from

  • 0

I have multiple machines running a service that is updating and reading values from a database using Hibernate.

Whenever I need to update a DB value in my service, I use an upgrade nowait lock, and if I can’t get the lock, I just retry later.

void lock(Job job) {
    sessionFactory.session.lock(job, LockMode.UPGRADE_NOWAIT);
}

There is one place in my service where I must update the DB value there, and I cannot retry. I figured I’d just use a normal upgrade lock in those spots, and it can just wait however long it needs to update the value.

void waitForLock(Job job) {
    sessionFactory.session.lock(job, LockMode.UPGRADE);
}

But now I see this error pop up sometimes…

org.hibernate.dialect.HSQLDialect - HSQLDB supports only READ_UNCOMMITTED isolation

Is there a way to guarantee that this value will be updated first time using Hibernate?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T05:26:51+00:00Added an answer on June 5, 2026 at 5:26 am

    You are using an old version of HSQLDB which does not support transaction isolation. Use the latest version (2.2.8 or later) which does.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have got python code running on multiple analyzer machines each picking documents from
I have multiple instances of a service running on multiple EC2 instances and I
I have the same server side application running on multiple machines. I would like
I have a socket server running on multiple machines. It works like a charm
I'm running Redis locally and have multiple machines communicating with redis on the same
Any one have an idea to share running multiple tomcats on single machine with
I have multiple consumer threads waiting on a CountDownLatch of size 1 using await()
I have multiple zip files that have the same structure -- they contain XML
I have multiple sections... within these sections there are few child elements... I need
I have an n-tier application with the different tiers running on different machines. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.