Bug #2362
closed
Strategy::beforeSatisfyInterest is not called when PIT is satisfied from CS
Added by Alex Afanasyev almost 11 years ago.
Updated over 7 years ago.
Description
Without this callback, we not going to have correct stats for interests that are satisfied from CS
- Blocks Task #2363: NullFace creation should be moved inside Forwarder constructor added
Does the title "Strategy::beforeSatisfyInterest is called when PIT is satisfied from CS" represent expected behavior, or incorrect/actual behavior?
- Subject changed from Strategy::beforeSatisfyInterest is called when PIT is satisfied from CS to Strategy::beforeSatisfyInterest is not called when PIT is satisfied from CS
I meant to write "is not called". It should be called.
- Status changed from New to Rejected
This behavior is by design.
Strategy::beforeSatisfyInterest is invoked only for incoming Data; ContentStore is not incoming Data.
Forwarding strategy is only responsible for forwarding Interests that cannot be satisfied by ContentStore, and only needs to take measurements for incoming Data.
- Status changed from Rejected to New
Stop rejecting without proper discussion
- Category set to Forwarding
- Assignee set to Chengyu Fan
DO NOT WORK ON THIS ISSUE.
The design is wrong.
I see, does it mean that this task needs to be rejected?
It's already Rejected in note-4, but someone restored it. Further discussion is needed.
I see, will wait for the further discussion.
- Assignee deleted (
Chengyu Fan)
- Status changed from New to Rejected
This is no longer relevant. #4290 introduces Strategy::afterContentStoreHit trigger function, and the strategy can collect statistics through this trigger.
Also available in: Atom
PDF