<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:15:35 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>OpenDaylight JIRA</title>
    <link>https://jira.opendaylight.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>8.20.10</version>
        <build-number>820010</build-number>
        <build-date>22-06-2022</build-date>
    </build-info>


<item>
            <title>[NETCONF-664] The ConcurrentModificationException was found in the websocket test in restconf-nb-rfc8040.</title>
                <link>https://jira.opendaylight.org/browse/NETCONF-664</link>
                <project id="10142" key="NETCONF">netconf</project>
                    <description>&lt;p&gt;&lt;b&gt;The specific code in AbstractCommonSubscriber.java is as follows. When the yang notification is monitored, the websocket message is sent.&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;/**&lt;b&gt;code&lt;/b&gt;**/&lt;/p&gt;

&lt;p&gt;synchronized void post(final String data) {&lt;/p&gt;

&lt;p&gt;&#160; &#160; &#160;for (final WebSocketSessionHandler subscriber : subscribers) {&lt;/p&gt;

&lt;p&gt;&#160; &#160; &#160; &#160; &#160; &#160; &#160;final Optional&amp;lt;InetSocketAddress&amp;gt; remoteEndpointAddress = subscriber.getRemoteEndpointAddress();&lt;/p&gt;

&lt;p&gt;&#160; &#160; &#160; &#160; &#160; &#160; &#160;if (remoteEndpointAddress.isPresent()) {&lt;/p&gt;

&lt;p&gt;&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;subscriber.sendDataMessage(data);&lt;/p&gt;

&lt;p&gt;&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;LOG.debug(&quot;Data was sent to subscriber {} on address {}:&quot;, this, remoteEndpointAddress.get());&lt;/p&gt;

&lt;p&gt;&#160; &#160; &#160; &#160; &#160; &#160; &#160;} else {&lt;/p&gt;

&lt;p&gt;&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; // removal is probably not necessary, because it will be removed explicitly soon after invocation of&lt;/p&gt;

&lt;p&gt;&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;// onWebSocketClosed(..) in handler; but just to be sure ...&lt;/p&gt;

&lt;p&gt;&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;subscribers.remove(subscriber);&lt;/p&gt;

&lt;p&gt;&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;LOG.debug(&quot;Subscriber for {} was removed - web-socket session is not open.&quot;, this);&lt;/p&gt;

&lt;p&gt;&#160; &#160; &#160; &#160; &#160; &#160; &#160;}&lt;/p&gt;

&lt;p&gt;&#160; &#160; &#160; &#160;}&lt;/p&gt;

&lt;p&gt;}&lt;/p&gt;

&lt;p&gt;&lt;b&gt;In the process of traversing the set, delete the element, will cause ConcurrentModificationException.&lt;/b&gt;&lt;/p&gt;</description>
                <environment></environment>
        <key id="32566">NETCONF-664</key>
            <summary>The ConcurrentModificationException was found in the websocket test in restconf-nb-rfc8040.</summary>
                <type id="10104" iconUrl="https://jira.opendaylight.org/secure/viewavatar?size=xsmall&amp;avatarId=10303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://jira.opendaylight.org/images/icons/priorities/major.svg">Medium</priority>
                        <status id="5" iconUrl="https://jira.opendaylight.org/images/icons/statuses/resolved.png" description="A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.">Resolved</status>
                    <statusCategory id="3" key="done" colorName="green"/>
                                    <resolution id="10000">Done</resolution>
                                        <assignee username="wsx25289">wang senxiao</assignee>
                                    <reporter username="wsx25289">wang senxiao</reporter>
                        <labels>
                    </labels>
                <created>Thu, 9 Apr 2020 07:01:04 +0000</created>
                <updated>Sun, 3 May 2020 02:48:38 +0000</updated>
                            <resolved>Tue, 21 Apr 2020 08:24:55 +0000</resolved>
                                                    <fixVersion>Magnesium SR1</fixVersion>
                    <fixVersion>Aluminium</fixVersion>
                    <fixVersion>Sodium SR3</fixVersion>
                                    <component>restconf-nb</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="68072" author="jluhrsen" created="Wed, 29 Apr 2020 03:31:40 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.opendaylight.org/secure/ViewProfile.jspa?name=wsx25289&quot; class=&quot;user-hover&quot; rel=&quot;wsx25289&quot;&gt;wsx25289&lt;/a&gt;, can you provide a few more details to reproduce this issue? I know this is marked resolved with &lt;a href=&quot;https://git.opendaylight.org/gerrit/c/netconf/+/89041&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;this patch &lt;/a&gt;&lt;br/&gt;
but I&apos;m not sure the exact steps that I can create it in CSIT.&lt;/p&gt;

&lt;p&gt;btw, it&apos;s weird that this JIRA didn&apos;t pick up your patch. I saw you put the correct JIRA: &lt;a href=&quot;https://jira.opendaylight.org/browse/NETCONF-664&quot; title=&quot;The ConcurrentModificationException was found in the websocket test in restconf-nb-rfc8040.&quot; class=&quot;issue-link&quot; data-issue-key=&quot;NETCONF-664&quot;&gt;&lt;del&gt;NETCONF-664&lt;/del&gt;&lt;/a&gt; in the commit&lt;br/&gt;
message so I expected it to show up here under gerrit reviews.&lt;/p&gt;</comment>
                            <comment id="68074" author="wsx25289" created="Wed, 29 Apr 2020 13:18:02 +0000"  >&lt;p&gt;Sorry, I will describe it later&#12290;&lt;/p&gt;</comment>
                            <comment id="68083" author="wsx25289" created="Sun, 3 May 2020 02:48:38 +0000"  >&lt;p&gt;operation steps&lt;br/&gt;
1) First, complete the websocket subscription operation, and then use websocket client connect,&lt;br/&gt;
Trigger the yang notification reporting process, and the normal message can be received in the websocket client.&lt;br/&gt;
2) Then&#65292;Disconnect the websocket client at this time. Reconnect, trigger yang notification message to report,&lt;br/&gt;
ConcurrentModificationException will Occasional produce in post method&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                            <customfield id="customfield_11400" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10000" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i03rw7:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                </customfields>
    </item>
</channel>
</rss>