You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by Alexander Kolbasov <ak...@cloudera.com> on 2018/01/25 22:12:56 UTC

Alternative fix for DB notifications (HIVE-16886)

While looking at the fix for HIVE-16886, I noticed that DataNucleus
provides a generic way of doing SELECT FOR UPDATE so it is possible to
achieve this with just a single-line change rather then the big fix
introduced by HIVE-16886.

What do people think about redoing the fix by using DataNucleus way?

The fix is to do

  query = pm.newQuery(MNotificationNextId.class);
  query.setSerializeRead(true);


- Alex