open-consul/agent/consul/state
Dhia Ayachi f605689154
Partition/kv indexid sessions (#11639)
* state: port KV and Tombstone tables to new pattern

* go fmt'ed

* handle wildcards for tombstones

* Fix graveyard ent vs oss

* fix oss compilation error

* add partition to tombstones and kv state store indexes

* refactor to use `indexWithEnterpriseIndexable`

* Apply suggestions from code review

Co-authored-by: Chris S. Kim <ckim@hashicorp.com>
Co-authored-by: R.B. Boyer <4903+rboyer@users.noreply.github.com>

* partition `tableSessions` table

* fix sessions to use UUID and fix prefix index

* fix oss build

* clean up unused functions

* fix oss compilation

* add a partition indexer for sessions

* Fix oss to not have partition index

* fix oss tests

* remove unused operations_ent.go and operations_oss.go func

* convert `indexNodeCheck` of `session_checks` table

* partition `indexID` and `indexSession` of `tableSessionChecks`

* remove partition for Checks as it's always use the session partition

* partition sessions index id table

* fix rebase issues

Co-authored-by: Daniel Nephin <dnephin@hashicorp.com>
Co-authored-by: Chris S. Kim <ckim@hashicorp.com>
Co-authored-by: R.B. Boyer <4903+rboyer@users.noreply.github.com>
2021-11-24 11:34:36 -05:00
..
acl.go state: remove support for updating legacy ACL tokens 2021-10-25 17:25:14 -04:00
acl_events.go convert indexSecret to the new index (#11007) 2021-09-10 09:10:11 -04:00
acl_events_test.go acl: global tokens created by auth methods now correctly replicate to secondary datacenters (#9351) 2020-12-09 15:22:29 -06:00
acl_oss.go re-run gofmt on 1.17 (#11579) 2021-11-16 12:04:01 -06:00
acl_oss_test.go re-run gofmt on 1.17 (#11579) 2021-11-16 12:04:01 -06:00
acl_schema.go acl: only run startACLUpgrade once 2021-09-29 16:22:01 -04:00
acl_test.go acl: remove ACLTokenTypeManagement 2021-10-25 17:25:14 -04:00
autopilot.go state: use ReadTxn and WriteTxn interface 2021-03-29 18:52:16 -04:00
autopilot_test.go Switch to using the external autopilot module 2020-11-09 09:22:11 -05:00
catalog.go Partition session checks store (#11638) 2021-11-24 09:10:38 -05:00
catalog_events.go state: adjust streaming event generation to account for partitioned nodes (#10860) 2021-08-17 16:49:26 -05:00
catalog_events_oss.go re-run gofmt on 1.17 (#11579) 2021-11-16 12:04:01 -06:00
catalog_events_test.go state: adjust streaming event generation to account for partitioned nodes (#10860) 2021-08-17 16:49:26 -05:00
catalog_oss.go re-run gofmt on 1.17 (#11579) 2021-11-16 12:04:01 -06:00
catalog_oss_test.go re-run gofmt on 1.17 (#11579) 2021-11-16 12:04:01 -06:00
catalog_schema.go Update Intentions.List with partitions (#11299) 2021-10-13 10:47:12 -04:00
catalog_test.go state: partition the nodes.uuid and nodes.meta indexes as well (#10882) 2021-08-19 16:17:59 -05:00
config_entry.go ca: accept only the cluster ID to SpiffeIDSigningForCluster 2021-11-16 16:57:21 -05:00
config_entry_intention.go Update Intentions.List with partitions (#11299) 2021-10-13 10:47:12 -04:00
config_entry_intention_oss.go re-run gofmt on 1.17 (#11579) 2021-11-16 12:04:01 -06:00
config_entry_oss.go re-run gofmt on 1.17 (#11579) 2021-11-16 12:04:01 -06:00
config_entry_oss_test.go re-run gofmt on 1.17 (#11579) 2021-11-16 12:04:01 -06:00
config_entry_schema.go state: remove unnecessary kind index 2021-04-15 17:37:28 -04:00
config_entry_test.go Support Check-And-Set deletion of config entries (#11419) 2021-11-01 16:42:01 +00:00
connect_ca.go ca: Only initialize clusterID in the primary 2021-11-05 18:08:44 -04:00
connect_ca_test.go config raft apply silent error (#10657) 2021-07-22 10:32:27 -04:00
coordinate.go state: partition nodes and coordinates in the state store (#10859) 2021-08-17 13:29:39 -05:00
coordinate_oss.go re-run gofmt on 1.17 (#11579) 2021-11-16 12:04:01 -06:00
coordinate_oss_test.go re-run gofmt on 1.17 (#11579) 2021-11-16 12:04:01 -06:00
coordinate_test.go state: partition nodes and coordinates in the state store (#10859) 2021-08-17 13:29:39 -05:00
delay_oss.go re-run gofmt on 1.17 (#11579) 2021-11-16 12:04:01 -06:00
delay_test.go testing: skip slow tests with -short 2020-12-07 13:42:55 -05:00
federation_state.go state: use tableIndex constant 2021-03-29 18:52:20 -04:00
graveyard.go KV state store refactoring and partitioning (#11510) 2021-11-08 09:35:56 -05:00
graveyard_oss.go refactor session state store tables to use the new index pattern (#11525) 2021-11-08 16:20:50 -05:00
graveyard_test.go KV state store refactoring and partitioning (#11510) 2021-11-08 09:35:56 -05:00
index_connect_test.go state: convert services table service and connect indexer 2021-03-29 15:42:24 -04:00
indexer.go Partition session checks store (#11638) 2021-11-24 09:10:38 -05:00
intention.go structs: rename the last helper method. 2021-09-29 11:48:38 -04:00
intention_oss.go re-run gofmt on 1.17 (#11579) 2021-11-16 12:04:01 -06:00
intention_test.go Cleanup unnecessary normalizing method (#11169) 2021-09-28 15:31:12 -04:00
kvs.go refactor session state store tables to use the new index pattern (#11525) 2021-11-08 16:20:50 -05:00
kvs_oss.go Partition/kv indexid sessions (#11639) 2021-11-24 11:34:36 -05:00
kvs_oss_test.go re-run gofmt on 1.17 (#11579) 2021-11-16 12:04:01 -06:00
kvs_test.go KV state store refactoring and partitioning (#11510) 2021-11-08 09:35:56 -05:00
memdb.go rpcclient: use streaming for connect health 2021-03-12 11:35:42 -05:00
operations_oss.go refactor session state store tables to use the new index pattern (#11525) 2021-11-08 16:20:50 -05:00
prepared_query.go refactor session state store tables to use the new index pattern (#11525) 2021-11-08 16:20:50 -05:00
prepared_query_index.go pkg refactor 2017-06-10 18:52:45 +02:00
prepared_query_index_test.go agent: move agent/consul/structs to agent/structs 2017-08-09 14:32:12 +02:00
prepared_query_test.go testing: skip slow tests with -short 2020-12-07 13:42:55 -05:00
query.go Partition session checks store (#11638) 2021-11-24 09:10:38 -05:00
query_oss.go refactor session state store tables to use the new index pattern (#11525) 2021-11-08 16:20:50 -05:00
schema.go Refactor table index (#11131) 2021-09-23 11:06:23 -04:00
schema_oss_test.go re-run gofmt on 1.17 (#11579) 2021-11-16 12:04:01 -06:00
schema_test.go KV state store refactoring and partitioning (#11510) 2021-11-08 09:35:56 -05:00
session.go Partition/kv indexid sessions (#11639) 2021-11-24 11:34:36 -05:00
session_oss.go Partition/kv indexid sessions (#11639) 2021-11-24 11:34:36 -05:00
session_test.go Partition/kv indexid sessions (#11639) 2021-11-24 11:34:36 -05:00
state_store.go rename helper method to reflect the non-deprecated terminology (#11509) 2021-11-05 13:51:50 -05:00
state_store_oss_test.go re-run gofmt on 1.17 (#11579) 2021-11-16 12:04:01 -06:00
state_store_test.go KV state store refactoring and partitioning (#11510) 2021-11-08 09:35:56 -05:00
store_integration_test.go acl: remove legacy arg to store.ACLTokenSet 2021-10-25 17:25:14 -04:00
system_metadata.go use const instead of literals for `tableIndex` (#11039) 2021-09-15 10:24:04 -04:00
system_metadata_test.go server: create new memdb table for storing system metadata (#8703) 2020-10-06 10:08:37 -05:00
tombstone_gc.go Sheds monotonic time info so tombstone GC bins work properly. 2017-11-29 10:34:24 -08:00
tombstone_gc_test.go Sheds monotonic time info so tombstone GC bins work properly. 2017-11-29 10:34:24 -08:00
txn.go KV state store refactoring and partitioning (#11510) 2021-11-08 09:35:56 -05:00
txn_test.go state: partition nodes and coordinates in the state store (#10859) 2021-08-17 13:29:39 -05:00
usage.go Replace fmt.Sprintf with function 2021-10-11 12:43:38 -05:00
usage_oss.go re-run gofmt on 1.17 (#11579) 2021-11-16 12:04:01 -06:00
usage_test.go Rename and prefix ConfigEntry in Usage table 2021-10-07 16:19:55 -05:00