Skip to content

Commit

Permalink
pageserver: clean up a redundant tenant_id attribute (#6280)
Browse files Browse the repository at this point in the history
This was a small TODO(sharding) thing in TenantHarness.
  • Loading branch information
jcsp authored Jan 9, 2024
1 parent 4b9b4c2 commit f94abba
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
3 changes: 0 additions & 3 deletions pageserver/src/tenant.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3823,8 +3823,6 @@ pub(crate) mod harness {
pub struct TenantHarness {
pub conf: &'static PageServerConf,
pub tenant_conf: TenantConf,
// TODO(sharding): remove duplicative `tenant_id` in favor of access to tenant_shard_id
pub(crate) tenant_id: TenantId,
pub tenant_shard_id: TenantShardId,
pub generation: Generation,
pub shard: ShardIndex,
Expand Down Expand Up @@ -3886,7 +3884,6 @@ pub(crate) mod harness {
Ok(Self {
conf,
tenant_conf,
tenant_id,
tenant_shard_id,
generation: Generation::new(0xdeadbeef),
shard: ShardIndex::unsharded(),
Expand Down
2 changes: 1 addition & 1 deletion pageserver/src/tenant/remote_timeline_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1903,7 +1903,7 @@ mod tests {
fn span(&self) -> tracing::Span {
tracing::info_span!(
"test",
tenant_id = %self.harness.tenant_id,
tenant_id = %self.harness.tenant_shard_id.tenant_id,
timeline_id = %TIMELINE_ID
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1337,7 +1337,7 @@ mod tests {

ConnectionManagerState {
id: TenantTimelineId {
tenant_id: harness.tenant_id,
tenant_id: harness.tenant_shard_id.tenant_id,
timeline_id: TIMELINE_ID,
},
timeline,
Expand Down

1 comment on commit f94abba

@github-actions
Copy link

@github-actions github-actions bot commented on f94abba Jan 9, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2306 tests run: 2216 passed, 0 failed, 90 skipped (full report)


Flaky tests (2)

Postgres 16

  • test_location_conf_churn[2]: debug

Postgres 14

  • test_pgbench_intensive_init_workload[neon_on-1000]: release

Code coverage (full report)

  • functions: 54.7% (10128 of 18510 functions)
  • lines: 81.5% (57973 of 71130 lines)

The comment gets automatically updated with the latest test results
f94abba at 2024-01-09T17:24:13.673Z :recycle:

Please sign in to comment.