-
Type:
Bug
-
Status: Closed
-
Resolution: Fixed
-
Affects Version/s: 7.2.10.1 DXP SP1, Master
-
Fix Version/s: 7.3.3 CE GA4, 7.3.10 DXP GA1, Master
-
Component/s: Segments Editor
-
Labels:
-
Fix Priority:4
-
Databases:MySQL 5.7
-
Device Type:Desktop
-
Sprint:TANGO | SP_37 | May26 - Jun09
-
What problem did the customer find?:Parent Organization segment with many sub-organizations causes StackOverflowError.
-
What do you think is the root cause? (if known):
-
Proposed solution (if any):
My setup having thousands of organizations under parent organization.
I tried creating a segment with default Organization criteria contributor and selected parent organization in the Condition section. Segment fails to retrieve the number of members matching condition and Elastic search server (Remote) stops abruptly with stack trace:
Caused by: java.lang.StackOverflowError at org.elasticsearch.common.io.stream.StreamInput.readVInt(StreamInput.java:214) ~[elasticsearch-6.8.0.jar:6.8.0] at org.elasticsearch.common.io.stream.StreamInput.readArraySize(StreamInput.java:1047) ~[elasticsearch-6.8.0.jar:6.8.0] at org.elasticsearch.common.io.stream.StreamInput.readString(StreamInput.java:374) ~[elasticsearch-6.8.0.jar:6.8.0] at org.elasticsearch.common.io.stream.NamedWriteableAwareStreamInput.readNamedWriteable(NamedWriteableAwareStreamInput.java:38)
And portal complains about NoNodeAvailable.
I observed if the number of child organizations is less (600-700), things were working fine.
It seems the issue is related to Elastic search huge query:
https://github.com/elastic/elasticsearch/issues/46477
Steps to reproduce:
- Create 1 parent organization and 1500-2000 child organizations for parent org.
- Go to Product menu> Site> People > Segments and create a segment using "Organization" criteria and add a condition with parent org (created in 1st point).
- Analyze logs and status of Elastic Search Server.
- causes
-
LPS-114512 Invalid search filter when using Organizations in Segments Criteria Builder
- Closed
- Testing discovered
-
LPS-114440 Staging does not dissappear after staging deleted with a huge amount of organizations
- Verified