Guest User

Untitled

a guest
Mar 17th, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.67 KB | None | 0 0
  1. @Entity
  2. data class Thing (
  3. @Id
  4. var id: Long,
  5. var value: String
  6. )
  7.  
  8. # download
  9. wget -qO- https://binaries.cockroachdb.com/cockroach-v1.1.5.linux-amd64.tgz | tar xvz
  10.  
  11. # start
  12. ./cockroach-v1.1.5.linux-amd64/cockroach start --insecure
  13. # leave terminal open in background
  14.  
  15. # init
  16. cockroach sql --insecure -e "CREATE USER root WITH PASSWORD '123';"
  17. cockroach sql --insecure -e "CREATE DATABASE things_db;"
  18. cockroach sql --insecure -e "GRANT ALL ON DATABASE things_db TO root;"
  19.  
  20. gradle bootRun
  21. # leave terminal open in background
  22.  
  23. python3 stress_test.py
  24.  
  25. PUT OK
  26. find OK
  27. PUT OK
  28. find OK
  29. find OK
  30. find OK
  31. PUT ERROR: {"timestamp":"2018-03-17T16:00:24.616+0000","status":500,"error":"Internal Server Error","message":"Unable to commit against JDBC Connection; nested exception is org.hibernate.TransactionException: Unable to commit against JDBC Connection","path":"/thing/"}
  32. find OK
  33. PUT OK
  34.  
  35. 2018-03-17 17:00:24.615 ERROR 3547 --- [nio-8082-exec-6] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.springframework.orm.jpa.JpaSystemException: Unable to commit against JDBC Connection; nested exception is org.hibernate.TransactionException: Unable to commit against JDBC Connection] with root cause
  36.  
  37. org.postgresql.util.PSQLException: ERROR: restart transaction: HandledRetryableTxnError: TransactionRetryError: retry txn (RETRY_SERIALIZABLE): "sql txn" id=1cb57665 key=/Table/51/1/11125601/0 rw=true pri=0.04354217 iso=SERIALIZABLE stat=PENDING epo=0 ts=1521302424.604752770,1 orig=1521302424.604725980,0 max=1521302424.604725980,0 wto=false rop=false seq=3
Add Comment
Please, Sign In to add comment