[YANGTOOLS-1346] IAE in StatementContextBase.childCopyOf() Created: 10/Oct/21 Updated: 20/Oct/21 Resolved: 11/Oct/21 |
|
| Status: | Resolved |
| Project: | yangtools |
| Component/s: | parser |
| Affects Version/s: | 7.0.0, 7.0.8 |
| Fix Version/s: | 8.0.0, 7.0.9 |
| Type: | Bug | Priority: | High |
| Reporter: | Shanth K Gaitonde | Assignee: | Robert Varga |
| Resolution: | Done | Votes: | 0 |
| Labels: | regression | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| Description |
|
I cloned the latest repo of transportpce from the master branch and tried to connect to my NE device via ODL but I was not able to. Upon checking the logs , I found the below errors:
On silicon, it used to work fine but on the latest version i.e. after consuming Phosphorus dependencies, there seems to be some issue. Attaching karaf logs, file tailf-ncs-plan.yang PS: I am relatively new to this environment so let me know if you need any specific info on the issue and I hope this issue gets resolved quickly as it seems to be a showstopper for us. |
| Comments |
| Comment by Robert Varga [ 10/Oct/21 ] |
|
So let's start with the first warning and see where it gets us. For that the problematic method is:
@Override
public final Mutable<?, ?, ?> childCopyOf(final StmtContext<?, ?, ?> stmt, final CopyType type,
final QNameModule targetModule) {
checkEffectiveModelCompleted(stmt);
checkArgument(stmt instanceof StatementContextBase, "Unsupported statement %s", stmt);
return childCopyOf((StatementContextBase<?, ?, ?>) stmt, type, targetModule);
}
I believe the checkArgument() statement was broken by introduction of ReactorStmtCtx and ReplicaStatementContext in
|
| Comment by Shanth K Gaitonde [ 12/Oct/21 ] |
|
Hi Robert, I see this issue has been resolved, if I git pull the master branch of transportpce, would the fix be available on the latest fetch?
|
| Comment by Robert Varga [ 12/Oct/21 ] |
|
Hey Shanth, not yet. This will be part of yangtools-7.0.9, which will be released in about a week or two and then it will need to be integrated down (which may take up to a week). |
| Comment by Robert Varga [ 20/Oct/21 ] |
|
So yangtools-7.0.9 is out there, integration should take less then a week, I think. |