Skip to content

Conversation

@feeblefakie
Copy link
Contributor

This is an automated request for a manual backport of the following:

  1. Resolve any conflicts that occur during the cherry-picking process.
git fetch origin &&
git checkout 3-pull-3127 &&
git cherry-pick --no-rerere-autoupdate -m1 ad27355f1211352863772f041485b4c8b1c90b43
  1. Push the changes.
  2. Merge this PR after all checks have passed.

Thank you!

@KodaiD
Copy link
Contributor

KodaiD commented Nov 10, 2025

/gemini review

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request correctly adds validation to disallow secondary indexes for Object Storage, as it doesn't support them. The core logic is sound, and the integration tests are updated accordingly. The base test classes are also refactored to better support this change. My review includes a couple of suggestions to reduce code duplication in the test files for improved maintainability.

@KodaiD KodaiD marked this pull request as ready for review November 10, 2025 07:43
@KodaiD KodaiD requested a review from Copilot November 10, 2025 07:43
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This pull request removes secondary index support from Object Storage implementation by disallowing tables with secondary indexes to be created or repaired. The change adds validation in ObjectStorageAdmin to reject table metadata containing secondary indexes, since Object Storage doesn't support index functionality.

  • Adds checkTableMetadata() validation method to reject tables with secondary indexes
  • Updates test base classes to make getTableMetadata() overridable
  • Modifies Object Storage-specific tests to override getTableMetadata() and remove secondary indexes

Reviewed Changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
ObjectStorageAdmin.java Adds validation method to reject table metadata with secondary indexes in createTable() and repairTable()
DistributedTransactionAdminIntegrationTestBase.java Makes getTableMetadata() overridable and updates tests to use the overridable method
DistributedStorageAdminIntegrationTestBase.java Updates tests to use overridable getTableMetadata() for flexibility
DistributedTransactionAdminRepairTableIntegrationTestBase.java Removes secondary indexes from repair table test metadata
DistributedStorageAdminRepairTableIntegrationTestBase.java Changes column name visibility and removes secondary indexes from repair table test metadata
SingleCrudOperationTransactionAdminIntegrationTestWithObjectStorage.java Overrides getTableMetadata() to remove secondary indexes for Object Storage
ObjectStorageAdminIntegrationTest.java Overrides getTableMetadata() to provide metadata without secondary indexes
ObjectStorageAdminCaseSensitivityIntegrationTest.java Overrides getTableMetadata() to provide metadata without secondary indexes
ConsensusCommitAdminIntegrationTestWithObjectStorage.java Overrides getTableMetadata() to remove secondary indexes for Object Storage

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@brfrn169 brfrn169 merged commit a496e3e into 3 Nov 10, 2025
200 of 202 checks passed
@brfrn169 brfrn169 deleted the 3-pull-3127 branch November 10, 2025 09:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants