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

[BUG] Writing more than 10 binding entries for binding attribute in binding cluster does not respond with status 0x89 (RESOURCE_EXHAUSTED) #25538

Closed
morahman2022 opened this issue Mar 7, 2023 · 0 comments · Fixed by #25549

Comments

@morahman2022
Copy link

morahman2022 commented Mar 7, 2023

Reproduction steps

I executed

./chip-tool binding write binding '[{"node" : 2 , "cluster" : "0x0006" , "endpoint" : 1 }, { "node" : 3 , "cluster" : "0x0006" , "endpoint" : 1 }, { "node" : 4 , "cluster" : "0x0006" , "endpoint" : 1 }, { "node" : 5 , "cluster" : "0x0006" , "endpoint" : 1 }, { "node" : 6 , "cluster" : "0x0006" , "endpoint" : 1 }, { "node" : 7 , "cluster" : "0x0006" , "endpoint" : 1 }, { "node" : 8 , "cluster" : "0x0006" , "endpoint" : 1 }, { "node" : 9 , "cluster" : "0x0006" , "endpoint" : 1 }, { "node" : 10 , "cluster" : "0x0006" , "endpoint" : 1 }, { "node" : 11 , "cluster" : "0x0006" , "endpoint" : 1 }, { "node" : 12 , "cluster" : "0x0006" , "endpoint" : 1 }, { "node" : 13 , "cluster" : "0x0006" , "endpoint" : 1 }]' 1 1
I did not see a status of 0x89 (RESOURCE_EXHAUSTED). The command returned status 0x00 (SUCCESS). I tried to write 12 entries to binding.

Next, when I executed

./chip-tool binding read binding 1 1
The output had 10 entries which were the first 10 of 12 entries that I tried to write in the previous step. MATTER specification for binding (https://github.com/CHIP-Specifications/connectedhomeip-spec/blob/master/src/data_model/Binding-Cluster.adoc) says If, during the creation of multiple bindings, there are no available resources to create an entry, or to establish a binding relationship, the client SHALL respond with a status of RESOURCE_EXHAUSTED, and the binding SHALL NOT be created.

Please see attached log for writing 12 binding entries for binding attribute. The log for following read operation on binding attribute is also attached.
Log_Binding_Read.txt
Log_Binding_Write_12_entries.txt

Bug prevalence

Whenever I do this

GitHub hash of the SDK that was being used

4f53be4

Platform

all

Platform Version(s)

No response

Anything else?

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant