Bug: NPE with legacy 2i
Status: Open
Priority: Normal
Created: 04/Sep/24 00:36

Doing property testing for 2i and hit the following NPE with legacy index.  I didn’t try to shrink the example… so it shows the full example.

{code}
Caused by: java.lang.NullPointerException
	at org.apache.cassandra.db.marshal.ByteBufferAccessor.size(ByteBufferAccessor.java:51)
	at org.apache.cassandra.db.marshal.ByteBufferAccessor.size(ByteBufferAccessor.java:42)
	at org.apache.cassandra.db.marshal.ValueAccessor.isEmpty(ValueAccessor.java:141)
	at org.apache.cassandra.db.marshal.CollectionType.compareListOrSet(CollectionType.java:272)
	at org.apache.cassandra.db.marshal.SetType.compareCustom(SetType.java:170)
	at org.apache.cassandra.db.marshal.AbstractType.compare(AbstractType.java:214)
	at org.apache.cassandra.db.marshal.AbstractType.compare(AbstractType.java:209)
	at org.apache.cassandra.db.marshal.AbstractType.compareForCQL(AbstractType.java:267)
	at org.apache.cassandra.cql3.Operator$1.isSatisfiedBy(Operator.java:65)
	at org.apache.cassandra.db.filter.RowFilter.clusteringKeyRestrictionsAreSatisfiedBy(RowFilter.java:343)
	at org.apache.cassandra.db.PartitionRangeReadQuery.selectsClustering(PartitionRangeReadQuery.java:82)
	at org.apache.cassandra.index.internal.composites.CompositesSearcher.isMatchingEntry(CompositesSearcher.java:49)
	at org.apache.cassandra.index.internal.composites.CompositesSearcher$1.prepareNext(CompositesSearcher.java:140)
	at org.apache.cassandra.index.internal.composites.CompositesSearcher$1.hasNext(CompositesSearcher.java:77)
	at org.apache.cassandra.db.transform.BasePartitions.hasNext(BasePartitions.java:90)
	at org.apache.cassandra.cql3.statements.SelectStatement.process(SelectStatement.java:1029)
	at org.apache.cassandra.cql3.statements.SelectStatement.processResults(SelectStatement.java:616)
	at org.apache.cassandra.cql3.statements.SelectStatement.executeInternal(SelectStatement.java:652)
	at org.apache.cassandra.cql3.statements.SelectStatement.executeLocally(SelectStatement.java:622)
	at org.apache.cassandra.cql3.statements.SelectStatement.executeLocally(SelectStatement.java:151)
	at org.apache.cassandra.cql3.QueryProcessor.executeInternal(QueryProcessor.java:480)
	at org.apache.cassandra.cql3.CQLTester.executeFormattedQuery(CQLTester.java:1701)
{code}

Here is the create/index/insert/select that hit this

{code}
CREATE TABLE keyspace_test_00."ghHdxvOs2bndvyc9aUK_Xa5w3D2" (
    "UwMBT3BtWjrSmXY6YFKQCI9HIaInjDD" frozen<set<vector<smallint, 3>>>,
    "WwFACuXPFLh06HHXRhDC2SuKnkmmImpiN73UnbAN3RU" frozen<list<frozen<set<boolean>>>>,
    "ZNbn8jXWHeva6CNNnhxZRR6WxXGeDnzym_2oMPJTwHvGOndNIn" frozen<map<'org.apache.cassandra.db.marshal.DynamicCompositeType(0=>org.apache.cassandra.db.marshal.DoubleType,4=>org.apache.cassandra.db.marshal.IntegerType,r=>org.apache.cassandra.db.marshal.Int32Type)', frozen<list<text>>>>,
    "Oy2UIWe7UKuceoBOY5_kfn4pVZE5Ph5mojGxlp" frozen<set<frozen<tuple<inet, inet, blob>>>>,
    "5XA8yEDKrmtTlTlT_IYOeL0mH3I7GITkAQWkxU" map<vector<time, 2>, timeuuid> static,
    "HgB6mrurXTqy8PPCbwm91" set<frozen<set<inet>>>,
    PRIMARY KEY (("UwMBT3BtWjrSmXY6YFKQCI9HIaInjDD", "WwFACuXPFLh06HHXRhDC2SuKnkmmImpiN73UnbAN3RU"), "ZNbn8jXWHeva6CNNnhxZRR6WxXGeDnzym_2oMPJTwHvGOndNIn", "Oy2UIWe7UKuceoBOY5_kfn4pVZE5Ph5mojGxlp")
) WITH CLUSTERING ORDER BY ("ZNbn8jXWHeva6CNNnhxZRR6WxXGeDnzym_2oMPJTwHvGOndNIn" DESC, "Oy2UIWe7UKuceoBOY5_kfn4pVZE5Ph5mojGxlp" ASC)

{code}

{code}
CREATE INDEX index_test_03 ON keyspace_test_00."ghHdxvOs2bndvyc9aUK_Xa5w3D2"(FULL("Oy2UIWe7UKuceoBOY5_kfn4pVZE5Ph5mojGxlp")) USING 'legacy_local_table';
CREATE INDEX index_test_01 ON keyspace_test_00."ghHdxvOs2bndvyc9aUK_Xa5w3D2"(FULL("UwMBT3BtWjrSmXY6YFKQCI9HIaInjDD")) USING 'legacy_local_table'
{code}

{code}
CQL:
INSERT INTO keyspace_test_00."ghHdxvOs2bndvyc9aUK_Xa5w3D2" ("UwMBT3BtWjrSmXY6YFKQCI9HIaInjDD", "ZNbn8jXWHeva6CNNnhxZRR6WxXGeDnzym_2oMPJTwHvGOndNIn", "WwFACuXPFLh06HHXRhDC2SuKnkmmImpiN73UnbAN3RU", "Oy2UIWe7UKuceoBOY5_kfn4pVZE5Ph5mojGxlp", "5XA8yEDKrmtTlTlT_IYOeL0mH3I7GITkAQWkxU", "HgB6mrurXTqy8PPCbwm91")
VALUES (?, ?, ?, {('83.64.10.225', 'ba82:219c:b436:ca8d:ba7d:7bc0:5540:9fcc', 0xbd73fba2dab7be91b910bab1491ee4730f16f639363c1fb3bd2104ba07263ff47ebf21f1f5bca4d6aa97fde4399408b1ab283bf4689aa385adfcce6fdb393969d980de575311d3b7bedfe62de581d176479260a7c78b197f1b8e71b2d0e7efc0ab2696144b334ab32224093363aa5a14fba72dd2b8c9a7232ac5e19662c0700ee9057f8786b440dd0e28f695740bb6116cdcf556015d78720555f8ff83ca6e7a85d579deb6ba5121a1af0a7b4b51febcb64c792b02284f7b20358586fbfcfc7e00337a12087dfb0ad5044b8ecb613957543555f4da5d70a04e1f749fd7c418f0), ('167.160.77.109', '59.111.20.53', 0x9156d21e1f22af900e2b4a39add228467fc67817dda72d3824941f4736341f771a0ba12d4cff6d72af920537f92b8342bf81842466b77fc8c88eaae870b96fee8f62da7538d6ffa589557f06d649649271405f0190f27d4eabc2ca20fb4a3de45c0506daf3b4acc46fe01b2a5697a2dbd6ee850bd4f364bac2a1e38b600fe865b74e2d2c03df41ad9b9aed4a1ff44d173214197f63ee0f25a75a016d00d7532f15616d3ee087afb6284e6c69ea32aa6d4faf2bcc9f90a7421a49ce6f8f027c79b34a0737765db3a1972081a904e88aeefa2261ef9db65a067bf695dc93b92d480e3aa033a6e259304b1be979d087eab28532aca2aaec8ac052aa77bce97062776bc2a34bc49960990d44301542d5d6f5440e4143c3c11604c88a2a4e41c1f49d5030fa4d1affc2048845c72065a00c9c10700c1a1beaabca2b4df5159d8da91809ee842a6453fcddcea7f57cd7d4dc72c7c7414c99314ba36e76bbc5d679c73524f812d45336c80fd198aa2e48d83428c977d219573e6831a62b423417b1b686f561bf8b0a116c2ceb446eaaff38e49e7d21e03724234fe68e920e9d60fc62d213eaebf2a450d31c57bff5ad54ac79cbca017c0503c2b9a904c27f6c04295a00d99e49f5ac700830b57a1b44375d51b79e5d4511aafebe198a4206ee2bbfe099e692a198a2d5d44b8a513e85a88aaea06bfeb8e604c18525c61e9b4c5108772b9da14f047d77918ebd1e49243c76fa6fa5be4362afc765090284d877c56588e6a643a19e245c72e91be6e4de9fa282e345266adb7f4a601eacf255aa2bf73e606b738af2f4e1d619d58c97750c6250e44917974cf96c1a82d7fe2980fb90b52f9ca1622c3dda68effd21d1e6d7b4f36f318a6340d980c357b9a0b3c6ff02027babb99b60c57314fc0cb72946e4775b64845a69b48c1891452b150d71d9aed1375136a57b43f522a25fc851af2de314444923f351b7e9badd2c4eca667a6e920107466daee54702f4b53577823f588cba8f2b1b55ae7f20d55ef3e434acca61ec8eff3167cb518300b3ca204ebd802941e5622b3bfdbd024588f2f7028a813ca968a6946a892099f56057c288dcbc60c7e26d50d9e3327bb812a02c91035d28a55cff206da9e3e2faa9588b82e6e113a99ec2f1ccd2399b718c), ('208.46.174.186', '181.93.41.200', 0xb6bc082fcb58d37749c4dc55e37595e7b15b82d0244c75b5b9806a8fd4ba4ce1f62089bc6a23945499ea8dd975f508f47f373679b19a1fe39ef3507a7d9182c33a68f4e0d886a85a8bb77aa48216b598c4204144fece54208eea7e3387002f0077a2b08e33099559ea498b75d80d2ef4a69d573a72ae4a8cd5f2682b1a16d21526bd1cf6cf1989c8a2c3e1109dbebd9a11e6984aecc60a16232bb8f8f59f1dc2c62f55d6b18317e3480a42bfc8b0838233d8a1c93b892f050b8c9de4e8098e6a56b8317c15b09af89017817da3572d6e00fd596fa5333a6287c015b65a8cd032db278ef7e8b8ee09d4d95d5f50a800d3af9cac8a618ccb2a728e9fd3c3aa508fe03e303f4e4b6bdc94a465f3400033543ae39f161d6c49bd0ccf2681330287d3f199dcf31d5a47dcf030c6c7bd5bc672e2147c987818bb0e7af72536ca67e3d41fae6c3361a0d083302e2f8a61dc66feaad2f432896ee60c443140c63e576c3c7fd5f774d6f320803d62259f9d9f0229d76e862656ddf705d602d65c58b16d8aab6b61b771673b77255a697734e515dc7651790b5e303f0eff87561a76cad0203ffadd63d83dbb269aaa535cbd85e513d66c3d6e102acb23743a4f780bc9f7e15d754126e5)}, ?, ?)
Binds:
0 -> java.util.HashSet([[-16854, -14310, 19503], [22402, -9611, 32157], [-9075, -12058, 29966]])
1 -> java.util.HashMap({8030000803bcd1afd575a73c008034000100008072000455efe19d00 -> [㿊﮺㉠鲒鴦溅ᜆ䪣뼷Ō멙㥖閇ܭ宓ꑴ믩Ϭⵤ尤懙⮳⥜芮ಫꅂ邂檸痱娋瞳彫諮︇ଅ콬ᦑ㝄雘蒨౫凹㤷醸䔎퓏?簚셝㨘朤Ṧⅹ뤕삻䠹첱룋⢈祕諢쀃ゴ뛣ᓆ읜륇澟钴䀟佹퓺胈悪쒛껾?숐싹鿦₃㩥䀯똁ꠒ흕쀷?⼝㖷酩ب㙱䜥箺㦺齞澔棛튼㘴?蝉㋽틣驺ꓣ玤ㅰ▚鉗㐥啣㭿ﯦ懯뇠䝢䋼᳞ἥꝏ麥뾔?駿澗 똶쇫㝮㒔?Ⴞ?Ꞝ䳷쾯ꉷዸ茰踹⁖ꗣ艴㋠澧쬶ൢ귾瘡寯콪䂮Ѿ䟍뫽ཱ宵竜᤻슠뎎帎ᡤ፺㦵侻빺ç惡ꌉ퍍䩋ਁ䵒趝雠羰芣ꩾ⠈睂㗷Ⱄ非過̽ᩏ賂쮮ϩ늌榓엯?㎚嘆쯾綕吹楪?瓃㱉羔쨨⛵?ۢﷴ俪〘㊞ﶪ㹴ⱅ䔆徕ⶁ읫ㇾ풭⃬東爲㿔㽇묿㢳忇랳䲇䗇鎹爵蕞홞䁥ഌ㈝挈턋ኹᙹ?隩℃␊䊡釲䮐ᶎǻ⯊৲鹒ꀑﾋ옝瘝ፏ䐰빍醉ᾄ愋ꟿ擦ⵜ땶댳㘳ሦ䬌ᑇ궚릍ᭂ냼羇ꃵ뱦劭끅溦㯸鉦ﻒ퇹캮䔄詥黶궭ͱ眄涋磡紩븯㊮술풾瓕ጁ깘閱莞䱠䝔緭䀀竕吪嚖쓅낗ꂡ쫱튾鉷絵峪㷃༊Ꞡꩿ趲ꀂ⇠磲ᗈ筧ۤ圁䴝숈ྸ서ⷾ鵫⑩皌听卯妈莚䂖뮧ﺎꔨS?㍃턭䒤̎몌拀?嚹뫅帜룞᪽䌶삽炇凿檿ꊅ衽겖樤黦䤻ҥ뤽⚝鰝ỡ宪뜆ᄵ㾕⦝鉯ꙸ⁀椵춳?轟০㤷ꍼᝲ㙼ᐪᤜ쥗ছ?夓衮㼞飵怓饣㴸몵븵ை荛쑻ᴏ랩븱ඪᐑ砅㺕ꯤ䒴蜙㊖頕ꬱ扮䗭혉?邳댝㙿⃭㠥먃떦䡘묒䯰涝쥌ߦႂ峖纇빫袁曜䐧昦髈擯퍂䜦ꡑﲃ血믐汍锣妅ᥕ斆｡ꌳḫ?냴憃捯姪콧ｲⰴ뷫嵙딣ห꺬偩僅?觎ﻤ唜㪾ⶭꦚ₊ꕓ?甧紦Ʀ掄ꗬ䵘쥎㜡?̪㻯䲢孽濕緅噛Ԛ퇲灖꣫㥜ﻎꖨ檜巐巤亻쭰⽪琴?즠䪋幋곊儉ᩉ嶿玎稜膀짌㓢靃䙄蹧ู諅穞뗂ሶ龷릯浥僓〔뽐悿膛෬ↈᔅ復厸铕㯛ዎ걤⃟횖㍹⎷后ඎ쀽㤢䏤À䁚ﾟ焯竝痲?㜑뜜ʋ?偑ẃ噁⨰⣬臢丙ꅗэՒ鋌並㈓ἳÔ桦톒挝ꆨඅᤢ捹茑뎬僤5嘚諛ᠻႾ뇁뱮啥剫늬䁏ᑎꦙ꽋ᱣ梶뱤漍類憻㹅ꡯ슙葙厞蒆毗纩ᥤ奎층퇷앑箔餣⻢훀ᴕ틎?嘃藻埰뮺豏?奈泙쮄웻뇎樉줝쒇❀ú팦宼⎜軹蟑뀻䋀됭駱ꉮⵎ쵒??ͳ衠ᚬằ孚쀿Ⱂ쏝៉聜䦛턛䋻㤙疳免㗽䖕?㰀㧯鑨넯僃薺ꭃ蚨턹ꥢ觠䴿㬨??鶙솪皡窩彨鑃懬榭뙟㦢뻣䚕笹샃俯荊㨅桩樴价ﺫ澝篢엩룝턷ꨢꋓ番꣢諐澜渾撍鱺歮㳚꾉郪蝙뛸⨮댢섙ネ倳儬㦰摣ᜒ진窵츭龏価僣ﶎƻ焿챬낾뚤虷ᴢ믁鞮絫找尣], 80300008e1adccf6eb967e050080340003ff7ff80080720004d0b4d9b800 -> [ﺬ䮹겔봤꼬觯鞹⏙蔽煣㶑仸䣩쟍뒛㈪ϋݬ䄲뻍樖磿鄜틿櫄釺걋鱁北椿?䖕ԧ别쀪鑸?滌쳉ꈈ쏼頨떈ﶴ饌䫃諙ꔅ瑞山꣬皽篵漨＿멛鮖䘯풚홎㊉㷗씮⺑孔멄엇䭕筙쾿?Һ熹Ⲿ势?鰄灜看꣑䟍ឃ媇귁氽眯팚뵏湜輈뚯ܝ㭶懍ﺤὔ퓷߮榚ᆦﴍፆ뽣ݥퟻ琉ͫ㰸嫼쇺?㊡锆Ȝ?邐轔柎Ʀꣀ勡蛿桹朹壜蓁谎Ⴓ쳺㓁襚熥轋꽳밤湆⤕쬺紓ㅟ鞚䧻톤ᇙ顈尚㤻쪨ꉥ⊥浯➏ƣ豈Ꮖ沆獾ᯨ㡻▴௳襛痡䒴橓윒嵶蹡㟸Ȝ惦톢쪇㞷Ъ埽㒰?쁯咏）ﷲ遨?颐䦺?燴辥㮰酟胾쑲콺ᓓ츩왡솆镎મ掁ㇾ韦ᒠ鍵☻沌ዼ⤍ꃰ쯜粜ꃏ벘?耿誏ꚲ⪸䊤堮聼餖뾷玎᱅呒첢騨旊谠陣鳍霳ⱶ곮覻㛏蔖윕댌︎翧㚻ꟹᚰ⭊懶芟㝽ꕯ⼠樨劆㹌짂鋉鍟k䣶ᖮ쥄員촞鹵᷉?須컻䅁婨ꚃ瑭蕜永쥑哑馰챦Ꜷ䭅㊪ዃ騹跾節㠝繆꠲탓筪菶㋨㬤㒷䞬奣?뻹ꇷ⒌௦䧗㩰涐䨃ꚔΪ귬逺閭塀㷏踌ﲴ⠄襖䉣瓔ࠉ簡탶璪襁陦풔?蘫ꭸ쓸ᦆ臁駸剥ே獘ฒ瘔도讽猔䙨儜朥繁ᶀ변ﱣ㫃낪藓貗顬婭睚ပ鷻᧻䩵пᎲ勐?径봅텥㈥߂秉㻣＼뫆千ꬽ䳪䐯팤짐쏗諾ꢬ墪螿⁊矟ઔ噰ᬦ料坁哊茜﹪侱㽵⸆퐼䀁陞藺鱢┵䔮ꦕ]})
2 -> java.util.ArrayList([[false, true], [false, true], [false, true]])
3 -> java.util.HashMap({[15617452851757, 35664025701908]=00000000-0000-1800-9900-000000000000})
4 -> java.util.HashSet([[/e626:2c2f:d786:dda7:7cec:de53:57df:e86], [/44.192.181.125, /154.198.190.63, /f50d:aaaa:da43:8ce4:7767:5ec:40bc:99c5]])
{code}

{code}
CQL:
SELECT *
FROM keyspace_test_00."ghHdxvOs2bndvyc9aUK_Xa5w3D2"
WHERE "UwMBT3BtWjrSmXY6YFKQCI9HIaInjDD" = ? AND "Oy2UIWe7UKuceoBOY5_kfn4pVZE5Ph5mojGxlp" = {('83.64.10.225', 'ba82:219c:b436:ca8d:ba7d:7bc0:5540:9fcc', 0xbd73fba2dab7be91b910bab1491ee4730f16f639363c1fb3bd2104ba07263ff47ebf21f1f5bca4d6aa97fde4399408b1ab283bf4689aa385adfcce6fdb393969d980de575311d3b7bedfe62de581d176479260a7c78b197f1b8e71b2d0e7efc0ab2696144b334ab32224093363aa5a14fba72dd2b8c9a7232ac5e19662c0700ee9057f8786b440dd0e28f695740bb6116cdcf556015d78720555f8ff83ca6e7a85d579deb6ba5121a1af0a7b4b51febcb64c792b02284f7b20358586fbfcfc7e00337a12087dfb0ad5044b8ecb613957543555f4da5d70a04e1f749fd7c418f0), ('167.160.77.109', '59.111.20.53', 0x9156d21e1f22af900e2b4a39add228467fc67817dda72d3824941f4736341f771a0ba12d4cff6d72af920537f92b8342bf81842466b77fc8c88eaae870b96fee8f62da7538d6ffa589557f06d649649271405f0190f27d4eabc2ca20fb4a3de45c0506daf3b4acc46fe01b2a5697a2dbd6ee850bd4f364bac2a1e38b600fe865b74e2d2c03df41ad9b9aed4a1ff44d173214197f63ee0f25a75a016d00d7532f15616d3ee087afb6284e6c69ea32aa6d4faf2bcc9f90a7421a49ce6f8f027c79b34a0737765db3a1972081a904e88aeefa2261ef9db65a067bf695dc93b92d480e3aa033a6e259304b1be979d087eab28532aca2aaec8ac052aa77bce97062776bc2a34bc49960990d44301542d5d6f5440e4143c3c11604c88a2a4e41c1f49d5030fa4d1affc2048845c72065a00c9c10700c1a1beaabca2b4df5159d8da91809ee842a6453fcddcea7f57cd7d4dc72c7c7414c99314ba36e76bbc5d679c73524f812d45336c80fd198aa2e48d83428c977d219573e6831a62b423417b1b686f561bf8b0a116c2ceb446eaaff38e49e7d21e03724234fe68e920e9d60fc62d213eaebf2a450d31c57bff5ad54ac79cbca017c0503c2b9a904c27f6c04295a00d99e49f5ac700830b57a1b44375d51b79e5d4511aafebe198a4206ee2bbfe099e692a198a2d5d44b8a513e85a88aaea06bfeb8e604c18525c61e9b4c5108772b9da14f047d77918ebd1e49243c76fa6fa5be4362afc765090284d877c56588e6a643a19e245c72e91be6e4de9fa282e345266adb7f4a601eacf255aa2bf73e606b738af2f4e1d619d58c97750c6250e44917974cf96c1a82d7fe2980fb90b52f9ca1622c3dda68effd21d1e6d7b4f36f318a6340d980c357b9a0b3c6ff02027babb99b60c57314fc0cb72946e4775b64845a69b48c1891452b150d71d9aed1375136a57b43f522a25fc851af2de314444923f351b7e9badd2c4eca667a6e920107466daee54702f4b53577823f588cba8f2b1b55ae7f20d55ef3e434acca61ec8eff3167cb518300b3ca204ebd802941e5622b3bfdbd024588f2f7028a813ca968a6946a892099f56057c288dcbc60c7e26d50d9e3327bb812a02c91035d28a55cff206da9e3e2faa9588b82e6e113a99ec2f1ccd2399b718c), ('208.46.174.186', '181.93.41.200', 0xb6bc082fcb58d37749c4dc55e37595e7b15b82d0244c75b5b9806a8fd4ba4ce1f62089bc6a23945499ea8dd975f508f47f373679b19a1fe39ef3507a7d9182c33a68f4e0d886a85a8bb77aa48216b598c4204144fece54208eea7e3387002f0077a2b08e33099559ea498b75d80d2ef4a69d573a72ae4a8cd5f2682b1a16d21526bd1cf6cf1989c8a2c3e1109dbebd9a11e6984aecc60a16232bb8f8f59f1dc2c62f55d6b18317e3480a42bfc8b0838233d8a1c93b892f050b8c9de4e8098e6a56b8317c15b09af89017817da3572d6e00fd596fa5333a6287c015b65a8cd032db278ef7e8b8ee09d4d95d5f50a800d3af9cac8a618ccb2a728e9fd3c3aa508fe03e303f4e4b6bdc94a465f3400033543ae39f161d6c49bd0ccf2681330287d3f199dcf31d5a47dcf030c6c7bd5bc672e2147c987818bb0e7af72536ca67e3d41fae6c3361a0d083302e2f8a61dc66feaad2f432896ee60c443140c63e576c3c7fd5f774d6f320803d62259f9d9f0229d76e862656ddf705d602d65c58b16d8aab6b61b771673b77255a697734e515dc7651790b5e303f0eff87561a76cad0203ffadd63d83dbb269aaa535cbd85e513d66c3d6e102acb23743a4f780bc9f7e15d754126e5)}
ALLOW FILTERING
Binds:
0 -> java.util.HashSet([[-16854, -14310, 19503], [22402, -9611, 32157], [-9075, -12058, 29966]])
{code}


I did run this in debugger and found that org.apache.cassandra.db.filter.RowFilter#clusteringKeyRestrictionsAreSatisfiedBy is getting called with a Clustering with array of size 2 and both elements are null.  This clustering is coming from org.apache.cassandra.index.internal.composites.CompositesSearcher#isMatchingEntry

{code}
entry.indexedEntryClustering
{code}