Bug #28518 some information_schema falcon tables need bigint types instead of int
Submitted: 18 May 2007 14:34 Modified: 18 Jun 2007 17:51
Reporter: Shane Bester (Platinum Quality Contributor) Email Updates:
Status: No Feedback Impact on me:
None 
Category:MySQL Server: Falcon storage engine Severity:S3 (Non-critical)
Version:6.0.1 OS:Any
Assigned to: CPU Architecture:Any
Tags: information_schema

[18 May 2007 14:34] Shane Bester
Description:
On larger configurations, we would need to see >2G values in the counters or memory sizes displayed by the various falcon tables in information_schema.

Currently, all numbers are INT(4) and they might wrap or show wrong information.

How to repeat:
mysql> describe information_schema.FALCON_RECORD_CACHE_SUMMARY;
+---------------+--------+------+-----+---------+-------+
| Field         | Type   | Null | Key | Default | Extra |
+---------------+--------+------+-----+---------+-------+
| TOTAL_SPACE   | int(4) | NO   |     | 0       |       |
| FREE_SPACE    | int(4) | NO   |     | 0       |       |
| FREE_SEGMENTS | int(4) | NO   |     | 0       |       |
| BIG_HUNKS     | int(4) | NO   |     | 0       |       |
| SMALL_HUNKS   | int(4) | NO   |     | 0       |       |
| UNIQUE_SIZES  | int(4) | NO   |     | 0       |       |
+---------------+--------+------+-----+---------+-------+
6 rows in set (0.02 sec)

mysql> describe information_schema.FALCON_SYSTEM_MEMORY_DETAIL;
+-----------------+--------------+------+-----+---------+-------+
| Field           | Type         | Null | Key | Default | Extra |
+-----------------+--------------+------+-----+---------+-------+
| FILE            | varchar(120) | NO   |     |         |       |
| LINE            | int(4)       | NO   |     | 0       |       |
| OBJECTS_IN_USE  | int(4)       | NO   |     | 0       |       |
| SPACE_IN_USE    | int(4)       | NO   |     | 0       |       |
| OBJECTS_DELETED | int(4)       | NO   |     | 0       |       |
| SPACE_DELETED   | int(4)       | NO   |     | 0       |       |
+-----------------+--------------+------+-----+---------+-------+
6 rows in set (0.00 sec)

mysql> describe information_schema.FALCON_SYSTEM_MEMORY_SUMMARY;
+---------------+--------+------+-----+---------+-------+
| Field         | Type   | Null | Key | Default | Extra |
+---------------+--------+------+-----+---------+-------+
| TOTAL_SPACE   | int(4) | NO   |     | 0       |       |
| FREE_SPACE    | int(4) | NO   |     | 0       |       |
| FREE_SEGMENTS | int(4) | NO   |     | 0       |       |
| BIG_HUNKS     | int(4) | NO   |     | 0       |       |
| SMALL_HUNKS   | int(4) | NO   |     | 0       |       |
| UNIQUE_SIZES  | int(4) | NO   |     | 0       |       |
+---------------+--------+------+-----+---------+-------+
6 rows in set (0.00 sec)

mysql> describe information_schema.FALCON_SYNCOBJECTS;
+--------------+--------------+------+-----+---------+-------+
| Field        | Type         | Null | Key | Default | Extra |
+--------------+--------------+------+-----+---------+-------+
| WHERE        | varchar(120) | NO   |     |         |       |
| SHARED       | int(4)       | NO   |     | 0       |       |
| EXCLUSIVE    | int(4)       | NO   |     | 0       |       |
| WAITS        | int(4)       | NO   |     | 0       |       |
| QUEUE_LENGTH | int(4)       | NO   |     | 0       |       |
+--------------+--------------+------+-----+---------+-------+
5 rows in set (0.00 sec)

mysql> describe information_schema.FALCON_RECORD_CACHE_DETAIL;
+-----------------+--------------+------+-----+---------+-------+
| Field           | Type         | Null | Key | Default | Extra |
+-----------------+--------------+------+-----+---------+-------+
| FILE            | varchar(120) | NO   |     |         |       |
| LINE            | int(4)       | NO   |     | 0       |       |
| OBJECTS_IN_USE  | int(4)       | NO   |     | 0       |       |
| SPACE_IN_USE    | int(4)       | NO   |     | 0       |       |
| OBJECTS_DELETED | int(4)       | NO   |     | 0       |       |
| SPACE_DELETED   | int(4)       | NO   |     | 0       |       |
+-----------------+--------------+------+-----+---------+-------+
6 rows in set (0.00 sec)

mysql> describe information_schema.FALCON_TRANSACTION_SUMMARY;
+--------------------+--------------+------+-----+---------+-------+
| Field              | Type         | Null | Key | Default | Extra |
+--------------------+--------------+------+-----+---------+-------+
| DATABASE           | varchar(120) | NO   |     |         |       |
| COMMITTED          | int(4)       | NO   |     | 0       |       |
| ROLLED_BACK        | int(4)       | NO   |     | 0       |       |
| ACTIVE             | int(4)       | NO   |     | 0       |       |
| PENDING_COMMIT     | int(4)       | NO   |     | 0       |       |
| PENDING_COMPLETION | int(4)       | NO   |     | 0       |       |
+--------------------+--------------+------+-----+---------+-------+
6 rows in set (0.00 sec)

mysql> describe information_schema.FALCON_DATABASE_IO;
+----------------+--------------+------+-----+---------+-------+
| Field          | Type         | Null | Key | Default | Extra |
+----------------+--------------+------+-----+---------+-------+
| DATABASE       | varchar(120) | NO   |     |         |       |
| PAGE_SIZE      | int(4)       | NO   |     | 0       |       |
| BUFFERS        | int(4)       | NO   |     | 0       |       |
| PHYSICAL_READS | int(4)       | NO   |     | 0       |       |
| WRITES         | int(4)       | NO   |     | 0       |       |
| LOGICAL_READS  | int(4)       | NO   |     | 0       |       |
| FAKES          | int(4)       | NO   |     | 0       |       |
+----------------+--------------+------+-----+---------+-------+
7 rows in set (0.00 sec)

mysql> describe information_schema.FALCON_TRANSACTIONS;
+-------------+--------------+------+-----+---------+-------+
| Field       | Type         | Null | Key | Default | Extra |
+-------------+--------------+------+-----+---------+-------+
| DATABASE    | varchar(120) | NO   |     |         |       |
| THREAD_ID   | int(4)       | NO   |     | 0       |       |
| ID          | int(4)       | NO   |     | 0       |       |
| STATE       | varchar(10)  | NO   |     |         |       |
| UPDATES     | int(4)       | NO   |     | 0       |       |
| PENDING     | int(4)       | NO   |     | 0       |       |
| DEP         | int(4)       | NO   |     | 0       |       |
| OLDEST      | int(4)       | NO   |     | 0       |       |
| RECORDS     | int(4)       | NO   |     | 0       |       |
| WAITING_FOR | int(4)       | NO   |     | 0       |       |
| STATEMENT   | varchar(120) | NO   |     |         |       |
+-------------+--------------+------+-----+---------+-------+
11 rows in set (0.02 sec)

mysql> describe information_schema.FALCON_SERIAL_LOG;
+--------------+--------------+------+-----+---------+-------+
| Field        | Type         | Null | Key | Default | Extra |
+--------------+--------------+------+-----+---------+-------+
| DATABASE     | varchar(120) | NO   |     |         |       |
| TRANSACTIONS | int(4)       | NO   |     | 0       |       |
| BLOCKS       | bigint(8)    | NO   |     | 0       |       |
| WINDOWS      | int(4)       | NO   |     | 0       |       |
| BUFFERS      | int(4)       | NO   |     | 0       |       |
+--------------+--------------+------+-----+---------+-------+
5 rows in set (0.00 sec)

Suggested fix:
Perhaps BIGINT UNSIGNED is more appropriate for some columns.
I guess now that bug #27047 is fixed, this can be implemented.
[18 May 2007 17:51] Hakan Küçükyılmaz
Shane,

the fields TOTAL_SPACE and FREE_SPACE are bigint already:

[19:49] root@information_schema>describe FALCON_RECORD_CACHE_SUMMARY;
+---------------+-----------+------+-----+---------+-------+
| Field         | Type      | Null | Key | Default | Extra |
+---------------+-----------+------+-----+---------+-------+
| TOTAL_SPACE   | bigint(4) | NO   |     | 0       |       |
| FREE_SPACE    | bigint(4) | NO   |     | 0       |       |
| FREE_SEGMENTS | int(4)    | NO   |     | 0       |       |
| BIG_HUNKS     | int(4)    | NO   |     | 0       |       |
| SMALL_HUNKS   | int(4)    | NO   |     | 0       |       |
| UNIQUE_SIZES  | int(4)    | NO   |     | 0       |       |
+---------------+-----------+------+-----+---------+-------+
6 rows in set (0.01 sec)

[19:49] root@information_schema>describe FALCON_SYSTEM_MEMORY_SUMMARY;
+---------------+-----------+------+-----+---------+-------+
| Field         | Type      | Null | Key | Default | Extra |
+---------------+-----------+------+-----+---------+-------+
| TOTAL_SPACE   | bigint(4) | NO   |     | 0       |       |
| FREE_SPACE    | bigint(4) | NO   |     | 0       |       |
| FREE_SEGMENTS | int(4)    | NO   |     | 0       |       |
| BIG_HUNKS     | int(4)    | NO   |     | 0       |       |
| SMALL_HUNKS   | int(4)    | NO   |     | 0       |       |
| UNIQUE_SIZES  | int(4)    | NO   |     | 0       |       |
+---------------+-----------+------+-----+---------+-------+
6 rows in set (0.00 sec)
[18 May 2007 17:51] Hakan Küçükyılmaz
Related to Bug#28197
[18 May 2007 17:52] Hakan Küçükyılmaz
Shane,

do you think that we need other fields to be bigint, too? If yes, which?

Best regards,

Hakan
[18 Jun 2007 23:00] Bugs System
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".