I’ve written a test code on https://github.com/jorise7/cockroach-test
test method is:
- run test.go
- open your browser and visit http://127.0.0.1:8080/numbers
- keep refresh (hold down Command+R on mac, F5 on windows)
- then you will see error message in the console
Both cockroach and PostgreSQL can run.
on postgresql it’s ok, but chcoroach, i got this error:
pq: restart transaction: HandledRetryableTxnError: TransactionRetryError: retry txn “sql txn” id=1641ac4b key=/Table/322/1/264740306979487745/0 rw=true pri=0.01068246 iso=SERIALIZABLE stat=PENDING epo=0 ts=1500862730.007064217,1 orig=1500862730.006540229,0 max=1500862730.006540229,0 wto=false rop=false seq=2
I think I know what the problem is, because in my data driver, all operations with a transaction.
and I need time to the rewrite data driver to confirm it.
but on postgresql is ok, so …
Thank you so provide excellent cockroach and response.
I like cockroachdb very much, I’m going to use it in production.