[Groonga-commit] groonga/groonga at 7d7dfe1 [master] test: add a test for io_flush against index column with many data

Back to archive index

Kouhei Sutou null+****@clear*****
Wed May 25 15:47:19 JST 2016


Kouhei Sutou	2016-05-25 15:47:19 +0900 (Wed, 25 May 2016)

  New Revision: 7d7dfe19b773ee83783643d166f251104c86750e
  https://github.com/groonga/groonga/commit/7d7dfe19b773ee83783643d166f251104c86750e

  Message:
    test: add a test for io_flush against index column with many data

  Added files:
    test/command/suite/io_flush/many_data.expected
    test/command/suite/io_flush/many_data.test

  Added: test/command/suite/io_flush/many_data.expected (+10 -0) 100644
===================================================================
--- /dev/null
+++ test/command/suite/io_flush/many_data.expected    2016-05-25 15:47:19 +0900 (dc5d372)
@@ -0,0 +1,10 @@
+table_create Sources TABLE_NO_KEY
+[[0,0.0,0.0],true]
+column_create Sources value COLUMN_SCALAR Int32
+[[0,0.0,0.0],true]
+table_create Lexicon TABLE_PAT_KEY Int32
+[[0,0.0,0.0],true]
+column_create Lexicon sources_value COLUMN_INDEX Sources value
+[[0,0.0,0.0],true]
+io_flush Lexicon.sources_value
+[[0,0.0,0.0],true]

  Added: test/command/suite/io_flush/many_data.test (+16 -0) 100644
===================================================================
--- /dev/null
+++ test/command/suite/io_flush/many_data.test    2016-05-25 15:47:19 +0900 (c7d7bed)
@@ -0,0 +1,16 @@
+table_create Sources TABLE_NO_KEY
+column_create Sources value COLUMN_SCALAR Int32
+
+table_create Lexicon TABLE_PAT_KEY Int32
+column_create Lexicon sources_value COLUMN_INDEX Sources value
+
+#@timeout 300
+#@disable-logging
+# The number of elements of io->fis is 33 for ii.
+# 1090000 records require io->maps[33]. io->fis[33] is out of range.
+# We shouldn't touch io->fis[33] on io_flush.
+#@generate-series 0 1090000 Sources '{"value" => i}'
+#@enable-logging
+
+io_flush Lexicon.sources_value
+#@timeout default
-------------- next part --------------
HTML����������������������������...
下载 



More information about the Groonga-commit mailing list
Back to archive index