Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

neofs.ObjectSearch returned fewer objects than expected #3615

Open
AliceInHunterland opened this issue Oct 15, 2024 · 0 comments
Open

neofs.ObjectSearch returned fewer objects than expected #3615

AliceInHunterland opened this issue Oct 15, 2024 · 0 comments
Labels
bug Something isn't working I4 No visible changes S4 Routine U4 Nothing urgent

Comments

@AliceInHunterland
Copy link
Contributor

AliceInHunterland commented Oct 15, 2024

Current Behavior

When using neofs.ObjectSearch on the NeoFS Testnet, it returned fewer objects than expected #3582 (comment). The expected number of objects was 128,000 (the indexFileSize), but the search result returned only 19,705 objects. There were no errors during the search execution.

prm := client.PrmObjectSearch{}
filters := object.NewSearchFilters()
filters.AddFilter(attribute, fmt.Sprintf("%d", 0), object.MatchNumGE)
filters.AddFilter(attribute, fmt.Sprintf("%d", indexFileSize), object.MatchNumLE)
prm.SetFilters(filters)

objectIDs, err := neofs.ObjectSearch(ctx.Context, clientSDK, account.PrivateKey(), containerID.String(), prm)
fmt.Println("Number of objects found: ", len(objectIDs))

Output:

Number of objects found: 19705

Expected Behavior

The search should return all 128,000 objects in the container, as per the indexFileSize configuration.

Possible Solution

  • Check on different containers and mainnet, maybe it was problems with attributes
  • Timeout of reading

Steps to Reproduce

Example above.

Context

This issue prevents retrieving all expected objects from the container in NeoFS Testnet. I am trying to upload and manage a large number of blocks in NeoFS, and incomplete search results disrupt the process.

@AliceInHunterland AliceInHunterland added bug Something isn't working I3 Minimal impact U2 Seriously planned S4 Routine labels Oct 15, 2024
@AnnaShaleva AnnaShaleva added U4 Nothing urgent I4 No visible changes and removed I3 Minimal impact U2 Seriously planned labels Oct 15, 2024
@AliceInHunterland AliceInHunterland changed the title neofs: ObjectSearch result limit neofs.ObjectSearch returned fewer objects than expected Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working I4 No visible changes S4 Routine U4 Nothing urgent
Projects
None yet
Development

No branches or pull requests

2 participants