Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/candidate-9.6.x' into candidate-…
Browse files Browse the repository at this point in the history
…9.8.x

Signed-off-by: Gordon Smith <GordonJSmith@gmail.com>

# Conflicts:
#	helm/hpcc/Chart.yaml
#	helm/hpcc/templates/_helpers.tpl
#	version.cmake
  • Loading branch information
GordonSmith committed Dec 4, 2024
2 parents d920928 + a063c66 commit a29e778
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,9 @@
<entry><emphasis>compress</emphasis></entry>

<entry>Optional. A boolean TRUE or FALSE flag indicating whether to
compress the new file. If omitted, the default is FALSE.</entry>
compress the new file. If omitted, the default is TRUE in a
containerized deployment and FALSE in a bare-metal
deployment.</entry>
</row>

<row>
Expand Down Expand Up @@ -215,7 +217,7 @@

<entry>Override the number of parts to be created when spraying. The
default is 0 which means it will create the same number of parts as
the target cluster. </entry>
the target cluster.</entry>
</row>

<row>
Expand Down
6 changes: 4 additions & 2 deletions docs/EN_US/ECLStandardLibraryReference/SLR-Mods/SprayJson.xml
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,9 @@
<entry><emphasis>compress</emphasis></entry>

<entry>Optional. A boolean TRUE or FALSE flag indicating whether to
compress the new file. If omitted, the default is FALSE.</entry>
compress the new file. If omitted, the default is TRUE in a
containerized deployment and FALSE in a bare-metal
deployment.</entry>
</row>

<row>
Expand Down Expand Up @@ -242,7 +244,7 @@

<entry>Override the number of parts to be created when spraying. The
default is 0 which means it will create the same number of parts as
the target cluster. </entry>
the target cluster.</entry>
</row>

<row>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,9 @@
<entry><emphasis>compress</emphasis></entry>

<entry>Optional. A boolean TRUE or FALSE flag indicating whether to
compress the new file. If omitted, the default is FALSE.</entry>
compress the new file. If omitted, the default is TRUE in a
containerized deployment and FALSE in a bare-metal
deployment.</entry>
</row>

<row>
Expand Down Expand Up @@ -300,7 +302,7 @@

<entry>Override the number of parts to be created when spraying. The
default is 0 which means it will create the same number of parts as
the target cluster. </entry>
the target cluster.</entry>
</row>

<row>
Expand Down
6 changes: 4 additions & 2 deletions docs/EN_US/ECLStandardLibraryReference/SLR-Mods/SprayXML.xml
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,9 @@
<entry><emphasis>compress</emphasis></entry>

<entry>Optional. A boolean TRUE or FALSE flag indicating whether to
compress the new file. If omitted, the default is FALSE.</entry>
compress the new file. If omitted, the default is TRUE in a
containerized deployment and FALSE in a bare-metal
deployment.</entry>
</row>

<row>
Expand Down Expand Up @@ -241,7 +243,7 @@

<entry>Override the number of parts to be created when spraying. The
default is 0 which means it will create the same number of parts as
the target cluster. </entry>
the target cluster.</entry>
</row>

<row>
Expand Down
12 changes: 8 additions & 4 deletions system/jhtree/jhtree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1220,8 +1220,9 @@ CDiskKeyIndex::CDiskKeyIndex(unsigned _iD, IFileIO *_io, const char *_name, bool
blockedIOSize = _blockedIOSize;
io.setown(_io);
KeyHdr hdr;
if (io->read(0, sizeof(hdr), &hdr) != sizeof(hdr))
throw MakeStringException(0, "Failed to read key header: file too small, could not read %u bytes", (unsigned) sizeof(hdr));
offset_t sizeRead = io->read(0, sizeof(hdr), &hdr);
if (sizeRead != sizeof(hdr))
throw MakeStringException(0, "Failed to read key '%s' header: file too small, could not read %u bytes - read %u", _name, (unsigned) sizeof(hdr), (unsigned)sizeRead);

#ifdef _DEBUG
//In debug mode always use the trailing header if it is available to ensure that code path is tested
Expand All @@ -1231,8 +1232,11 @@ CDiskKeyIndex::CDiskKeyIndex(unsigned _iD, IFileIO *_io, const char *_name, bool
#endif
{
_WINREV(hdr.nodeSize);
if (!io->read(io->size() - hdr.nodeSize, sizeof(hdr), &hdr))
throw MakeStringException(4, "Invalid key %s: failed to read trailing key header", _name);
offset_t actualSize = io->size();
offset_t readOffset = actualSize - hdr.nodeSize;
sizeRead = io->read(readOffset, sizeof(hdr), &hdr);
if (sizeRead != sizeof(hdr))
throw MakeStringException(4, "Invalid key %s: failed to read trailing key header at offset %llu, read %u", _name, readOffset, (unsigned)sizeRead);
}
init(hdr, isTLK);
}
Expand Down
2 changes: 1 addition & 1 deletion system/jlib/jio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ extern jlib_decl size32_t checked_pread(const char * filename, int file, void *b
readNow = 0;
break;
}
throw makeErrnoExceptionV(errno, "checked_pread for file '%s'", filename);
throw makeErrnoExceptionV(errno, "checked_pread for file '%s' @%lld", filename, pos);
}
}
else if (!readNow)
Expand Down

0 comments on commit a29e778

Please sign in to comment.