Skip to content

Add max steps to RunLimits - #153

Open
saoirse-a wants to merge 1 commit into
eclipse-biscuit:mainfrom
saoirse-a:saoirse/max-steps
Open

saoirse-a wants to merge 1 commit into
eclipse-biscuit:mainfrom
saoirse-a:saoirse/max-steps

Conversation

@saoirse-a

Copy link
Copy Markdown
Contributor

Adds a maxSteps limit to the RunLimits in protobuf. Uses a StepCounter owned by World that is incremented during rule evaluation (for each fact and each operation) and queries.

Comparable to eclipse-biscuit/biscuit-rust#352

@@ -0,0 +1,28 @@
package org.eclipse.biscuit.datalog;

public class StepCounter implements Cloneable {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

note: World is Serializable. I think it comes from the initial iteration and hopefully nothing relies on this.

@Korbik i’d be in favor of dropping Serializable everywhere, but if we can’t, then we should make StepCounter serializable

Adds a maxSteps limit to the RunLimits in protobuf. Uses a StepCounter
owned by World that is incremented during rule evaluation (for each fact
and each operation) and queries.

Signed-off-by: Saoirse Aronson <saoirse@apple.com>
Co-authored-by: Sasha Kobrusev <skobrusev@apple.com>
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.

2 participants