Skip to content

Instantly share code, notes, and snippets.

View galderz's full-sized avatar

Galder Zamarreño galderz

  • Red Hat
  • Switzerland
View GitHub Profile

ISPN-9194 EntityRegionAccessStrategyTest.testRemoveAll (25.05_2)

Try locate the size() calls at the end of testRemove

grep  -nH -e "org.infinispan.test.hibernate.cache.commons.entity.EntityRegionAccessStrategyTest" infinispan.log
...
infinispan.log:170081:2018-05-25 19:14:08,648 INFO  [org.hibernate.testing.junit4.CustomRunner] (main:[]) Test: testRemove
...
infinispan.log:170369:2018-05-25 19:14:08,654 DEBUG [org.infinispan.test.hibernate.cache.commons.entity.EntityRegionAccessStrategyTest] (Time-limited test:[]) Create end invalidation latch: java.util.concurrent.CountDownLatch@6b412650[Count = 0]
...
2018-05-25 19:14:08,654 DEBUG [org.hibernate.engine.transaction.internal.TransactionImpl] (Time-limited test:[]) begin
@galderz
galderz / clean-install-high-sierra-apfs.md
Last active July 3, 2019 21:11
How To Clean Install High Sierra on APFS-formatted main HD

Clean Install High Sierra on APFS-formatted main HD

Installation Steps

  1. From 10.11 or 10.12 systems, format an external hard drive with at least 500gb with "Mac Os Extended Journaled".
  2. Download High Sierra Beta and install it in the external hard drive.
  3. When the system reboots and finishes installation, it will boot from the external HD. Go to Preferences and change Startup Disk to be main HD.
  4. Reboot and press Option key when the computer makes a beep and select external HD to boot from it.
  5. Once booted again into external HD, format main HD to be APFS.
testAll[read-only, INVALIDATION_SYNC](org.infinispan.test.hibernate.cache.functional.cluster.NaturalIdInvalidationTest) Time elapsed: 0.526 sec <<< FAILURE!
java.lang.AssertionError: Citizen (1234) should have present in the cache
at org.junit.Assert.fail(Assert.java:88)
at org.infinispan.test.hibernate.cache.functional.cluster.NaturalIdInvalidationTest.assertLoadedFromCache(NaturalIdInvalidationTest.java:144)
at org.infinispan.test.hibernate.cache.functional.cluster.NaturalIdInvalidationTest.testAll(NaturalIdInvalidationTest.java:114)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
import StartApp
import PutKeyValue exposing (init, update, view)
app =
StartApp.start
{ init = init
, update = update
, view = view
var main = Elm.worker(Elm.Main, {});
function logger(model) {
console.log('Model: ' + model);
}
main.ports.putKeyValue.subscribe(logger);
;; Haskell customizations
;; Install sanboxed ghc-mod version that gets around ghc-mod/issues/437
(progn (cd "/opt/ghc-mod/elisp") (normal-top-level-add-subdirs-to-load-path))
(if (fboundp 'normal-top-level-add-subdirs-to-load-path)
(let* ((my-lisp-dir "/opt/ghc-mod/elisp")
(default-directory my-lisp-dir))
(setq load-path (cons my-lisp-dir load-path))
(normal-top-level-add-subdirs-to-load-path)))
s/RadarGun-2.0.0-SNAPSHOT/lib/hdrhistogram-2.0.0-SNAPSHOT.jar:/home/g/Benchmarks/RadarGun-2.0.0-SNAPSHOT/lib/HdrHistogram-2.1.0.jar:/home/g/Benchmarks/RadarGun-2.0.0-SNAPSHOT/lib/jboss-transaction-api-1.0.1.GA.jar:/home/g/Benc
hmarks/RadarGun-2.0.0-SNAPSHOT/lib/log4j-1.2.16.jar:/home/g/Benchmarks/RadarGun-2.0.0-SNAPSHOT/lib/radargun-core-2.0.0-SNAPSHOT.jar:/home/g/Benchmarks/RadarGun-2.0.0-SNAPSHOT/conf:/lib/tools.jar org.radargun.Slave --master 169
.254.142.64 --slaveIndex 0
--------------------------------------------------------------------------------
PerNodeRollingFileAppender::Using file prefix:w1
07:33:43,823 INFO [org.radargun.RemoteMasterConnection] (main) Attempting to connect to master 169.254.142.64:2103
07:33:45,831 INFO [org.radargun.RemoteMasterConnection] (main) Successfully established connection with master at: 169.254.142.64:2103
07:33:50,386 INFO [org.radargun.Slave] (main) Received slave index 0
07:33:50,387 INFO [org.radargun.Slave] (main) Received slave count 1
07:33:50,623 INFO [o
import org.infinispan.client.hotrod.annotation.*;
import org.infinispan.client.hotrod.event.*;
@ClientListener
public class EventLogListener {
// ...
@ClientCacheFailover
public void handleFailover(ClientCacheFailoverEvent e) {
// Deal with client failover, e.g. clear a near cache.
ClientCacheEntryCustomEvent(eventData=ValueAddedEvent{key=1, value='one'}, eventType=CLIENT_CACHE_ENTRY_CREATED)
ClientCacheEntryCustomEvent(eventData=ValueAddedEvent{key=1, value='new-one'}, eventType=CLIENT_CACHE_ENTRY_MODIFIED)
ClientCacheEntryCustomEvent(eventData=ValueAddedEvent{key=1, value='null'}, eventType=CLIENT_CACHE_ENTRY_REMOVED)
import org.infinispan.client.hotrod.*;
RemoteCacheManager rcm = new RemoteCacheManager();
RemoteCache<Integer, String> cache = rcm.getCache();
CustomEventLogListener listener = new CustomEventLogListener();
try {
cache.addClientListener(listener);
cache.put(1, "one");
cache.put(1, "new-one");
cache.remove(1);