This is an automated email from the ASF dual-hosted git repository.
laskoviymishka pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/iceberg-go.git
The following commit(s) were added to refs/heads/main by this push:
new 7fec85142 refactor(io)!: hide gocloud types in blobfs and gcs behind
interfaces (#2635)
7fec85142 is described below
commit 7fec85142880c0a84d81cda1f160ea4d64ccf191
Author: Andrei Tserakhau <[email protected]>
AuthorDate: Fri Nov 20 20:08:15 2026 +0100
refactor(io)!: hide gocloud types in blobfs and gcs behind interfaces
(#2635)
blobfs.New returned a struct embedding *blob.Bucket, so every gocloud
bucket method was part of our API. The struct is now unexported and New
returns a FileIO interface made of the iceberg-go io interfaces it already
implemented, plus io.Closer so callers can still close the bucket. The
struct keeps embedding *blob.Bucket, as agreed on the issue.
NewWriter and Writer exposed *blob.WriterOptions and *blob.Writer and
gcs.ParseGCSConfig returned *gcsblob.Options. None had callers outside
their package, so they are unexported. blobfs.New still takes a
*blob.Bucket on purpose.
No behavior change. The hadoop catalog assertion and the azure and rest
tests now use the interface, and releases.md gets a compatibility note.
Part of #2062.
---
catalog/hadoop/io.go | 2 +-
catalog/rest/vended_creds_test.go | 2 +-
io/gocloud/azure/azure_test.go | 2 +-
io/gocloud/blobfs/blob.go | 105 ++++++++++++++++++--------------------
io/gocloud/blobfs/blob_test.go | 35 +++----------
io/gocloud/gcs/gcs.go | 6 +--
io/gocloud/gcs/gcs_test.go | 8 +--
website/src/releases.md | 1 +
8 files changed, 68 insertions(+), 93 deletions(-)
diff --git a/catalog/hadoop/io.go b/catalog/hadoop/io.go
index 58b8e52d3..ccc902971 100644
--- a/catalog/hadoop/io.go
+++ b/catalog/hadoop/io.go
@@ -39,4 +39,4 @@ type HadoopCatalogFS interface {
var _ HadoopCatalogFS = (*icebergio.LocalFS)(nil)
// BlobFileIO can be used to implement a Hadoop catalog with a blob storage
bucket.
-var _ HadoopCatalogFS = (*blobfs.FileIO)(nil)
+var _ HadoopCatalogFS = blobfs.FileIO(nil)
diff --git a/catalog/rest/vended_creds_test.go
b/catalog/rest/vended_creds_test.go
index 61f014b11..6b32193ab 100644
--- a/catalog/rest/vended_creds_test.go
+++ b/catalog/rest/vended_creds_test.go
@@ -1344,7 +1344,7 @@ func registerContextCapturingScheme(t *testing.T, scheme
string) *contextCapturi
// closeCountingIO counts closes and forwards them, so a closed IO fails the
// way a closed gocloud bucket does.
type closeCountingIO struct {
- *blobfs.FileIO
+ blobfs.FileIO
closeCount *atomic.Int32
}
diff --git a/io/gocloud/azure/azure_test.go b/io/gocloud/azure/azure_test.go
index d86998f69..b41b03e07 100644
--- a/io/gocloud/azure/azure_test.go
+++ b/io/gocloud/azure/azure_test.go
@@ -342,7 +342,7 @@ func TestAdlsKeyExtractor(t *testing.T) {
}
}
-func testADLSBlobFileIO(t *testing.T, ctx context.Context, root string, bucket
*blob.Bucket) *blobfs.FileIO {
+func testADLSBlobFileIO(t *testing.T, ctx context.Context, root string, bucket
*blob.Bucket) blobfs.FileIO {
t.Helper()
parsed, err := url.Parse(root)
diff --git a/io/gocloud/blobfs/blob.go b/io/gocloud/blobfs/blob.go
index 399df5883..6dba151fd 100644
--- a/io/gocloud/blobfs/blob.go
+++ b/io/gocloud/blobfs/blob.go
@@ -46,7 +46,7 @@ type blobOpenFile struct {
*blob.Reader
name, key string
- b *FileIO
+ b *fileIO
ctx context.Context
}
@@ -205,7 +205,21 @@ func defaultKeyExtractor(bucketName string, allowedSchemes
...string) KeyExtract
}
// FileIO is the iceberg-go/io implementation backed by a gocloud.dev bucket.
-type FileIO struct {
+// Close closes the bucket passed to New.
+type FileIO interface {
+ icebergio.ReadFileIO
+ icebergio.WriteFileIO
+ icebergio.ListableIO
+ icebergio.BulkRemovableIO
+ icebergio.StatIO
+ icebergio.RenameIO
+ icebergio.RenameNoReplaceIO
+ icebergio.RemoveAllIO
+ icebergio.MkdirAllIO
+ io.Closer
+}
+
+type fileIO struct {
*blob.Bucket
extractObject ObjectLocationExtractor
@@ -216,10 +230,7 @@ type FileIO struct {
newRangeReader func(ctx context.Context, key string, offset, length
int64) (io.ReadCloser, error)
}
-var (
- _ icebergio.ListableIO = (*FileIO)(nil)
- _ icebergio.BulkRemovableIO = (*FileIO)(nil)
-)
+var _ FileIO = (*fileIO)(nil)
// deleteFilesMaxConcurrency bounds the number of in-flight object-store
// deletes without creating one goroutine per path for large cleanup jobs.
@@ -244,7 +255,7 @@ func (f blobFileInfo) IsDir() bool { return
f.mode.IsDir() }
func (f blobFileInfo) Sys() any { return f.sys }
// preprocess returns the object key from an input path
-func (bfs *FileIO) preprocess(path string) (string, error) {
+func (bfs *fileIO) preprocess(path string) (string, error) {
location, err := bfs.resolveLocation(path)
if err != nil {
return "", err
@@ -285,7 +296,7 @@ func directoryName(key string) string {
return pathpkg.Base(key)
}
-func (bfs *FileIO) Open(_ context.Context, path string) (icebergio.File,
error) {
+func (bfs *fileIO) Open(_ context.Context, path string) (icebergio.File,
error) {
// The returned File is read after Open returns, so its reads stay
bound to
// the FileIO's lifetime context (bfs.ctx) rather than this per-call
ctx.
originalPath := path
@@ -308,7 +319,7 @@ func (bfs *FileIO) Open(_ context.Context, path string)
(icebergio.File, error)
return &blobOpenFile{Reader: r, name: name, key: key, b: bfs, ctx:
bfs.ctx}, nil
}
-func (bfs *FileIO) Remove(ctx context.Context, name string) error {
+func (bfs *fileIO) Remove(ctx context.Context, name string) error {
key, err := bfs.preprocess(name)
if err != nil {
return &fs.PathError{Op: "remove", Path: name, Err: err}
@@ -334,11 +345,7 @@ func (bfs *FileIO) Remove(ctx context.Context, name
string) error {
return nil
}
-func (bfs *FileIO) Create(ctx context.Context, name string)
(icebergio.FileWriter, error) {
- return bfs.NewWriter(ctx, name, true, nil)
-}
-
-func (bfs *FileIO) WriteFile(ctx context.Context, name string, content []byte)
error {
+func (bfs *fileIO) WriteFile(ctx context.Context, name string, content []byte)
error {
key, err := bfs.preprocess(name)
if err != nil {
return &fs.PathError{Op: "write file", Path: name, Err: err}
@@ -347,38 +354,25 @@ func (bfs *FileIO) WriteFile(ctx context.Context, name
string, content []byte) e
return bfs.WriteAll(ctx, key, content, nil)
}
-// NewWriter returns a Writer that writes to the blob stored at path.
-// A nil WriterOptions is treated the same as the zero value.
-//
-// If overwrite is disabled and a blob with this path already exists,
-// an error will be returned.
+// Create returns a writer that overwrites the blob stored at name.
//
-// The caller must call Close on the returned Writer, even if the write is
+// The caller must call Close on the returned writer, even if the write is
// aborted.
-func (bfs *FileIO) NewWriter(ctx context.Context, path string, overwrite bool,
opts *blob.WriterOptions) (w *Writer, err error) {
- key, err := bfs.preprocess(path)
+func (bfs *fileIO) Create(ctx context.Context, name string)
(icebergio.FileWriter, error) {
+ key, err := bfs.preprocess(name)
if err != nil {
- return nil, &fs.PathError{Op: "new writer", Path: path, Err:
err}
+ return nil, &fs.PathError{Op: "new writer", Path: name, Err:
err}
}
if !fs.ValidPath(key) {
- return nil, &fs.PathError{Op: "new writer", Path: path, Err:
fs.ErrInvalid}
+ return nil, &fs.PathError{Op: "new writer", Path: name, Err:
fs.ErrInvalid}
}
- if !overwrite {
- if exists, err := bfs.Exists(ctx, key); err != nil || exists {
- if err != nil {
- return nil, &fs.PathError{Op: "new writer",
Path: path, Err: err}
- }
-
- return nil, &fs.PathError{Op: "new writer", Path: path,
Err: fs.ErrInvalid}
- }
- }
- bw, err := bfs.Bucket.NewWriter(ctx, key, opts)
+ bw, err := bfs.NewWriter(ctx, key, nil)
if err != nil {
return nil, err
}
- return &Writer{
+ return &writer{
Writer: bw,
name: key,
},
@@ -387,11 +381,11 @@ func (bfs *FileIO) NewWriter(ctx context.Context, path
string, overwrite bool, o
// New returns a FileIO backed by bucket,
// using extractObject to map input paths to object keys within it.
-func New(ctx context.Context, bucket *blob.Bucket, extractObject
ObjectLocationExtractor) *FileIO {
- return &FileIO{Bucket: bucket, extractObject: extractObject, ctx: ctx}
+func New(ctx context.Context, bucket *blob.Bucket, extractObject
ObjectLocationExtractor) FileIO {
+ return &fileIO{Bucket: bucket, extractObject: extractObject, ctx: ctx}
}
-func (bfs *FileIO) resolveLocation(root string) (ObjectLocation, error) {
+func (bfs *fileIO) resolveLocation(root string) (ObjectLocation, error) {
if bfs.extractObject == nil {
return ObjectLocation{}, errors.New("blob file IO missing
object location extractor")
}
@@ -414,7 +408,7 @@ func walkedURIPath(location ObjectLocation, walked string)
string {
// walkFS walks a bucket for fs.WalkDir, treating any key with children as a
directory,
// so the 0-byte directory blobs of ADLS hierarchical namespaces (OneLake)
aren't files.
type walkFS struct {
- bfs *FileIO
+ bfs *fileIO
ctx context.Context
}
@@ -545,7 +539,7 @@ type walkFileEntry struct{ blobFileInfo }
func (f walkFileEntry) Type() fs.FileMode { return f.mode.Type() }
func (f walkFileEntry) Info() (fs.FileInfo, error) { return f.blobFileInfo,
nil }
-func (bfs *FileIO) WalkDir(ctx context.Context, root string, fn
fs.WalkDirFunc) error {
+func (bfs *fileIO) WalkDir(ctx context.Context, root string, fn
fs.WalkDirFunc) error {
if err := ctx.Err(); err != nil {
return err
}
@@ -580,7 +574,7 @@ func (bfs *FileIO) WalkDir(ctx context.Context, root
string, fn fs.WalkDirFunc)
})
}
-func (bfs *FileIO) deleteFile(ctx context.Context, p string) (bool, error) {
+func (bfs *fileIO) deleteFile(ctx context.Context, p string) (bool, error) {
key, err := bfs.preprocess(p)
if err != nil {
return false, fmt.Errorf("failed to delete %s: %w", p, err)
@@ -598,7 +592,7 @@ func (bfs *FileIO) deleteFile(ctx context.Context, p
string) (bool, error) {
return true, nil
}
-func (bfs *FileIO) DeleteFiles(ctx context.Context, paths []string) ([]string,
error) {
+func (bfs *fileIO) DeleteFiles(ctx context.Context, paths []string) ([]string,
error) {
if len(paths) == 0 {
return nil, nil
}
@@ -647,7 +641,7 @@ func (bfs *FileIO) DeleteFiles(ctx context.Context, paths
[]string) ([]string, e
}
// MkdirAll mimics creating a directory by creating a zero-length object for
each component of the path
-func (bfs *FileIO) MkdirAll(ctx context.Context, path string) error {
+func (bfs *fileIO) MkdirAll(ctx context.Context, path string) error {
if err := ctx.Err(); err != nil {
return &fs.PathError{Op: "mkdir", Path: path, Err: err}
}
@@ -678,7 +672,7 @@ func (bfs *FileIO) MkdirAll(ctx context.Context, path
string) error {
}
// ReadFile reads the contents of the file at the given path and returns it as
a byte slice.
-func (bfs *FileIO) ReadFile(ctx context.Context, path string) ([]byte, error) {
+func (bfs *fileIO) ReadFile(ctx context.Context, path string) ([]byte, error) {
key, err := bfs.preprocess(path)
if err != nil {
return nil, &fs.PathError{Op: "ReadFile", Path: path, Err: err}
@@ -694,7 +688,7 @@ func (bfs *FileIO) ReadFile(ctx context.Context, path
string) ([]byte, error) {
// Stat interprets the input path as a directory or file and returns the
corresponding FileInfo.
// If the path does not exist, it returns fs.ErrNotExist
-func (bfs *FileIO) Stat(ctx context.Context, path string) (fs.FileInfo, error)
{
+func (bfs *fileIO) Stat(ctx context.Context, path string) (fs.FileInfo, error)
{
key, err := bfs.preprocess(path)
if err != nil {
return nil, &fs.PathError{Op: "Stat", Path: path, Err: err}
@@ -767,7 +761,7 @@ func (bfs *FileIO) Stat(ctx context.Context, path string)
(fs.FileInfo, error) {
}
// Rename renames one file from oldpath to newpath, replacing newpath if it
already exists.
-func (bfs *FileIO) Rename(ctx context.Context, oldpath, newpath string) error {
+func (bfs *fileIO) Rename(ctx context.Context, oldpath, newpath string) error {
if err := ctx.Err(); err != nil {
return &fs.PathError{Op: "Rename", Path: oldpath, Err: err}
}
@@ -796,7 +790,7 @@ func (bfs *FileIO) Rename(ctx context.Context, oldpath,
newpath string) error {
}
// RenameNoReplace renames one file/object (non-recursive) from oldpath to
newpath, returning an error if newpath already exists.
-func (bfs *FileIO) RenameNoReplace(ctx context.Context, oldpath, newpath
string) error {
+func (bfs *fileIO) RenameNoReplace(ctx context.Context, oldpath, newpath
string) error {
if err := ctx.Err(); err != nil {
return &fs.PathError{Op: "RenameNoReplace", Path: newpath, Err:
err}
}
@@ -812,7 +806,7 @@ func (bfs *FileIO) RenameNoReplace(ctx context.Context,
oldpath, newpath string)
// RemoveAll removes either a single file or interprets the path as and
removes both
// it and and all its children.
-func (bfs *FileIO) RemoveAll(ctx context.Context, name string) error {
+func (bfs *fileIO) RemoveAll(ctx context.Context, name string) error {
if err := ctx.Err(); err != nil {
return &fs.PathError{Op: "RemoveAll", Path: name, Err: err}
}
@@ -854,15 +848,14 @@ func (bfs *FileIO) RemoveAll(ctx context.Context, name
string) error {
return nil
}
-// Writer is the FileWriter returned by NewWriter.
-// It exposes the underlying gocloud.dev writer for callers that need its
options.
-type Writer struct {
+// writer is the FileWriter returned by Create.
+type writer struct {
*blob.Writer
name string
- b *FileIO
+ b *fileIO
}
-func (f *Writer) Name() string { return f.name }
-func (f *Writer) Sys() any { return f.b }
-func (f *Writer) Close() error { return f.Writer.Close() }
-func (f *Writer) Write(p []byte) (int, error) { return f.Writer.Write(p) }
+func (f *writer) Name() string { return f.name }
+func (f *writer) Sys() any { return f.b }
+func (f *writer) Close() error { return f.Writer.Close() }
+func (f *writer) Write(p []byte) (int, error) { return f.Writer.Write(p) }
diff --git a/io/gocloud/blobfs/blob_test.go b/io/gocloud/blobfs/blob_test.go
index d59fa25a6..4e493a428 100644
--- a/io/gocloud/blobfs/blob_test.go
+++ b/io/gocloud/blobfs/blob_test.go
@@ -469,13 +469,13 @@ func TestBlobFileIOCreateHonorsOperationCancellation(t
*testing.T) {
assert.False(t, exists)
}
-func testBlobFileIO(ctx context.Context, bucketName string, bucket
*blob.Bucket, allowedSchemes ...string) *FileIO {
+func testBlobFileIO(ctx context.Context, bucketName string, bucket
*blob.Bucket, allowedSchemes ...string) *fileIO {
if len(allowedSchemes) == 0 {
allowedSchemes = schemes.S3
}
extractor := DefaultObjectLocationExtractor(bucketName,
allowedSchemes...)
- return &FileIO{
+ return &fileIO{
Bucket: bucket,
extractObject: extractor,
ctx: ctx,
@@ -548,25 +548,6 @@ func TestBlobFileIORejectsUnsupportedObjectPaths(t
*testing.T) {
}
}
-func TestNewWriterExistsError(t *testing.T) {
- ctx := context.Background()
-
- bucket := memblob.OpenBucket(nil)
-
- bfs := &FileIO{
- Bucket: bucket,
- extractObject: identityObjectLocation,
- ctx: ctx,
- }
- require.NoError(t, bucket.Close())
-
- _, err := bfs.NewWriter(ctx, "test-file", false, nil)
-
- var pathErr *fs.PathError
- require.ErrorAs(t, err, &pathErr, "error should be a PathError wrapping
the Exists failure")
- require.Equal(t, "new writer", pathErr.Op)
-}
-
type trackingReadCloser struct {
io.ReadCloser
closed *bool
@@ -621,7 +602,7 @@ func TestReadAtResourceCleanup(t *testing.T) {
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
var lastReaderClosed bool
- bfs := &FileIO{
+ bfs := &fileIO{
Bucket: bucket,
extractObject: identityObjectLocation,
ctx: ctx,
@@ -1098,7 +1079,7 @@ func TestBlobFileIODeleteFilesIsConcurrentAndBounded(t
*testing.T) {
bucket := blob.NewBucket(tracker)
defer bucket.Close()
- bfs := &FileIO{
+ bfs := &fileIO{
Bucket: bucket,
extractObject: DefaultObjectLocationExtractor("test-bucket"),
ctx: context.Background(),
@@ -1271,10 +1252,10 @@ func (b *cancelAfterCopyBucket) Close() error { return
nil }
func TestBlobFileIORenameFinishesAfterCopyWhenCanceled(t *testing.T) {
for _, tt := range []struct {
name string
- rename func(*FileIO, context.Context, string, string) error
+ rename func(*fileIO, context.Context, string, string) error
}{
- {name: "Rename", rename: (*FileIO).Rename},
- {name: "RenameNoReplace", rename: (*FileIO).RenameNoReplace},
+ {name: "Rename", rename: (*fileIO).Rename},
+ {name: "RenameNoReplace", rename: (*fileIO).RenameNoReplace},
} {
t.Run(tt.name, func(t *testing.T) {
type renameContextKey struct{}
@@ -1628,7 +1609,7 @@ func TestBlobFileIOPreprocessErrorRetainsOriginalPath(t
*testing.T) {
{"remove", func() error { return
fileIO.Remove(context.Background(), name) }},
{"write file", func() error { return
fileIO.WriteFile(context.Background(), name, nil) }},
{"new writer", func() error {
- _, err := fileIO.NewWriter(context.Background(), name,
true, nil)
+ _, err := fileIO.Create(context.Background(), name)
return err
}},
diff --git a/io/gocloud/gcs/gcs.go b/io/gocloud/gcs/gcs.go
index 25f9af4d3..41feb0f76 100644
--- a/io/gocloud/gcs/gcs.go
+++ b/io/gocloud/gcs/gcs.go
@@ -65,9 +65,9 @@ func gcsEndpoint(props map[string]string) string {
return props[io.GCSEndpoint]
}
-// ParseGCSConfig parses non-credential GCS blob options; credentials are set
on
+// parseGCSConfig parses non-credential GCS blob options; credentials are set
on
// the client by gcsCredentials, which supersedes any credential option here.
-func ParseGCSConfig(props map[string]string) *gcsblob.Options {
+func parseGCSConfig(props map[string]string) *gcsblob.Options {
var o []option.ClientOption
if url := gcsEndpoint(props); url != "" {
o = append(o, option.WithEndpoint(url))
@@ -152,7 +152,7 @@ func gcsCredentialsWithDefault(
// Construct a GCS bucket from a URL
func createGCSBucket(ctx context.Context, parsed *url.URL, props
map[string]string) (*blob.Bucket, error) {
- gcscfg := ParseGCSConfig(props)
+ gcscfg := parseGCSConfig(props)
creds, err := gcsCredentials(ctx, props)
if err != nil {
diff --git a/io/gocloud/gcs/gcs_test.go b/io/gocloud/gcs/gcs_test.go
index 939d9c35b..f5350faa7 100644
--- a/io/gocloud/gcs/gcs_test.go
+++ b/io/gocloud/gcs/gcs_test.go
@@ -41,22 +41,22 @@ const (
func TestParseGCSConfigUseJSONAPI(t *testing.T) {
t.Run("defaults to disabled", func(t *testing.T) {
- cfg := ParseGCSConfig(map[string]string{})
+ cfg := parseGCSConfig(map[string]string{})
assert.Len(t, cfg.ClientOptions, 0)
})
t.Run("enables reads on true", func(t *testing.T) {
- cfg := ParseGCSConfig(map[string]string{io.GCSUseJSONAPI:
"true"})
+ cfg := parseGCSConfig(map[string]string{io.GCSUseJSONAPI:
"true"})
assert.Len(t, cfg.ClientOptions, 1)
})
t.Run("does not enable on false", func(t *testing.T) {
- cfg := ParseGCSConfig(map[string]string{io.GCSUseJSONAPI:
"false"})
+ cfg := parseGCSConfig(map[string]string{io.GCSUseJSONAPI:
"false"})
assert.Len(t, cfg.ClientOptions, 0)
})
t.Run("does not enable on invalid value", func(t *testing.T) {
- cfg := ParseGCSConfig(map[string]string{io.GCSUseJSONAPI:
"not-a-bool"})
+ cfg := parseGCSConfig(map[string]string{io.GCSUseJSONAPI:
"not-a-bool"})
assert.Len(t, cfg.ClientOptions, 0)
})
}
diff --git a/website/src/releases.md b/website/src/releases.md
index 226772d4d..5d0407113 100644
--- a/website/src/releases.md
+++ b/website/src/releases.md
@@ -42,6 +42,7 @@ Per-release notes (highlights, breaking changes,
contributors) are published on
### Unreleased compatibility notes
+- **gocloud types are no longer exposed by `blobfs` and `gcs`.** `blobfs.New`
now returns the `blobfs.FileIO` interface, which lists the iceberg-go io
interfaces and `io.Closer`, instead of a struct that embeds `*blob.Bucket`.
`FileIO.NewWriter`, `blobfs.Writer` and `gcs.ParseGCSConfig` are removed; use
`Create`, or configure GCS through properties. To migrate, replace
`*blobfs.FileIO` with `blobfs.FileIO` in fields, signatures and `var _ X =
(*blobfs.FileIO)(nil)` assertions, and assert [...]
- **Catalog and view FileIO may use isolated registries.** Glue, Hadoop, Hive
and SQL accept `WithIORegistry`, as REST already does. `hadoop.NewCatalog`,
`sql.NewCatalog`, `view.CreateView`, `view.CreateViewWithIOProperties`,
`view.CreateViewFromVersion` and `view.WriteMetadata` now take a trailing
variadic option. Existing calls still compile. Function values assigned to a
type with the old signature need a wrapper that calls the function without
options. The default remains the global [...]
- **`RowDelta.Commit` can be called once per builder.** A second `Commit` on
the same `RowDelta` now returns an error wrapping `table.ErrInvalidOperation`
and stages nothing, even if the first call failed, as `RewriteFiles.Commit`
does. Previously, calling `Commit` again after a failed first call could
succeed, and calling it again after a successful one staged the builder's files
a second time. Create a new builder with `Transaction.NewRowDelta` for each
commit.
- **Data-file replacements now reject concurrent deletes.** Commits staged
through `ReplaceDataFiles`, `ReplaceDataFilesByPath`, `ReplaceFiles`, or
rewrite operations can return `table.ErrConflictingDeleteFiles` when a
concurrent position delete targets a replaced file or any concurrent equality
delete is added. Compaction on tables with streaming equality deletes may see
additional conflicts.