Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
117798: sql: fix float to integer casting r=mgartner a=da-ket Previously, casting a float value to an integer simply truncates the float. This commit fixes that by rounding the float value to the nearest integer, rounding ties to even, as in postgres. Epic: None Fixes: #112515 Release note (bug fix): A bug has been fixed where casts of floats to integers truncated the value. These casts now round a float to the nearest integer, rounding ties to even integers. 118489: concurrency: add basic deadlock tests involving shared locks r=arulajmani a=arulajmani Informs #109634 Release note: None 118640: sql: fix usages of internal executor to delegate from user transaction r=rafiss a=rafiss These commits fix a few usages of the internal executor to use the new interface which delegates to an internal executor that shares the outer txn's state. For ease of review, the testing for this is in a separate PR (where the bugs were discovered): #107990 informs #100178 118653: sql: keep track of per-stmt read committed retries r=rafiss a=rafiss This change makes it possible to view automatic retries performed under read committed txns in the DB Console. fixes #113986 Release note: None 118657: server/status: silence missing CPU cgroup error r=nvanbenschoten a=nvanbenschoten Fixes #111648. This commit eliminates log spam when a CPU cgroup is not configured for the cockroach process. This is a supported deployment mode, but since `v22.2.11`/`v23.1.3`/`v23.2.0` (df55958), we've been spamming the logs with "unable to get CPU capacity" errors every 10 seconds when running outside of a CPU cgroup. I considered reducing the severity of the log message from ERROR to INFO, but even that seemed loud for a log message every 10s in a supported deployment mode. For now, we remove the log message. Release note (bug fix): Cockroach will no longer spam the logs with "unable to get CPU capacity" errors every 10 seconds when running outside of a CPU cgroup. 118660: server: disambiguate duplicated column names in /v2/sql endpoint r=rafiss a=rafiss Previously, results that had the same column name would clobber each other in the response of this endpoint, since JSON does not allow duplicate key names. This is fixed by adding a suffix when column names are duplicated. No release note since this endpoint is for internal use. fixes #116851 Release note: None Co-authored-by: da-ket <daket.duet@gmail.com> Co-authored-by: Arul Ajmani <arulajmani@gmail.com> Co-authored-by: Rafi Shamim <rafi@cockroachlabs.com> Co-authored-by: Nathan VanBenschoten <nvanbenschoten@gmail.com>
- Loading branch information