@@ -1219,13 +1219,8 @@ public void indexDataClass(ExpDataClassImpl dataClass)
1219
1219
SearchService .IndexTask task = ss .defaultTask ();
1220
1220
1221
1221
Runnable r = () -> {
1222
- Domain d = dataClass .getDomain ();
1223
- if (d == null )
1224
- return ; // Domain may be null if the DataClass has been deleted
1225
-
1226
- TableInfo table = dataClass .getTinfo ();
1227
- if (table == null )
1228
- return ;
1222
+ if (dataClass .getContainer () == null )
1223
+ return ; // Issue 53253: container may be deleted
1229
1224
1230
1225
indexDataClass (dataClass , task );
1231
1226
indexDataClassData (dataClass , task );
@@ -1830,13 +1825,7 @@ public ExpDataClassImpl getDataClass(int rowId)
1830
1825
@ Override
1831
1826
public List <? extends ExpData > getExpDatas (ExpDataClass dataClass )
1832
1827
{
1833
- Domain d = dataClass .getDomain ();
1834
- if (d == null )
1835
- throw new IllegalStateException ("No domain for DataClass '" + dataClass .getName () + "' in container '" + dataClass .getContainer ().getPath () + "'" );
1836
-
1837
1828
TableInfo table = ((ExpDataClassImpl ) dataClass ).getTinfo ();
1838
- if (table == null )
1839
- throw new IllegalStateException ("No table for DataClass '" + dataClass .getName () + "' in container '" + dataClass .getContainer ().getPath () + "'" );
1840
1829
1841
1830
SQLFragment sql = new SQLFragment ()
1842
1831
.append ("SELECT * FROM " ).append (getTinfoData (), "d" )
@@ -1849,7 +1838,6 @@ public List<? extends ExpData> getExpDatas(ExpDataClass dataClass)
1849
1838
return datas .stream ().map (ExpDataImpl ::new ).collect (toList ());
1850
1839
}
1851
1840
1852
-
1853
1841
public List <ExpDataImpl > getExpDatasByObjectId (ContainerFilter containerFilter , Collection <Integer > objectIds )
1854
1842
{
1855
1843
SimpleFilter filter = new SimpleFilter ();
@@ -1862,13 +1850,7 @@ public List<ExpDataImpl> getExpDatasByObjectId(ContainerFilter containerFilter,
1862
1850
@ Nullable
1863
1851
public ExpDataImpl getExpData (ExpDataClass dataClass , String name )
1864
1852
{
1865
- Domain d = dataClass .getDomain ();
1866
- if (d == null )
1867
- throw new IllegalStateException ("No domain for DataClass '" + dataClass .getName () + "' in container '" + dataClass .getContainer ().getPath () + "'" );
1868
-
1869
1853
TableInfo table = ((ExpDataClassImpl ) dataClass ).getTinfo ();
1870
- if (table == null )
1871
- throw new IllegalStateException ("No table for DataClass '" + dataClass .getName () + "' in container '" + dataClass .getContainer ().getPath () + "'" );
1872
1854
1873
1855
SQLFragment sql = new SQLFragment ()
1874
1856
.append ("SELECT * FROM " ).append (getTinfoData (), "d" )
@@ -1886,13 +1868,7 @@ public ExpDataImpl getExpData(ExpDataClass dataClass, String name)
1886
1868
@ Nullable
1887
1869
public ExpDataImpl getExpData (ExpDataClass dataClass , int rowId )
1888
1870
{
1889
- Domain d = dataClass .getDomain ();
1890
- if (d == null )
1891
- throw new IllegalStateException ("No domain for DataClass '" + dataClass .getName () + "' in container '" + dataClass .getContainer ().getPath () + "'" );
1892
-
1893
1871
TableInfo table = ((ExpDataClassImpl ) dataClass ).getTinfo ();
1894
- if (table == null )
1895
- throw new IllegalStateException ("No table for DataClass '" + dataClass .getName () + "' in container '" + dataClass .getContainer ().getPath () + "'" );
1896
1872
1897
1873
SQLFragment sql = new SQLFragment ()
1898
1874
.append ("SELECT * FROM " ).append (getTinfoData (), "d" )
@@ -10226,6 +10202,7 @@ else if (currentDataType instanceof ExpSampleType sampleType)
10226
10202
}
10227
10203
}
10228
10204
10205
+ @ SuppressWarnings ("JUnitMalformedDeclaration" )
10229
10206
public static class TestCase extends Assert
10230
10207
{
10231
10208
final Logger log = LogManager .getLogger (ExperimentServiceImpl .class );
@@ -10389,6 +10366,7 @@ public void setPath(String path)
10389
10366
}
10390
10367
}
10391
10368
10369
+ @ SuppressWarnings ("JUnitMalformedDeclaration" )
10392
10370
public static class LineageQueryTestCase extends Assert
10393
10371
{
10394
10372
TempTableTracker tt ;
@@ -10587,6 +10565,7 @@ public void testCycle()
10587
10565
}
10588
10566
}
10589
10567
10568
+ @ SuppressWarnings ("JUnitMalformedDeclaration" )
10590
10569
public static class ParseInputOutputAliasTestCase extends Assert
10591
10570
{
10592
10571
@ Test
0 commit comments